|
@@ -9,8 +9,8 @@ import classes.Category;
|
|
|
import classes.CpsEdge;
|
|
|
import classes.AbstractCpsObject;
|
|
|
import classes.HolonElement;
|
|
|
-import interfaces.CategoryListener;
|
|
|
-import interfaces.ObjectListener;
|
|
|
+import Interfaces.CategoryListener;
|
|
|
+import Interfaces.ObjectListener;
|
|
|
import ui.view.Console;
|
|
|
|
|
|
/**
|
|
@@ -23,6 +23,8 @@ import ui.view.Console;
|
|
|
public class Model {
|
|
|
|
|
|
// Global Variables
|
|
|
+ private int CANVAS_X;
|
|
|
+ private int CANVAS_Y;
|
|
|
private static int sCALE = 50; // Picture Scale
|
|
|
private static int sCALEdIV2 = sCALE / 2;
|
|
|
private static final int ITERATIONS = 100;
|
|
@@ -517,4 +519,32 @@ public class Model {
|
|
|
public boolean getIsSimulation() {
|
|
|
return this.isSimulation;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return the cANVAS_X
|
|
|
+ */
|
|
|
+ public int getCANVAS_X() {
|
|
|
+ return CANVAS_X;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param cANVAS_X the cANVAS_X to set
|
|
|
+ */
|
|
|
+ public void setCANVAS_X(int cANVAS_X) {
|
|
|
+ CANVAS_X = cANVAS_X;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return the cANVAS_Y
|
|
|
+ */
|
|
|
+ public int getCANVAS_Y() {
|
|
|
+ return CANVAS_Y;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param cANVAS_Y the cANVAS_Y to set
|
|
|
+ */
|
|
|
+ public void setCANVAS_Y(int cANVAS_Y) {
|
|
|
+ CANVAS_Y = cANVAS_Y;
|
|
|
+ }
|
|
|
}
|