소스 검색

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());