Pārlūkot izejas kodu

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 6 gadi atpakaļ
vecāks
revīzija
2ef9836ccc
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  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);