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 supplierList; private ArrayList passivList; private ArrayList consumerList; private ArrayList 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 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 exitCableList; private ArrayList switchList; private ArrayList groupNodeList; public DecoratedGroupNode(CpsUpperNode model, ArrayList supplierList, ArrayList passivList, ArrayList consumerList, ArrayList nodeList, ArrayList internCableList, ArrayList exitCableList, ArrayList switchList, ArrayList 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(); this.passivList = new ArrayList(); this.consumerList = new ArrayList(); this.nodeList = new ArrayList(); this.internCableList = new ArrayList(); this.exitCableList = new ArrayList(); this.switchList = new ArrayList(); this.groupNodeList = new ArrayList(); } public CpsUpperNode getModel() { return model; } public ArrayList getSupplierList() { return supplierList; } public ArrayList getPassivList() { return passivList; } public ArrayList getConsumerList() { return consumerList; } public ArrayList getNodeList() { return nodeList; } public ArrayList getInternCableList() { return internCableList; } public ArrayList getExitCableList() { return exitCableList; } public ArrayList getSwitchList() { return switchList; } public ArrayList getGroupNodeList() { return groupNodeList; } }