Пример #1
0
 public void dynamicOpen() {
   if (pwrAttrColor.compareTo("") != 0) {
     retColor = en.gdh.refObjectInfo(pwrAttrColor);
     if (retColor.evenSts()) System.out.println("refObjectInfoError retColor");
     else colorAttrFound = true;
   }
   if (pwrAttrText.compareTo("") != 0) {
     retText = en.gdh.refObjectInfo(pwrAttrText);
     if (retText.evenSts()) System.out.println("refObjectInfoError retText");
     else textAttrFound = true;
   }
 }
Пример #2
0
  public void dynamicOpen() {
    GdhrRefObjectInfo ret;
    ret = engine.ldb.refObjectInfo(this, "$local.TrendHold##Boolean");
    if (ret.oddSts()) pHold = ret.id;
    else System.out.println("$local.Hold not found");

    ret = engine.ldb.refObjectInfo(this, "$local.ScanTime##Float32");
    if (ret.oddSts()) pScanTime = ret.id;
    else System.out.println("$local.ScanTime not found");

    dd = new GeDyn(null);
    dd.setSession(session);
    dd.setInstance(engine.getInstance());
  }