|
@@ -5,9 +5,6 @@ import java.util.LinkedList;
|
|
|
|
|
|
import com.google.gson.annotations.Expose;
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* The class "HolonElement" represents any possible element that can be added to
|
|
|
* a CpsObject (such as TV (consumer) or any energy source/producer).
|
|
@@ -39,7 +36,7 @@ public class HolonElement {
|
|
|
@Expose
|
|
|
private Pair<String, String> saving;
|
|
|
/*
|
|
|
- * ID
|
|
|
+ * ID
|
|
|
*/
|
|
|
@Expose
|
|
|
private int id;
|
|
@@ -82,6 +79,7 @@ public class HolonElement {
|
|
|
setEnergyAt(energy);
|
|
|
setGraphPoints(new LinkedList<Point>());
|
|
|
setId(IdCounterElem.nextId());
|
|
|
+ System.out.println(this.getId());
|
|
|
setFlexibility(0);
|
|
|
setActiveFlex(false);
|
|
|
}
|