T
- Type of Node/Task IDR
- Type of Node/Task resultpublic interface Dag<T extends Comparable<T>,R> extends DependencyAware<T>
Modifier and Type | Method and Description |
---|---|
Collection<Node<T,R>> |
allNodes()
Returns all nodes in this graph
|
Node<T,R> |
get(T id)
Returns the node with the given id
|
Set<Node<T,R>> |
getInitialNodes()
Returns the Set of nodes for which there is no incoming dependencies.
|
Set<Node<T,R>> |
getLeafNodes()
Retruns the set of nodes for which there is no outgoing dependencies.
|
Set<Node<T,R>> |
getNonProcessedRootNodes() |
int |
size()
Returns the total number of nodes in this graph
|
addAsDependencyToAllInitialNodes, addAsDependentOnAllLeafNodes, addDependency, addIndependent
int size()
Node<T,R> get(T id)
id
- unique node idSet<Node<T,R>> getInitialNodes()
Set<Node<T,R>> getLeafNodes()
Collection<Node<T,R>> allNodes()
Copyright © 2016 Dexecutor. All rights reserved.