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