Package tcg.scada.cos

Examples of tcg.scada.cos.CosDpQualityEnum


    int retval = 0;
    IDataPoint datapoint = null;
    Object value = null;

    CosDpQualityEnum expressionQuality = CosDpQualityEnum.QualityGood;
    CosDpValueUnion expressionValue = null;

    // update the value of expression parameters
    for (int i = 0; i < expressionParams.size(); i++)
    {
View Full Code Here


    // try to copy over the value
    status1 = copy(outputValue, sourceValue);

    // try to copy over the quality
    CosDpQualityEnum newQuality = calculate_quality();
    if (outputQuality != newQuality)
    {
      outputQuality = newQuality;
      status2 = +1;
    }
View Full Code Here

    {
      return -1;
    }

    // update output quality
    CosDpQualityEnum newQuality = calculate_quality();
    if (outputQuality != newQuality)
    {
      outputQuality = newQuality;
      return +1;
    }
View Full Code Here

  // calculate the datapoint quality
  // this is protected because generally the client should never call this function.
  // this should be triggered automatically upon changes on related attributes/parameters
  private int update_quality()
  {
    CosDpQualityEnum newQuality = CosDpQualityEnum.QualityBad;

    // determine the datapoint quality. store the new quality in newQuality
    if (sourceValue_.quality == CosDpQualityEnum.QualityBad)
    {
      // if source quality is bad, always set to bad.
View Full Code Here

TOP

Related Classes of tcg.scada.cos.CosDpQualityEnum

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.