Class Node.Simple

  • All Implemented Interfaces:
    Node
    Enclosing interface:
    Node

    public static final class Node.Simple
    extends Object
    implements Node
    Simple implementation.
    Since:
    0.30.9
    • Constructor Detail

      • Simple

        public Simple​(String name)
        Ctor.
        Parameters:
        name - Node name
    • Method Detail

      • name

        public String name()
        Description copied from interface: Node
        Node name.
        Specified by:
        name in interface Node
        Returns:
        A identifier for the node
      • connections

        public Set<Node> connections()
        Description copied from interface: Node
        Calculates ingoing and outgoing connected nodes.
        Specified by:
        connections in interface Node
        Returns:
        List of nodes connected to this node.