Examples of dblValue()


Examples of tcg.scada.cos.CosDpValueUnion.dblValue()

    CosDpValueUnion in_number_value = new CosDpValueUnion();
    in_number_value.longValue(0);
    CosDpValueUnion in_unsigned_value = new CosDpValueUnion();
    in_unsigned_value.unsignedValue(0);
    CosDpValueUnion in_double_value = new CosDpValueUnion();
    in_double_value.dblValue(0.0);
    CosDpValueUnion in_string_value = new CosDpValueUnion();
    in_string_value.charValue("");

    // BOOLEAN data type
    // copy bool to bool (new value)
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.dblValue()

    value2.unsignedValue(0);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(-1, status);
    // bool to double
    value1.boolValue(false);
    value2.dblValue(0);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(-1, status);
    // bool to string
    value1.boolValue(false);
    value2.charValue("");
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.dblValue()

    value2.unsignedValue(0);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(-1, status);
    // number to double
    value1.longValue(0);
    value2.dblValue(0);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(-1, status);
    // number to string
    value1.longValue(0);
    value2.charValue("");
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.dblValue()

    value2.unsignedValue(100);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(1, status);
    // unsigned to double
    value1.unsignedValue(0);
    value2.dblValue(0);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(-1, status);
    // unsigned to string
    value1.unsignedValue(0);
    value2.charValue("");
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.dblValue()

    value2.unsignedValue(100);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(-1, status);
    // double to double
    value1.dblValue(0);
    value2.dblValue(0);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(0, status);
    // double to double (right side higher)
    value1.dblValue(-10);
    value2.dblValue(0);
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.dblValue()

    value2.dblValue(0);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(0, status);
    // double to double (right side higher)
    value1.dblValue(-10);
    value2.dblValue(0);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(-1, status);
    // double to double (left side higher)
    value1.dblValue(10);
    value2.dblValue(0);
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.dblValue()

    value2.dblValue(0);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(-1, status);
    // double to double (left side higher)
    value1.dblValue(10);
    value2.dblValue(0);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(1, status);
    // double to string
    value1.dblValue(0);
    value2.charValue("");
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.dblValue()

    value2.unsignedValue(100);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(-1, status);
    // string to double
    value1.charValue("");
    value2.dblValue(0);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(-1, status);
    // string to string
    value1.charValue("cdcd");
    value2.charValue("cdcd");
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.dblValue()

    updateTs = Calendar.getInstance().getTimeInMillis();
    sleep(1);
   
    // set without timestamp
    value.dblValue(11.5);
    status = datapoint.setSourceValue(value, false);
    Assert.assertEquals(1, status);
    Assert.assertEquals(11.5, datapoint.getSourceValue().dblValue());
    Assert.assertEquals(0, datapoint.getSourceTimestamp());
    Assert.assertEquals(11.5, datapoint.getValue().dblValue());
View Full Code Here

Examples of tcg.scada.cos.CosDpValueUnion.dblValue()

    updateTs = Calendar.getInstance().getTimeInMillis();
    sleep(1);
   
    // set with timestamp
    value.dblValue(15.7);
    status = datapoint.setSourceValue(value, true);
    Assert.assertEquals(1, status);
    Assert.assertEquals(15.7, datapoint.getSourceValue().dblValue());
    Assert.assertTrue(datapoint.getSourceTimestamp() > updateTs);
    Assert.assertEquals(15.7, datapoint.getValue().dblValue());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.