DecoratedState.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package ui.model;
  2. import java.util.ArrayList;
  3. import java.util.HashMap;
  4. import classes.HolonObject;
  5. import ui.controller.FlexManager;
  6. public class DecoratedState {
  7. int timestepOfState;
  8. ArrayList<DecoratedNetwork> networkList;
  9. ArrayList<DecoratedCable> leftOverEdges;
  10. ArrayList<DecoratedSwitch> decoratedSwitches;
  11. HashMap<HolonObject, DecoratedNetwork> holonObjectNetworkTable;
  12. FlexManager flexManager;
  13. public DecoratedState(ArrayList<DecoratedNetwork> networkList, ArrayList<DecoratedCable> leftOverEdges, ArrayList<DecoratedSwitch> decoratedSwitches, FlexManager flexManager , int timestepOfState, HashMap<HolonObject, DecoratedNetwork> holonObjectNetworkTable){
  14. this.networkList = networkList;
  15. this.leftOverEdges = leftOverEdges;
  16. this.decoratedSwitches = decoratedSwitches;
  17. this.timestepOfState = timestepOfState;
  18. this.flexManager = flexManager;
  19. this.holonObjectNetworkTable = holonObjectNetworkTable;
  20. }
  21. public HashMap<HolonObject, DecoratedNetwork> getHolonObjectNetworkTable() {
  22. return holonObjectNetworkTable;
  23. }
  24. public ArrayList<DecoratedNetwork> getNetworkList() {
  25. return networkList;
  26. }
  27. public ArrayList<DecoratedCable> getLeftOverEdges() {
  28. return leftOverEdges;
  29. }
  30. public ArrayList<DecoratedSwitch> getDecoratedSwitches() {
  31. return decoratedSwitches;
  32. }
  33. public FlexManager getFlexManager() {
  34. return flexManager;
  35. }
  36. public int getTimestepOfState() {
  37. return timestepOfState;
  38. }
  39. }