Ejemplo n.º 1
0
 /**
  * Method for deleting the component connection by compId.
  *
  * @param compId ComponentID to be deleted.
  */
 private void deleteConnectionWithCompId(final String compId) {
   for (Entry<String, ComponentConnection> e :
       new HashSet<Entry<String, ComponentConnection>>(connectionTable.entrySet())) {
     ComponentConnectionLogicAndNetwork val = (ComponentConnectionLogicAndNetwork) e.getValue();
     if (compId.equals(val.getLogicId()) || compId.equals(val.getNetworkId())) {
       deleteConnections(val.getObjectId());
     }
   }
 }