Class Node


  • public class Node
    extends java.lang.Object
    Model of Node used f. e. in hasse diagrams. This node holds the name, the previous sequence and the post sequence.
    Author:
    Robin Bergenthum, Raphael Meyer
    • Constructor Summary

      Constructors 
      Constructor Description
      Node()
      Default constructor node
      Node​(java.lang.String s)
      Constructor of node which establish a node with name
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      java.util.ArrayList<Node> getPost()  
      java.util.ArrayList<Node> getPre()  
      void setName​(java.lang.String name)  
      void setPost​(java.util.ArrayList<Node> post)  
      void setPre​(java.util.ArrayList<Node> pre)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Node

        public Node()
        Default constructor node
      • Node

        public Node​(java.lang.String s)
        Constructor of node which establish a node with name
        Parameters:
        s - is the given string which is needed for the name
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        the name of this node
      • setName

        public void setName​(java.lang.String name)
        Parameters:
        name - name to set for the node
      • getPre

        public java.util.ArrayList<Node> getPre()
        Returns:
        all the previous nodes of the current node
      • setPre

        public void setPre​(java.util.ArrayList<Node> pre)
        Parameters:
        pre - set the previous nodes of the current node
      • getPost

        public java.util.ArrayList<Node> getPost()
        Returns:
        the nodes after the current node
      • setPost

        public void setPost​(java.util.ArrayList<Node> post)
        Parameters:
        post - set the nodes after the current nodes