Node.java 478 B

1234567891011121314151617181920212223242526272829
  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. public Node(String objName) {
  11. super(objName);
  12. }
  13. public Node(Node node){
  14. super(node);
  15. }
  16. @Override
  17. public AbstractCanvasObject copy(){
  18. return new Node(this);
  19. }
  20. public String toString(){
  21. return "Node ID:" + getId();
  22. }
  23. }