Class NodeId

    • Constructor Detail

      • NodeId

        public NodeId​(CharSequence id,
                      Port port)
        Creates a new node ID.
        Parameters:
        id - ID of the node, required.
        port - Optional port of the node.
    • Method Detail

      • getId

        public CharSequence getId()
        Returns:
        ID of the node.
      • getPort

        public Port getPort()
        Returns:
        Optional port of the node.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • write

        public void write​(GraphDotModelWriter writer)
                   throws IOException
        Description copied from interface: IGraphDotElement
        Writes this element to the given writer, as a string in the graph dot language representing this element.
        Specified by:
        write in interface IGraphDotElement
        Parameters:
        writer - Writer to write to.
        Throws:
        IOException - When the writer could not be written to.
      • toGraphDotString

        public final String toGraphDotString()
        Description copied from interface: IGraphDotElement
        Creates a string in the graph dot language representing this element.
        Specified by:
        toGraphDotString in interface IGraphDotElement
        Returns:
        The graph dot representation of this graph dot element.