Browse Source

calculation when element added/removed

Kevin Trometer 7 years ago
parent
commit
c749f9fb44
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/ui/view/GUI.java

+ 2 - 0
src/ui/view/GUI.java

@@ -354,6 +354,7 @@ public class GUI<E> implements CategoryListener {
 							ele.getEnergy());
 					refreshTableHolonElement();
 					refreshTableProperties();
+					controller.calculateStateForTimeStep(model.getCurIteration());
 				}
 			}
 		});
@@ -369,6 +370,7 @@ public class GUI<E> implements CategoryListener {
 						controller.deleteElementCanvas(obj.getID(), tempElement.getEleName());
 						refreshTableHolonElement();
 						refreshTableProperties();
+						controller.calculateStateForTimeStep(model.getCurIteration());
 					}
 				}
 			}