コード例 #1
0
ファイル: SystemManager.java プロジェクト: narry/odenos
 /**
  * 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());
     }
   }
 }