Package tcg.scada.cos

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


    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)
    outValue.boolValue(false);
    in_bool_value.boolValue(true);
View Full Code Here


    status = datapoint._copy(outValue, in_double_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(true, outValue.boolValue());
    // copy string to bool (value = "")
    outValue.boolValue(false);
    in_string_value.charValue("");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(false, outValue.boolValue());
    // copy string to bool (value = "test")
    outValue.boolValue(false);
View Full Code Here

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(false, outValue.boolValue());
    // copy string to bool (value = "test")
    outValue.boolValue(false);
    in_string_value.charValue("test");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(true, outValue.boolValue());
    // copy string to bool (value = null)
    outValue.boolValue(false);
View Full Code Here

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(true, outValue.boolValue());
    // copy string to bool (value = null)
    outValue.boolValue(false);
    in_string_value.charValue(null);
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(false, outValue.boolValue());

    // NUMBER data type
View Full Code Here

    status = datapoint._copy(outValue, in_double_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(11, outValue.longValue());
    // copy string to number (value = "")
    outValue.longValue(0);
    in_string_value.charValue("");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(0, outValue.longValue());
    // copy string to number (value = "test")
    outValue.longValue(0);
View Full Code Here

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(0, outValue.longValue());
    // copy string to number (value = "test")
    outValue.longValue(0);
    in_string_value.charValue("test");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(0, outValue.longValue());
    // copy string to number (value = "11")
    outValue.longValue(0);
View Full Code Here

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(0, outValue.longValue());
    // copy string to number (value = "11")
    outValue.longValue(0);
    in_string_value.charValue("11");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(11, outValue.longValue());
    // copy string to number (value = "-11")
    outValue.longValue(0);
View Full Code Here

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(11, outValue.longValue());
    // copy string to number (value = "-11")
    outValue.longValue(0);
    in_string_value.charValue("-11");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(-11, outValue.longValue());
    // copy string to number (value = null)
    outValue.longValue(0);
View Full Code Here

    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(-11, outValue.longValue());
    // copy string to number (value = null)
    outValue.longValue(0);
    in_string_value.charValue(null);
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(0, outValue.longValue());

    // UNSIGNED data type
View Full Code Here

    status = datapoint._copy(outValue, in_double_value);
    Assert.assertEquals(1, status);
    Assert.assertEquals(11, outValue.unsignedValue());
    // copy string to unsigned (value = "")
    outValue.unsignedValue(0);
    in_string_value.charValue("");
    status = datapoint._copy(outValue, in_string_value);
    Assert.assertEquals(0, status);
    Assert.assertEquals(0, outValue.unsignedValue());
    // copy string to unsigned (value = "test")
    outValue.unsignedValue(0);
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.