Explorar o código

Saving works. Added comment on constant use to IGraphedElement(IGE).

You can now change the constant "STRETCH_BY_DEFAULT" in IGE,
to set whether graphed elements should "use global" when created.
This depends on a properly implemente dconstructor for these, however.
Ludwig Tietze %!s(int64=6) %!d(string=hai) anos
pai
achega
2ef9836ccc
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/classes/HolonElement.java

+ 3 - 1
src/classes/HolonElement.java

@@ -87,7 +87,9 @@ public class HolonElement implements IGraphedElement{
      */
     public HolonElement(String eleName, int amount, float energy, int id, Model model){
     	setLocalPeriod(model.getGraphIterations());
-    	setStretching(IGraphedElement.STRETCH_BY_DEFAULT);
+    	setStretching(IGraphedElement.STRETCH_BY_DEFAULT);	//Change this to set whether
+    														//HolonElements and -Switches
+    														//"use global" by default
     	setEleName(eleName);
         setAmount(amount);
         setEnergyPerElement(energy);