|
@@ -24,6 +24,12 @@ public class CpsEdge {
|
|
* repair it is through manual change (setStateEdge)
|
|
* repair it is through manual change (setStateEdge)
|
|
*/
|
|
*/
|
|
boolean isWorking;
|
|
boolean isWorking;
|
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ * Is true when a Connection to an Group Object, is connected inside the Group.
|
|
|
|
+ * Is false when not
|
|
|
|
+ */
|
|
|
|
+ boolean isConnected;
|
|
// for internal use --> flow of electricity (simulation state)
|
|
// for internal use --> flow of electricity (simulation state)
|
|
ArrayList<Integer> tags;
|
|
ArrayList<Integer> tags;
|
|
// for internal use --> flow of electricity (simulation state)
|
|
// for internal use --> flow of electricity (simulation state)
|
|
@@ -70,6 +76,7 @@ public class CpsEdge {
|
|
this.maxCapacity = maxCap;
|
|
this.maxCapacity = maxCap;
|
|
flow = 0;
|
|
flow = 0;
|
|
isWorking = true;
|
|
isWorking = true;
|
|
|
|
+ isConnected = true;
|
|
pseudoTags = new ArrayList<Integer>();
|
|
pseudoTags = new ArrayList<Integer>();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -260,5 +267,13 @@ public class CpsEdge {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean getConnected(){
|
|
|
|
+ return isConnected;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setConnected(boolean state){
|
|
|
|
+ isConnected = state;
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|