DecoratedState.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 DecoratedState(ArrayList<DecoratedNetwork> networkList, ArrayList<DecoratedCable> leftOverEdges, ArrayList<DecoratedSwitch> decoratedSwitches, int timestepOfState, HashMap<HolonObject, DecoratedNetwork> holonObjectNetworkTable){
  22. this.networkList = networkList;
  23. this.leftOverEdges = leftOverEdges;
  24. this.decoratedSwitches = decoratedSwitches;
  25. this.timestepOfState = timestepOfState;
  26. this.holonObjectNetworkTable = holonObjectNetworkTable;
  27. }
  28. public HashMap<HolonObject, DecoratedNetwork> getHolonObjectNetworkTable() {
  29. return holonObjectNetworkTable;
  30. }
  31. public ArrayList<DecoratedNetwork> getNetworkList() {
  32. return networkList;
  33. }
  34. public ArrayList<DecoratedCable> getLeftOverEdges() {
  35. return leftOverEdges;
  36. }
  37. public ArrayList<DecoratedSwitch> getDecoratedSwitches() {
  38. return decoratedSwitches;
  39. }
  40. public FlexManager getFlexManager() {
  41. return flexManager;
  42. }
  43. public int getTimestepOfState() {
  44. return timestepOfState;
  45. }
  46. }