Exemplo n.º 1
0
 public int getConnectorPeerId(String connectorName) {
   InOutputAttribute connector = omiscidService.findConnector(connectorName);
   if (connector == null) {
     throw new UnknownConnector("Unknown connector: '" + connectorName + "'");
   }
   return connector.getPeerId();
 }
Exemplo n.º 2
0
 public String getConnectorDescription(String connectorName) throws UnknownConnector {
   checkedUpdateDescription();
   InOutputAttribute connector = omiscidService.findConnector(connectorName);
   if (connector == null) {
     throw new UnknownConnector("Unknown connector '" + connectorName + "'");
   }
   return connector.getDescription();
 }
Exemplo n.º 3
0
 public Iterable<Integer> getPeers(String connectorName) {
   omiscidService.requeryCompleteDescription();
   InOutputAttribute connector = omiscidService.findConnector(connectorName);
   if (connector == null) {
     throw new UnknownConnector("Unknown connector: '" + connectorName + "'");
   }
   Vector<Integer> peers = new Vector<Integer>(connector.getPeerVector());
   return peers;
 }