Package tcg.scada.da

Examples of tcg.scada.da.IDataPoint


    CosDpValueStruct value = new CosDpValueStruct();
    value.timestamp = 0;
    value.quality = CosDpQualityEnum.QualityGood;

    // update the value
    IDataPoint dp = null;
    boolean boolValue = false;
    for (int i = 0; i < datapoints.size(); i++)
    {
      dp = datapoints.get(i);
      if (dp == null || dp.getSourceType() != ESourceDataType.TYPE_DI)
      {
        continue;
      }

      // TODO: parse DDI and TDI as well

      boolValue = states[dp.getAddress() - offset];
      value.value.boolValue(boolValue);

      // set the dp value
      if (dp.setSourceValue(value) < 0)
      {
        logger.warn("Can not update source value of datapoint "
            + dp.getName());
      }
    }
  }
View Full Code Here

TOP

Related Classes of tcg.scada.da.IDataPoint

Copyright © 2018 www.massapicom. 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.