123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- package classes;
- import java.util.ArrayList;
- /**
- * The class "subNet" represents ....
- *
- * @author Gruppe14
- *
- */
- public class SubNet {
- private ArrayList<HolonObject> subNetObjects;
- private ArrayList<CpsEdge> subNetEdges;
- private ArrayList<HolonSwitch> subNetSwitches;
- /**
- * Constructor for a Subnet.
- *
- * @param objects
- * Objects in the Subnet
- * @param edges
- * Edges in the Subnet
- * @param switches
- * Switches in the Subnet
- */
- public SubNet(ArrayList<HolonObject> objects, ArrayList<CpsEdge> edges, ArrayList<HolonSwitch> switches) {
- subNetObjects = objects;
- subNetEdges = edges;
- subNetSwitches = switches;
- }
- /**
- * Return all Objects in the Subnet.
- *
- * @return all Objects in the Subnet
- */
- public ArrayList<HolonObject> getObjects() {
- return subNetObjects;
- }
- /**
- * Return all Edges in the Subnet.
- *
- * @return all Edges in the Subnet
- */
- public ArrayList<CpsEdge> getEdges() {
- return subNetEdges;
- }
- /**
- * Return all Switches in the Subnet.
- *
- * @return all Switches in the Subnet
- */
- public ArrayList<HolonSwitch> getSwitches() {
- return subNetSwitches;
- }
- }
|