Examples of boolValue()


Examples of com.dd.plist.NSNumber.boolValue()

  public WebkitApplication(NSDictionary dict) {

    WIRApplicationIdentifierKey = dict.objectForKey("WIRApplicationIdentifierKey").toString();
    WIRApplicationNameKey = dict.objectForKey("WIRApplicationNameKey").toString();
    NSNumber o = (NSNumber) dict.objectForKey("WIRIsApplicationProxyKey");
    WIRIsApplicationProxyKey = o.boolValue();
  }

  public String getBundleId() {
    return WIRApplicationIdentifierKey;
  }
View Full Code Here

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

    outputTs = datapoint.getTimestamp();
    updateTs = datapoint.getUpdateTimestamp();
    sleep(1);

    // set override (mutually exclusive)
    value.boolValue(true);
    boolStatus = datapoint.setOverride(value);
    Assert.assertEquals(false, boolStatus);
    Assert.assertEquals(true, datapoint.isInhibit());
    Assert.assertEquals(false, datapoint.isOverride());
    // inhibit and override state is mutually exclusive
View Full Code Here

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

    updateTs = Calendar.getInstance().getTimeInMillis();
    sleep(1);
   
    // set without timestamp
    value.boolValue(true);
    status = datapoint.setSourceValue(value, false);
    Assert.assertEquals(1, status);
    // source value is updated, source timestamp is not updated
    Assert.assertEquals(true, datapoint.getSourceValue().boolValue());
    Assert.assertEquals(0, datapoint.getSourceTimestamp());
View Full Code Here

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

    updateTs = Calendar.getInstance().getTimeInMillis();
    sleep(1);
   
    // set with timestamp
    value.boolValue(false);
    status = datapoint.setSourceValue(value, true);
    Assert.assertEquals(1, status);
    // source value is updated, source timestamp is set to current time
    Assert.assertEquals(false, datapoint.getSourceValue().boolValue());
    Assert.assertTrue(datapoint.getSourceTimestamp() > updateTs);
View Full Code Here

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

    datapoint.name = "real-number";

    CosDpValueUnion outValue = new CosDpValueUnion();

    CosDpValueUnion in_bool_value = new CosDpValueUnion();
    in_bool_value.boolValue(false);
    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();
View Full Code Here

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

    CosDpValueUnion value2 = new CosDpValueUnion();

    // BOOLEAN data type
    // bool to bool (different value)
    value1.boolValue(false);
    value2.boolValue(true);
    int status = datapoint._compare(value1, value2);
    Assert.assertEquals(1, status);
    // bool to bool (the same value)
    value1.boolValue(false);
    value2.boolValue(false);
View Full Code Here

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

    value2.boolValue(true);
    int status = datapoint._compare(value1, value2);
    Assert.assertEquals(1, status);
    // bool to bool (the same value)
    value1.boolValue(false);
    value2.boolValue(false);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(0, status);
    // bool to number
    value1.boolValue(false);
    value2.longValue(0);
View Full Code Here

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

    Assert.assertEquals(-1, status);

    // NUMBER data type
    // number to bool (different value)
    value1.longValue(0);
    value2.boolValue(true);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(-1, status);
    // number to number
    value1.longValue(0);
    value2.longValue(0);
View Full Code Here

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

    Assert.assertEquals(-1, status);

    // UNSIGNED data type
    // unsigned to bool (different value)
    value1.unsignedValue(0);
    value2.boolValue(true);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(-1, status);
    // unsigned to number
    value1.unsignedValue(0);
    value2.longValue(0);
View Full Code Here

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

    Assert.assertEquals(-1, status);

    // DOUBLE data type
    // double to bool (different value)
    value1.dblValue(0);
    value2.boolValue(true);
    status = datapoint._compare(value1, value2);
    Assert.assertEquals(-1, status);
    // double to number
    value1.dblValue(0);
    value2.longValue(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.