CpsNode.java 581 B

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