Node.java 487 B

123456789101112131415161718192021222324252627
  1. package holeg.model;
  2. /**
  3. * The class "CpsNode" represents empty Objects in the system. They are just nodes between Objects
  4. *
  5. * @author Gruppe14
  6. */
  7. public class Node extends AbstractCanvasObject {
  8. public Node(String objName) {
  9. super(objName);
  10. }
  11. public Node(Node node) {
  12. super(node);
  13. }
  14. @Override
  15. public AbstractCanvasObject copy() {
  16. return new Node(this);
  17. }
  18. public String toString() {
  19. return "Node ID:" + getId();
  20. }
  21. }