|
@@ -3,6 +3,7 @@ package classes;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
|
|
|
import Interfaces.ComparableObject;
|
|
import Interfaces.ComparableObject;
|
|
|
|
+import ui.model.IdCounter;
|
|
|
|
|
|
public class CpsObject implements ComparableObject {
|
|
public class CpsObject implements ComparableObject {
|
|
/* Type of the Object */
|
|
/* Type of the Object */
|
|
@@ -28,6 +29,7 @@ public class CpsObject implements ComparableObject {
|
|
this.objName = objName;
|
|
this.objName = objName;
|
|
connectedTo = new ArrayList<CpsObject>();
|
|
connectedTo = new ArrayList<CpsObject>();
|
|
position = new Position();
|
|
position = new Position();
|
|
|
|
+ id = IdCounter.nextId();
|
|
}
|
|
}
|
|
|
|
|
|
/* Obj type */
|
|
/* Obj type */
|