Examples of TExportProperty


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

    public void setRegion(String value) { region = value; }
    public TExportProperty getExportProperty() { return xp; }
    public TPropertyDescription getPropertyDescription() { return prpDesc; }
    expRowHndlr(String targetName)
    {
      xp = new TExportProperty();
      prpDesc = new TPropertyDescription();
      if (targetLocalName == null) targetLocalName = targetName;
    }
View Full Code Here

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

        }         
      }
      xp.setDescription(prpDesc);
      registerProperty(xp,null);
      // allocate a new one
      xp = new TExportProperty();
      prpDesc = new TPropertyDescription();
      if (numDevsHint > numDevicesFromExportsFile)
        numDevicesFromExportsFile = numDevsHint;
      return 0;
    }
View Full Code Here

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

    public int process(String strValue,int index)
    {
      if (strValue == null || strValue.length() == 0) return 0;
      try
      {
        TExportProperty xp = rHndlr.getExportProperty();
        addPrpDbaItem(xp.getName(), xp.getAccessMode(), new Integer(strValue).intValue());
      }
      catch (Exception e)
      { // just dump the stack (parsing error?, xp == null ?)
        e.printStackTrace();
      }
View Full Code Here

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

      if (strValue == null || strValue.length() == 0) return 0;
      // parse access mode according to convention
      String accessString = strValue.trim().toUpperCase();
      short ta = 0;
      int idx = -1;
      TExportProperty txp = rHndlr.getExportProperty();
      if (txp == null) return TErrorList.code_failure;
      if ((idx=accessString.indexOf("XREAD")) >= 0)
      { // remove this from the accessString for further comparisons
        txp.hasExclusiveRead = true;
        String s = accessString.substring(0, idx);
        s += accessString.substring(idx+5, accessString.length());
        accessString = s;
      }
      if (accessString.indexOf("WRITE") >= 0) ta |=  TAccess.CA_WRITE;
      if (accessString.indexOf("READ") >= 0) ta |=  TAccess.CA_READ;
      if (accessString.indexOf("NETWORK") >= 0) ta |=  TAccess.CA_READ|TAccess.CA_NETWORK;
      if (accessString.indexOf("ASYNC") >= 0)
      {
        ta &= ~(TAccess.CA_WRITE);
        ta |=  TAccess.CA_READ|TAccess.CA_NOSYNC;     
      }
      if (accessString.indexOf("SAVERESTORE") >= 0) ta |=  TAccess.CA_SAVERESTORE;
      if (accessString.indexOf("HIST") >= 0) ta |=  TAccess.CA_HIST;
      if (accessString.indexOf("FORCEOUTPUT") >= 0) ta |=  TAccess.CA_FORCEOUTPUT;
      txp.setAccessMode(ta);
      if (txp.hasExclusiveRead && !TAccess.isRead((byte)ta))
      { // force read calls thru the security layer for this property !
        txp.hasUnlockedExclusiveRead = true;
      }
      return 0;
View Full Code Here

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

    private boolean isXaxis = false;
    expMaxValueHndlr(expRowHndlr rowHndlr,boolean xaxis) {rHndlr = rowHndlr; isXaxis = xaxis;}
    public int process(String strValue,int index)
    {
      if (strValue == null || strValue.length() == 0) return 0;
      TExportProperty txp = rHndlr.getExportProperty();
      if (txp == null) return TErrorList.code_failure;
      if (isXaxis)
        txp.setMaximumXValue(Float.valueOf(strValue).floatValue());
      else
        txp.setMaximumValue(Float.valueOf(strValue).floatValue());
      return 0;
    }
View Full Code Here

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

    private boolean isXaxis = false;
    expMinValueHndlr(expRowHndlr rowHndlr,boolean xaxis) {rHndlr = rowHndlr; isXaxis = xaxis;}
    public int process(String strValue,int index)
    {
      if (strValue == null || strValue.length() == 0) return 0;
      TExportProperty txp = rHndlr.getExportProperty();
      if (txp == null) return TErrorList.code_failure;
      if (isXaxis)
        txp.setMinimumXValue(Float.valueOf(strValue).floatValue());
      else
        txp.setMinimumValue(Float.valueOf(strValue).floatValue());
      return 0;
    }
View Full Code Here

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

    private boolean isXaxis = false;
    expUnitsHndlr(expRowHndlr rowHndlr,boolean xaxis) {rHndlr = rowHndlr; isXaxis = xaxis;}
    public int process(String strValue,int index)
    {
      if (strValue == null) return 0;
      TExportProperty txp = rHndlr.getExportProperty();
      if (txp == null) return TErrorList.code_failure;
      if (isXaxis)
        txp.setXUnits(strValue);
      else
        txp.setUnits(strValue);
      return 0;
    }
View Full Code Here

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

    {
      if (devName == null) return -TErrorList.argument_list_error;
      if (devName.startsWith("#")) return Integer.parseInt(devName.substring(1));
      if (deviceList.isPropertyOriented() && devProperty != null)
      {
        TExportProperty prp = propertyList.getFirstProperty(devProperty);
        if (prp != null)
        {
          ArrayList<String> lst = prp.getDeviceList();
          if (lst != null) return lst.indexOf(devName);
        }
      }
      return deviceList.getDeviceNumber(devName);
    }
View Full Code Here

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

   */
  public int addAlarmWatchTableEntry(String deviceName,String propertyName,int dataSize,int dataFormat,
               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,
View Full Code Here

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

   * @return
   */
  public int addLocalHistoryRecord(int recordIndex,String device,String property,int dataSize,int dataFormat)
  {
    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
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.