CpsNode.java 553 B

123456789101112131415161718192021222324252627
  1. package classes;
  2. import java.util.ArrayList;
  3. /**
  4. * The class "CpsNode" represents empty Objects in the system. They are just
  5. * nodes between Objects
  6. *
  7. * @author Gruppe14
  8. *
  9. */
  10. public class CpsNode extends AbstractCpsObject {
  11. /**
  12. * Create a new node in the system with an user-defined name.
  13. *
  14. * @param objName
  15. * String
  16. */
  17. public CpsNode(String objName) {
  18. super(objName);
  19. this.setConnections(new ArrayList<CpsEdge>());
  20. this.setImage("/Images/node.png");
  21. this.setSav("CVS");
  22. this.setID(IdCounter.nextId());
  23. }
  24. }