Node.java 583 B

1234567891011121314151617181920212223242526272829303132
  1. package holeg.model;
  2. /**
  3. * The class "CpsNode" represents empty Objects in the system. They are just
  4. * nodes between Objects
  5. *
  6. * @author Gruppe14
  7. *
  8. */
  9. public class Node extends AbstractCanvasObject {
  10. /**
  11. * Create a new node in the system with an user-defined name.
  12. *
  13. * @param objName
  14. * String
  15. */
  16. public Node(String objName) {
  17. super(objName);
  18. this.setImage("/Images/node.png");
  19. this.setSav("CVS");
  20. }
  21. public Node(Node node){
  22. super(node);
  23. }
  24. public String toString(){
  25. return "Node ID:" + getId();
  26. }
  27. }