package ui.model; import java.util.ArrayList; import classes.HolonObject; public class MinimumNetwork { private ArrayList holonObjectList = new ArrayList(); private ArrayList edgeList = new ArrayList(); public MinimumNetwork(ArrayList holonObjectList, ArrayList edgeList){ this.holonObjectList = holonObjectList; this.edgeList = edgeList; } public ArrayList getHolonObjectList() { return holonObjectList; } public ArrayList getEdgeList() { return edgeList; } public String toString() { String objecte = "["; for(HolonObject object :holonObjectList) { objecte += " " + object.getObjName(); } objecte += "]"; String edges = "["; for(IntermediateCableWithState edge :edgeList) { edges += " " + edge.getModel(); } edges += "]"; return objecte + edges; } }