1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- package ui.model;
- import java.util.ArrayList;
- import classes.CpsNode;
- import classes.CpsUpperNode;
- import classes.ExitCable;
- import classes.ExitCableV2;
- /**
- * For the @VisualRepresentationalState only.
- * @author Tom
- *
- */
- public class DecoratedGroupNode {
- private CpsUpperNode model;
- private ArrayList<Supplier> supplierList;
- private ArrayList<Passiv> passivList;
- private ArrayList<Consumer> consumerList;
- private ArrayList<CpsNode> nodeList;
- /**
- * Cables that only exist on that group node. From a object in that group node to a object in that group Node.
- * Not exit the group node (a layer down).
- */
- private ArrayList<DecoratedCable> internCableList;
- /**
- * Cables that exit this group node (a Layer Up). From a object in this group node to a object in a upper layer.
- */
- private ArrayList<ExitCableV2> exitCableList;
- private ArrayList<DecoratedSwitch> switchList;
- private ArrayList<DecoratedGroupNode> groupNodeList;
- public DecoratedGroupNode(CpsUpperNode model, ArrayList<Supplier> supplierList, ArrayList<Passiv> passivList,
- ArrayList<Consumer> consumerList, ArrayList<CpsNode> nodeList, ArrayList<DecoratedCable> internCableList,
- ArrayList<ExitCableV2> exitCableList, ArrayList<DecoratedSwitch> switchList,
- ArrayList<DecoratedGroupNode> groupNodeList) {
- this.model = model;
- this.supplierList = supplierList;
- this.passivList = passivList;
- this.consumerList = consumerList;
- this.nodeList = nodeList;
- this.internCableList = internCableList;
- this.exitCableList = exitCableList;
- this.switchList = switchList;
- this.groupNodeList = groupNodeList;
- }
- public DecoratedGroupNode(CpsUpperNode model) {
- this.model = model;
- this.supplierList = new ArrayList<Supplier>();
- this.passivList = new ArrayList<Passiv>();
- this.consumerList = new ArrayList<Consumer>();
- this.nodeList = new ArrayList<CpsNode>();
- this.internCableList = new ArrayList<DecoratedCable>();
- this.exitCableList = new ArrayList<ExitCableV2>();
- this.switchList = new ArrayList<DecoratedSwitch>();
- this.groupNodeList = new ArrayList<DecoratedGroupNode>();
- }
- public CpsUpperNode getModel() {
- return model;
- }
- public ArrayList<Supplier> getSupplierList() {
- return supplierList;
- }
- public ArrayList<Passiv> getPassivList() {
- return passivList;
- }
- public ArrayList<Consumer> getConsumerList() {
- return consumerList;
- }
- public ArrayList<CpsNode> getNodeList() {
- return nodeList;
- }
- public ArrayList<DecoratedCable> getInternCableList() {
- return internCableList;
- }
- public ArrayList<ExitCableV2> getExitCableList() {
- return exitCableList;
- }
- public ArrayList<DecoratedSwitch> getSwitchList() {
- return switchList;
- }
- public ArrayList<DecoratedGroupNode> getGroupNodeList() {
- return groupNodeList;
- }
-
- }
|