浏览代码

small switch properties change

Kevin Trometer 8 年之前
父节点
当前提交
327a934a2d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/ui/view/GUI.java

+ 1 - 1
src/ui/view/GUI.java

@@ -746,7 +746,7 @@ public class GUI<E> implements CategoryListener {
 						tableModelProperties.addRow(tempRatioPerc);
 					} else if (temp instanceof HolonSwitch) {
 						deleteRows();
-						Object[] tempActive = { "Active", ((HolonSwitch) temp).getState() };
+						Object[] tempActive = { "Active", ((HolonSwitch) temp).getActiveAt()[model.getCurIteration()]};
 						tableModelProperties.addRow(tempActive);
 						unitGraph.repaintWithNewSwitch((HolonSwitch) temp);
 						elementGraph.setText(temp.getName());