|
@@ -86,10 +86,8 @@ public class HolonElement implements IGraphedElement{
|
|
* same as standard constructor, but with already given id (so the counter is not increased twice)
|
|
* same as standard constructor, but with already given id (so the counter is not increased twice)
|
|
*/
|
|
*/
|
|
public HolonElement(String eleName, int amount, float energy, int id, Model model){
|
|
public HolonElement(String eleName, int amount, float energy, int id, Model model){
|
|
- setLocalPeriod(model.getGraphIterations());
|
|
|
|
- setStretching(IGraphedElement.STRETCH_BY_DEFAULT); //Change this to set whether
|
|
|
|
- //HolonElements and -Switches
|
|
|
|
- //"use global" by default
|
|
|
|
|
|
+ setLocalPeriod(model==null?UnitGraph.STANDARD_GRAPH_ACCURACY:model.getGraphIterations());
|
|
|
|
+ setStretching(IGraphedElement.STRETCH_BY_DEFAULT);
|
|
setEleName(eleName);
|
|
setEleName(eleName);
|
|
setAmount(amount);
|
|
setAmount(amount);
|
|
setEnergyPerElement(energy);
|
|
setEnergyPerElement(energy);
|