gemhost_java_example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gemhost_java_example [2020/05/13 19:03]
wikiadmin
gemhost_java_example [2021/04/14 18:09] (current)
wikiadmin
Line 67: Line 67:
       @Override       @Override
       public void connectionStatusChanged(int connectionStatus, String comment) {       public void connectionStatusChanged(int connectionStatus, String comment) {
-         System.out.println ("Current Connection Status " + connectionStatus + " Status String \"" + comment + "\"");        +         System.out.println ("Current Connection Status " + connectionStatus + " Status String \"" + comment + "\"");    
 +         //note: see https://www.ergotech.com/wiki/doku.php?id=host_connection_status for connectionStatus values     
       }       }
     });     });
Line 263: Line 264:
 Be sure to read the section **Advanced Message Matching** in [[Message Matching]] concerning Repeat and Optional before using this approach, but when required it can be a powerful tool. Be sure to read the section **Advanced Message Matching** in [[Message Matching]] concerning Repeat and Optional before using this approach, but when required it can be a powerful tool.
  
 +**Characterization**
 +
 +An alternative to the above approach to listing ECIDs is to use the characterization capabilities of TransSECS.  
 +
 +Characterization provides a list of all CEIDs, Reports (RPTIDs) and VIDs (SVIDs and ECIDs) available on the tool.  Simply call the "characterize" method with the host controller.
 +
 +<code java>
 +Characterize.characterize(host);
 +</code>
 +
 +This will populate the GEM Host Model maintained by the host. This can be retrieved with the call:
 +
 +<code java>
 +host.getGemHostModel();
 +</code>
 +
 +
 +Check the GemHostModel JavaDocs for details of the model.
  
  • gemhost_java_example.1589414612.txt.gz
  • Last modified: 2020/05/13 19:03
  • by wikiadmin