Examples of TStructDescription


Examples of de.desy.tine.structUtils.TStructDescription

      lnk.linkStale = true;
      return cc;
    }
    String key = lnk.cntName == null ? null : "/"+lnk.cntName+"/"+lnk.expName;
    if (dOutput.getStructureKey() == null) dOutput.setStructureKey(key);
    TStructDescription tsd = TStructRegistry.get(tag,key);
    if (tsd == null)
    {
      cc = lnk.linkStatus = TErrorList.invalid_structure_tag;
      lnk.linkStale = true;
      return cc;
    }
    boolean fieldKnown = false;
    String[] parts;
    String prp = lnk.devProperty;
    String fld = null;
    if (!fieldKnown)
    {
      parts = lnk.devProperty.split("\\.");
      if (parts.length > 1 && tsd.hasField(parts[parts.length-1]))
      {
        prp = lnk.devProperty.substring(0, lnk.devProperty.indexOf(parts[parts.length-1])-1);
        fld = parts[parts.length-1];
        fieldKnown = true;
      }
View Full Code Here

Examples of de.desy.tine.structUtils.TStructDescription

      lnk.linkStale = true;
      return cc;
    }
    String key = lnk.cntName == null ? null : "/"+lnk.cntName+"/"+lnk.expName;
    if (dOutput.getStructureKey() == null) dOutput.setStructureKey(key);
    TStructDescription tsd = TStructRegistry.get(tag,key);
    if (tsd == null)
    {
      cc = lnk.linkStatus = TErrorList.invalid_structure_tag;
      lnk.linkStale = true;
      return cc;
    }
    boolean fieldKnown = false;
    String[] parts;
    String prp = lnk.devProperty;
    String fld = null;
    if (!fieldKnown)
    {
      parts = lnk.devProperty.split("\\.");
      if (parts.length > 1 && tsd.hasField(parts[parts.length-1]))
      {
        prp = lnk.devProperty.substring(0, lnk.devProperty.indexOf(parts[parts.length-1])-1);
        fld = parts[parts.length-1];
        fieldKnown = true;
      }
View Full Code Here

Examples of de.desy.tine.structUtils.TStructDescription

   * Defines the stock structure as a static TStructDescription.
   * 
   */
  private static void initStructDescription()
  {
    stockStruct = new TStructDescription("PRPQSr4");
    stockStruct.beginDefinition();
    stockStruct.addField("property",TFormat.CF_TEXT, TStrings.PROPERTY_NAME_SIZE);
    stockStruct.addField("description",TFormat.CF_TEXT, TStrings.PROPERTY_DESC_SIZE);
    stockStruct.addField("redirection",TFormat.CF_TEXT, TStrings.PROPERTY_REDIR_SIZE);
    stockStruct.addField("tagOut",TFormat.CF_TEXT, TStrings.TAG_NAME_SIZE);
    stockStruct.addField("tagIn",TFormat.CF_TEXT, TStrings.TAG_NAME_SIZE);
    stockStruct.addField("units",TFormat.CF_TEXT, TStrings.UNITS_SIZE);
    stockStruct.addField("min",TFormat.CF_FLOAT, 1);
    stockStruct.addField("max",TFormat.CF_FLOAT, 1);
    stockStruct.addField("sizeOut",TFormat.CF_LONG, 1);
    stockStruct.addField("sizeIn",TFormat.CF_LONG, 1);
    stockStruct.addField("overloads",TFormat.CF_LONG, 1);
    stockStruct.addField("historyShort",TFormat.CF_SHORT, 1);
    stockStruct.addField("historyLong",TFormat.CF_SHORT, 1);
    stockStruct.addField("formatOut",TFormat.CF_BYTE, 1);
    stockStruct.addField("formatIn",TFormat.CF_BYTE, 1);
    stockStruct.addField("access",TFormat.CF_BYTE, 1);
    stockStruct.addField("graphType",TFormat.CF_BYTE, 1);
    stockStruct.addField("rangeUnits",TFormat.CF_TEXT, TStrings.UNITS_SIZE);
    stockStruct.addField("rangeMin",TFormat.CF_FLOAT, 1);
    stockStruct.addField("rangeMax",TFormat.CF_FLOAT, 1);
    stockStruct.addField("numRows",TFormat.CF_SHORT, 1);
    stockStruct.addField("rowSize",TFormat.CF_SHORT, 1);
    stockStruct.addField("arrayType",TFormat.CF_SHORT, 1);
    stockStruct.addField("reserved",TFormat.CF_SHORT, 3);
    stockStruct.setArraySize(nice_query_size);
    stockStruct.endDefinition();
    TStructRegistry.add(getStructDescription());

    stockStruct = new TStructDescription("XPQS");
    stockStruct.beginDefinition();
    stockStruct.addField("property",TFormat.CF_TEXT, 32);
    stockStruct.addField("description",TFormat.CF_TEXT, 64);
    stockStruct.addField("redirection",TFormat.CF_TEXT, 32);
    stockStruct.addField("tagOut",TFormat.CF_TEXT, 8);
    stockStruct.addField("tagIn",TFormat.CF_TEXT, 8);
    stockStruct.addField("units",TFormat.CF_TEXT, 16);
    stockStruct.addField("min",TFormat.CF_FLOAT, 1);
    stockStruct.addField("max",TFormat.CF_FLOAT, 1);
    stockStruct.addField("sizeOut",TFormat.CF_LONG, 1);
    stockStruct.addField("sizeIn",TFormat.CF_LONG, 1);
    stockStruct.addField("overloads",TFormat.CF_LONG, 1);
    stockStruct.addField("shortDepth",TFormat.CF_SHORT, 1);
    stockStruct.addField("longDepth",TFormat.CF_SHORT, 1);
    stockStruct.addField("formatOut",TFormat.CF_BYTE, 1);
    stockStruct.addField("formatIn",TFormat.CF_BYTE, 1);
    stockStruct.addField("access",TFormat.CF_BYTE, 1);
    stockStruct.addField("graphType",TFormat.CF_BYTE, 1);
    stockStruct.addField("rangeUnits",TFormat.CF_TEXT, 16);
    stockStruct.addField("rangeMin",TFormat.CF_FLOAT, 1);
    stockStruct.addField("rangeMax",TFormat.CF_FLOAT, 1);
    stockStruct.addField("numRows",TFormat.CF_SHORT, 1);
    stockStruct.addField("rowSize",TFormat.CF_SHORT, 1);
    stockStruct.addField("arrayType",TFormat.CF_SHORT, 1);
    stockStruct.addField("reserved",TFormat.CF_SHORT, 3);
    stockStruct.setArraySize(nice_query_size);
    stockStruct.endDefinition();
    TStructRegistry.add(getStructDescription());
    // get the remaining stock structures into the registry
    new TWriteAccessInfo("","","","","",0);
    new TClient();
    new TConnectionStruct();
    new TContractEntry();
    new TServerSettings();
    new THistoryRecordStruct();
    TAlarmMessage5.initStructDescription();
    new TAlarmWatchEntry();
   
    stockStructLegacy = new TStructDescription("PQS");
    stockStructLegacy.beginDefinition();
    stockStructLegacy.addField("property",TFormat.CF_TEXT, 32);
    stockStructLegacy.addField("description",TFormat.CF_TEXT, 32);
    stockStructLegacy.addField("size",TFormat.CF_SHORT, 1);
    stockStructLegacy.addField("format",TFormat.CF_BYTE, 1);
View Full Code Here

Examples of de.desy.tine.structUtils.TStructDescription

    return myStructDsc;
  }
  private static void initClientStruct()
  {
    if (TStructRegistry.contains("CLNQS")) return;
    myStructDsc = new TStructDescription("CLNQS"); //("XCLNS");
    myStructDsc.beginDefinition();
    myStructDsc.addField("username",TFormat.CF_TEXT, 16);
    myStructDsc.addField("ipxAddr",TFormat.CF_BYTE, 12);
    myStructDsc.addField("ipxNode",TFormat.CF_BYTE, 6);
    myStructDsc.addField("ipFamily",TFormat.CF_SHORT, 1);
View Full Code Here

Examples of de.desy.tine.structUtils.TStructDescription

              dt = new TDataType(d);
              break;
            }
            case TFormat.CF_STRUCT:
            {
              TStructDescription tsd = TStructRegistry.get(srData[devnr].getTag());
              if (tsd == null) return TErrorList.invalid_structure_tag;
              TTaggedStructure tts = tsd.getTaggedStructure();
              int ssiz = tts.getSizeInBytes();
              if (ssiz < 1) return TErrorList.invalid_structure_size;
              len *= ssiz; // size in bytes of struct
              byte[] d = new byte[len];
              dis.read(d);
View Full Code Here

Examples of de.desy.tine.structUtils.TStructDescription

   * Defines the stock structure as a static TStructDescription.
   * 
   */
  private static void initStructDescription()
  {
    stockStruct = new TStructDescription("PRPQSr4");
    stockStruct.beginDefinition();
    stockStruct.addField("property",TFormat.CF_TEXT, TStrings.PROPERTY_NAME_SIZE);
    stockStruct.addField("description",TFormat.CF_TEXT, TStrings.PROPERTY_DESC_SIZE);
    stockStruct.addField("redirection",TFormat.CF_TEXT, TStrings.PROPERTY_REDIR_SIZE);
    stockStruct.addField("tagOut",TFormat.CF_TEXT, TStrings.TAG_NAME_SIZE);
    stockStruct.addField("tagIn",TFormat.CF_TEXT, TStrings.TAG_NAME_SIZE);
    stockStruct.addField("units",TFormat.CF_TEXT, TStrings.UNITS_SIZE);
    stockStruct.addField("min",TFormat.CF_FLOAT, 1);
    stockStruct.addField("max",TFormat.CF_FLOAT, 1);
    stockStruct.addField("sizeOut",TFormat.CF_LONG, 1);
    stockStruct.addField("sizeIn",TFormat.CF_LONG, 1);
    stockStruct.addField("overloads",TFormat.CF_LONG, 1);
    stockStruct.addField("historyShort",TFormat.CF_SHORT, 1);
    stockStruct.addField("historyLong",TFormat.CF_SHORT, 1);
    stockStruct.addField("formatOut",TFormat.CF_BYTE, 1);
    stockStruct.addField("formatIn",TFormat.CF_BYTE, 1);
    stockStruct.addField("access",TFormat.CF_BYTE, 1);
    stockStruct.addField("graphType",TFormat.CF_BYTE, 1);
    stockStruct.addField("rangeUnits",TFormat.CF_TEXT, TStrings.UNITS_SIZE);
    stockStruct.addField("rangeMin",TFormat.CF_FLOAT, 1);
    stockStruct.addField("rangeMax",TFormat.CF_FLOAT, 1);
    stockStruct.addField("numRows",TFormat.CF_SHORT, 1);
    stockStruct.addField("rowSize",TFormat.CF_SHORT, 1);
    stockStruct.addField("arrayType",TFormat.CF_SHORT, 1);
    stockStruct.addField("reserved",TFormat.CF_SHORT, 3);
    stockStruct.setArraySize(nice_query_size);
    stockStruct.endDefinition();
    TStructRegistry.add(getStructDescription());

    stockStruct = new TStructDescription("XPQS");
    stockStruct.beginDefinition();
    stockStruct.addField("property",TFormat.CF_TEXT, 32);
    stockStruct.addField("description",TFormat.CF_TEXT, 64);
    stockStruct.addField("redirection",TFormat.CF_TEXT, 32);
    stockStruct.addField("tagOut",TFormat.CF_TEXT, 8);
    stockStruct.addField("tagIn",TFormat.CF_TEXT, 8);
    stockStruct.addField("units",TFormat.CF_TEXT, 16);
    stockStruct.addField("min",TFormat.CF_FLOAT, 1);
    stockStruct.addField("max",TFormat.CF_FLOAT, 1);
    stockStruct.addField("sizeOut",TFormat.CF_LONG, 1);
    stockStruct.addField("sizeIn",TFormat.CF_LONG, 1);
    stockStruct.addField("overloads",TFormat.CF_LONG, 1);
    stockStruct.addField("shortDepth",TFormat.CF_SHORT, 1);
    stockStruct.addField("longDepth",TFormat.CF_SHORT, 1);
    stockStruct.addField("formatOut",TFormat.CF_BYTE, 1);
    stockStruct.addField("formatIn",TFormat.CF_BYTE, 1);
    stockStruct.addField("access",TFormat.CF_BYTE, 1);
    stockStruct.addField("graphType",TFormat.CF_BYTE, 1);
    stockStruct.addField("rangeUnits",TFormat.CF_TEXT, 16);
    stockStruct.addField("rangeMin",TFormat.CF_FLOAT, 1);
    stockStruct.addField("rangeMax",TFormat.CF_FLOAT, 1);
    stockStruct.addField("numRows",TFormat.CF_SHORT, 1);
    stockStruct.addField("rowSize",TFormat.CF_SHORT, 1);
    stockStruct.addField("arrayType",TFormat.CF_SHORT, 1);
    stockStruct.addField("reserved",TFormat.CF_SHORT, 3);
    stockStruct.setArraySize(nice_query_size);
    stockStruct.endDefinition();
    TStructRegistry.add(getStructDescription());
    // get the remaining stock structures into the registry
    new TWriteAccessInfo("","","","","",0);
    new TClient();
    new TConnectionStruct();
    new TContractEntry();
    new TServerSettings();
    new THistoryRecordStruct();
    TAlarmMessage5.initStructDescription();
    new TAlarmWatchEntry();
   
    stockStructLegacy = new TStructDescription("PQS");
    stockStructLegacy.beginDefinition();
    stockStructLegacy.addField("property",TFormat.CF_TEXT, 32);
    stockStructLegacy.addField("description",TFormat.CF_TEXT, 32);
    stockStructLegacy.addField("size",TFormat.CF_SHORT, 1);
    stockStructLegacy.addField("format",TFormat.CF_BYTE, 1);
View Full Code Here

Examples of de.desy.tine.structUtils.TStructDescription

    if (barray != null) for (int i=0; i<barray.length; i++) almData[i] = barray[i];   
  }
  public static void initStructDescription()
  {
    if (almStruct != null) return;
    almStruct = new TStructDescription("AMS");
    almStruct.beginDefinition();
    almStruct.addField(TFormat.CF_TEXT, 16);
    almStruct.addField(TFormat.CF_TEXT, 16);
    almStruct.addField(TFormat.CF_TEXT, 16);
    almStruct.addField(TFormat.CF_LONG, 1);
View Full Code Here

Examples of de.desy.tine.structUtils.TStructDescription

    return myStructDsc;
  }
  private static void initClientStruct()
  {
    if (TStructRegistry.contains("CLNQS")) return;
    myStructDsc = new TStructDescription("CLNQS"); //("XCLNS");
    myStructDsc.beginDefinition();
    myStructDsc.addField("username",TFormat.CF_TEXT, 16);
    myStructDsc.addField("ipxAddr",TFormat.CF_BYTE, 12);
    myStructDsc.addField("ipxNode",TFormat.CF_BYTE, 6);
    myStructDsc.addField("ipFamily",TFormat.CF_SHORT, 1);
View Full Code Here

Examples of de.desy.tine.structUtils.TStructDescription

      lnk.linkStale = true;
      return cc;
    }
    String key = lnk.cntName == null ? null : "/"+lnk.cntName+"/"+lnk.expName;
    if (dOutput.getStructureKey() == null) dOutput.setStructureKey(key);
    TStructDescription tsd = TStructRegistry.get(tag,key);
    if (tsd == null)
    {
      cc = lnk.linkStatus = TErrorList.invalid_structure_tag;
      lnk.linkStale = true;
      return cc;
    }
    boolean fieldKnown = false;
    String[] parts;
    String prp = lnk.devProperty;
    String fld = null;
    if (!fieldKnown)
    {
      parts = lnk.devProperty.split("\\.");
      if (parts.length > 1 && tsd.hasField(parts[parts.length-1]))
      {
        prp = lnk.devProperty.substring(0, lnk.devProperty.lastIndexOf(parts[parts.length-1])-1);
        fld = parts[parts.length-1];
        fieldKnown = true;
      }
View Full Code Here

Examples of de.desy.tine.structUtils.TStructDescription

  private static TStructDescription almDefStruct = null;
  public static final int sizeInBytes = 200;
  public static void initStructDescription()
  {
    if (almDefStruct != null) return;
    almDefStruct = new TStructDescription("ADS");
    almDefStruct.beginDefinition();
    almDefStruct.addField(TFormat.CF_TEXT, TStrings.ALARM_TAG_SHORTSIZE);
    almDefStruct.addField(TFormat.CF_LONG, 1);
    almDefStruct.addField(TFormat.CF_LONG, 1);
    almDefStruct.addField(TFormat.CF_SHORT, 1);
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.