DecoratedState.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package ui.model;
  2. import java.util.ArrayList;
  3. import classes.CpsNode;
  4. public class DecoratedState {
  5. int timestepOfState;
  6. ArrayList<DecoratedNetwork> networkList = new ArrayList<DecoratedNetwork>();
  7. ArrayList<DecoratedCable> leftOverEdges = new ArrayList<DecoratedCable>();
  8. ArrayList<DecoratedSwitch> decoratedSwitches = new ArrayList<DecoratedSwitch>();
  9. ArrayList<CpsNode> nodes = new ArrayList<CpsNode>();
  10. public DecoratedState(ArrayList<DecoratedNetwork> networkList, ArrayList<DecoratedCable> leftOverEdges, ArrayList<DecoratedSwitch> decoratedSwitches,ArrayList<CpsNode> nodes, int timestepOfState){
  11. this.networkList = networkList;
  12. this.leftOverEdges = leftOverEdges;
  13. this.decoratedSwitches = decoratedSwitches;
  14. this.nodes = nodes;
  15. this.timestepOfState = timestepOfState;
  16. }
  17. public ArrayList<DecoratedNetwork> getNetworkList() {
  18. return networkList;
  19. }
  20. public ArrayList<DecoratedCable> getLeftOverEdges() {
  21. return leftOverEdges;
  22. }
  23. public ArrayList<DecoratedSwitch> getDecoratedSwitches() {
  24. return decoratedSwitches;
  25. }
  26. public int getTimestepOfState() {
  27. return timestepOfState;
  28. }
  29. public ArrayList<CpsNode> getNodeList() {
  30. return nodes;
  31. }
  32. }