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