package ui.model; import java.util.ArrayList; import classes.CpsNode; import classes.CpsUpperNode; import classes.IntermediateCalculationCable; import classes.ExitCable; /** * 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) { 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; } }