package classes; import java.util.ArrayList; /** * The class "CpsNode" represents empty Objects in the system. They are just * nodes between Objects * * @author Gruppe14 * */ public class CpsNode extends AbstractCpsObject { /** * Create a new node in the system with an user-defined name. * * @param objName * String */ public CpsNode(String objName) { super(objName); this.setConnections(new ArrayList()); this.setImage("/Images/node.png"); this.setSav("CVS"); this.setId(IdCounter.nextId()); } public CpsNode(CpsNode node){ super(node); } public String toString(){ return "Node ID:" + super.id; } @Override public AbstractCpsObject makeCopy() { return new CpsNode(this); } }