Examples of TPropertyDescription


Examples of de.desy.tine.server.properties.TPropertyDescription

               int alarmSystem,int alarmSeverity,int alarmCode,int alarmCodeHigh,int alarmCodeLow,
               TAlarmWatchThreshold alarmWatchThreshold)
  {
    TExportProperty p = propertyList.getFirstProperty(propertyName);
    if (p == null) return TErrorList.illegal_property;
    TPropertyDescription pd = p.getDescription();
    short arrayType = pd == null ? TArrayType.AT_UNKNOWN : pd.getArrayType();   
    TAlarmWatchEntry awe = new TAlarmWatchEntry(this,deviceName,
        propertyName,dataSize,dataFormat,
        arrayType,alarmSystem,
        alarmSeverity,alarmCode,
        alarmCodeHigh,alarmCodeLow,alarmWatchThreshold);       
View Full Code Here

Examples of de.desy.tine.server.properties.TPropertyDescription

  {
    short arrayType = TArrayType.AT_UNKNOWN;
    TExportProperty p = propertyList.getFirstProperty(property);
    if (p != null)
    {
      TPropertyDescription pd = p.getDescription();
      arrayType = pd == null ? TArrayType.AT_UNKNOWN : pd.getArrayType();
    }
    return addLocalHistoryRecord(recordIndex,device,property,dataSize,dataFormat,arrayType);
  }
View Full Code Here

Examples of de.desy.tine.server.properties.TPropertyDescription

    if (isHstRecordInLst(device,property,dataSize,dataFormat)) return 0;
    if (arrayType == TArrayType.AT_UNKNOWN)
    {
      TExportProperty p = propertyList.getFirstProperty(property);
      if (p == null) return TErrorList.illegal_property;
      TPropertyDescription pd = p.getDescription();
      arrayType = pd == null ? TArrayType.AT_UNKNOWN : pd.getArrayType();   
    }
    THistoryRecord hst = new THistoryRecord(this,device,property,dataSize,dataFormat,arrayType,recordIndex,histSpec);
    if (useMinimalStorage) hst.setUseMinimalStorage(true);
    if (useMonthlyHistoryFiles) hst.setUseMonthlyHistoryFiles(true);
    gLclHstList.add(hst);
View Full Code Here

Examples of de.desy.tine.server.properties.TPropertyDescription

            String dev = hrs[0].getDevice();
            THistoryRecord hr = getLocalHistoryRecord(prp,dev);
            if (hr == null)            
            { // wasn't in list
              TExportProperty p = getPropertyList().getFirstProperty(prp);
              TPropertyDescription pd = p.getDescription();
              int at = pd != null ? pd.getArrayType() : TArrayType.AT_UNKNOWN;
              int idx = TEquipmentModuleFactory.getInstance().getNextHistoryRecordIndex();
              THistorySpecification hspec = new THistorySpecification(hrs[0].getPollingRate(), hrs[0].getArchiveRate(), hrs[0].getDepthShort(), hrs[0].getDepthLong(), hrs[0].getHeartbeat(), hrs[0].getPercentTolerance(), hrs[0].getAbsoluteTolerance(), null);
              addLocalHistoryRecord(idx, dev, prp, hrs[0].getSize(), hrs[0].getFormat(),at,hspec);
              dumpHistoryManifest();
            }
View Full Code Here

Examples of de.desy.tine.server.properties.TPropertyDescription

   */
  public void registerProperty(String prpName, TDataType dout, TDataType din, short acc,
      TPropertyDescription prpDesc, int prpId)
  {
    TStrings.validatePropertyName(prpName);
    if (prpDesc == null) prpDesc = new TPropertyDescription(null);
    if (prpDesc.getArrayRowLength() == 0) prpDesc.setArrayRowLength(dout.dArrayLength);
    if (dout.dArrayLength == 1) prpDesc.setArrayType(TArrayType.AT_SCALAR);
    TExportProperty prp = new TExportProperty(prpId, prpName, acc, din, dout);
    prp.setDescription(prpDesc);
    propertyList.addProperty(this, prp, null);
View Full Code Here

Examples of de.desy.tine.server.properties.TPropertyDescription

               int alarmSystem,int alarmSeverity,int alarmCode,int alarmCodeHigh,int alarmCodeLow,
               TAlarmWatchThreshold alarmWatchThreshold)
  {
    TExportProperty p = propertyList.getFirstProperty(propertyName);
    if (p == null) return TErrorList.illegal_property;
    TPropertyDescription pd = p.getDescription();
    short arrayType = pd == null ? TArrayType.AT_UNKNOWN : pd.getArrayType();   
    TAlarmWatchEntry awe = new TAlarmWatchEntry(this,deviceName,
        propertyName,dataSize,dataFormat,
        arrayType,alarmSystem,
        alarmSeverity,alarmCode,
        alarmCodeHigh,alarmCodeLow,alarmWatchThreshold);       
View Full Code Here

Examples of de.desy.tine.server.properties.TPropertyDescription

  {
    short arrayType = TArrayType.AT_UNKNOWN;
    TExportProperty p = propertyList.getFirstProperty(property);
    if (p != null)
    {
      TPropertyDescription pd = p.getDescription();
      arrayType = pd == null ? TArrayType.AT_UNKNOWN : pd.getArrayType();
    }
    return addLocalHistoryRecord(recordIndex,device,property,dataSize,dataFormat,arrayType);
  }
View Full Code Here

Examples of de.desy.tine.server.properties.TPropertyDescription

    if (isHstRecordInLst(device,property,dataSize,dataFormat)) return 0;
    if (arrayType == TArrayType.AT_UNKNOWN)
    {
      TExportProperty p = propertyList.getFirstProperty(property);
      if (p == null) return TErrorList.illegal_property;
      TPropertyDescription pd = p.getDescription();
      arrayType = pd == null ? TArrayType.AT_UNKNOWN : pd.getArrayType();   
    }
    THistoryRecord hst = new THistoryRecord(this,device,property,dataSize,dataFormat,arrayType,recordIndex,histSpec);
    if (useMinimalStorage) hst.setUseMinimalStorage(true);
    if (useMonthlyHistoryFiles) hst.setUseMonthlyHistoryFiles(true);
    gLclHstList.add(hst);
View Full Code Here

Examples of de.desy.tine.server.properties.TPropertyDescription

            String dev = hrs[0].getDevice();
            THistoryRecord hr = getLocalHistoryRecord(prp,dev);
            if (hr == null)            
            { // wasn't in list
              TExportProperty p = getPropertyList().getFirstProperty(prp);
              TPropertyDescription pd = p.getDescription();
              int at = pd != null ? pd.getArrayType() : TArrayType.AT_UNKNOWN;
              int idx = TEquipmentModuleFactory.getInstance().getNextHistoryRecordIndex();
              THistorySpecification hspec = new THistorySpecification(hrs[0].getPollingRate(), hrs[0].getArchiveRate(), hrs[0].getDepthShort(), hrs[0].getDepthLong(), hrs[0].getHeartbeat(), hrs[0].getPercentTolerance(), hrs[0].getAbsoluteTolerance(), null);
              addLocalHistoryRecord(idx, dev, prp, hrs[0].getSize(), hrs[0].getFormat(),at,hspec);
              dumpHistoryManifest();
            }
View Full Code Here

Examples of de.desy.tine.server.properties.TPropertyDescription

   */
  public void registerProperty(String prpName, TDataType dout, TDataType din, short acc,
      TPropertyDescription prpDesc, int prpId)
  {
    TStrings.validatePropertyName(prpName);
    if (prpDesc == null) prpDesc = new TPropertyDescription(null);
    if (prpDesc.getArrayRowLength() == 0) prpDesc.setArrayRowLength(dout.dArrayLength);
    if (dout.dArrayLength == 1) prpDesc.setArrayType(TArrayType.AT_SCALAR);
    TExportProperty prp = new TExportProperty(prpId, prpName, acc, din, dout);
    prp.setDescription(prpDesc);
    propertyList.addProperty(this, prp, null);
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.