123456789101112131415161718192021222324252627282930313233343536373839 |
- package ui.model;
- import java.util.ArrayList;
- import classes.HolonObject;
- import classes.StorageElement;
- public class MinimumNetwork {
- private ArrayList<HolonObject> holonObjectList = new ArrayList<HolonObject>();
- private ArrayList<IntermediateCableWithState> edgeList = new ArrayList<IntermediateCableWithState>();
- ArrayList<StorageElement> storageElements = new ArrayList<StorageElement>();
- public MinimumNetwork(ArrayList<HolonObject> holonObjectList, ArrayList<IntermediateCableWithState> edgeList){
- this.holonObjectList = holonObjectList;
- this.edgeList = edgeList;
- }
- public ArrayList<HolonObject> getHolonObjectList() {
- return holonObjectList;
- }
- public ArrayList<IntermediateCableWithState> getEdgeList() {
- return edgeList;
- }
- public ArrayList<StorageElement> getStorageElementList() {
- return storageElements;
- }
- 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;
- }
- }
|