Package nzilbb.util

Class DependencyNode<C>


  • public class DependencyNode<C>
    extends Object
    A node in a DependencyGraph.
    Author:
    Robert Fromont robert@fromont.net.nz
    • Constructor Detail

      • DependencyNode

        public DependencyNode​(C provider)
        Constructor.
        Parameters:
        provider - The object that provides what's required for other nodes.
    • Method Detail

      • getProvider

        public C getProvider()
        Getter for provider: The object that provides what's required for other nodes.
        Returns:
        The object that provides what's required for other nodes.
      • getDependsOn

        public Set<DependencyNode<C>> getDependsOn()
        Getter for dependsOn: Set of graph edges; providers that this node depends on.
        Returns:
        Set of graph edges; providers that this node depends on.
      • dependsOn

        public DependencyNode dependsOn​(DependencyNode<C> other)
        Adds an edge to the graph.
        Parameters:
        other - The provider that this node depends on.
        Returns:
        This object.
      • toString

        public String toString()
        String representation of the object.
        Overrides:
        toString in class Object
        Returns:
        String representation of the object.