Node.java 522 B

123456789101112131415161718192021222324252627282930
  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. }
  19. public Node(Node node){
  20. super(node);
  21. }
  22. public String toString(){
  23. return "Node ID:" + getId();
  24. }
  25. }