Package nzilbb.util
Class DependencyNode<C>
- java.lang.Object
-
- nzilbb.util.DependencyNode<C>
-
public class DependencyNode<C> extends Object
A node in a DependencyGraph.- Author:
- Robert Fromont robert@fromont.net.nz
-
-
Constructor Summary
Constructors Constructor Description DependencyNode(C provider)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependencyNode
dependsOn(DependencyNode<C> other)
Adds an edge to the graph.Set<DependencyNode<C>>
getDependsOn()
Getter fordependsOn
: Set of graph edges; providers that this node depends on.C
getProvider()
Getter forprovider
: The object that provides what's required for other nodes.String
toString()
String representation of the object.
-
-
-
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 forprovider
: 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 fordependsOn
: 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.
-
-