DecoratedGroupNode.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package ui.model;
  2. import java.util.ArrayList;
  3. import classes.CpsNode;
  4. import classes.CpsUpperNode;
  5. import classes.IntermediateCalculationCable;
  6. import classes.ExitCable;
  7. /**
  8. * For the @VisualRepresentationalState only.
  9. * @author Tom
  10. *
  11. */
  12. public class DecoratedGroupNode {
  13. private CpsUpperNode model;
  14. private ArrayList<Supplier> supplierList;
  15. private ArrayList<Passiv> passivList;
  16. private ArrayList<Consumer> consumerList;
  17. private ArrayList<CpsNode> nodeList;
  18. /**
  19. * Cables that only exist on that group node. From a object in that group node to a object in that group Node.
  20. * Not exit the group node (a layer down).
  21. */
  22. private ArrayList<DecoratedCable> internCableList;
  23. /**
  24. * Cables that exit this group node (a Layer Up). From a object in this group node to a object in a upper layer.
  25. */
  26. private ArrayList<ExitCable> exitCableList;
  27. private ArrayList<DecoratedSwitch> switchList;
  28. private ArrayList<DecoratedGroupNode> groupNodeList;
  29. public DecoratedGroupNode(CpsUpperNode model) {
  30. this.model = model;
  31. this.supplierList = new ArrayList<Supplier>();
  32. this.passivList = new ArrayList<Passiv>();
  33. this.consumerList = new ArrayList<Consumer>();
  34. this.nodeList = new ArrayList<CpsNode>();
  35. this.internCableList = new ArrayList<DecoratedCable>();
  36. this.exitCableList = new ArrayList<ExitCable>();
  37. this.switchList = new ArrayList<DecoratedSwitch>();
  38. this.groupNodeList = new ArrayList<DecoratedGroupNode>();
  39. }
  40. public CpsUpperNode getModel() {
  41. return model;
  42. }
  43. public ArrayList<Supplier> getSupplierList() {
  44. return supplierList;
  45. }
  46. public ArrayList<Passiv> getPassivList() {
  47. return passivList;
  48. }
  49. public ArrayList<Consumer> getConsumerList() {
  50. return consumerList;
  51. }
  52. public ArrayList<CpsNode> getNodeList() {
  53. return nodeList;
  54. }
  55. public ArrayList<DecoratedCable> getInternCableList() {
  56. return internCableList;
  57. }
  58. public ArrayList<ExitCable> getExitCableList() {
  59. return exitCableList;
  60. }
  61. public ArrayList<DecoratedSwitch> getSwitchList() {
  62. return switchList;
  63. }
  64. public ArrayList<DecoratedGroupNode> getGroupNodeList() {
  65. return groupNodeList;
  66. }
  67. }