Node.java 596 B

12345678910111213141516171819202122232425262728293031323334
  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.setSav("CVS");
  19. }
  20. public Node(Node node){
  21. super(node);
  22. }
  23. public String toString(){
  24. return "Node ID:" + getId();
  25. }
  26. @Override
  27. public void initForReflection() {}
  28. }