T
- Type of Node/Task IDpublic interface DependencyAware<T extends Comparable<T>>
Modifier and Type | Method and Description |
---|---|
void |
addAsDependencyToAllInitialNodes(T nodeValue)
Adds the node as dependency to all initial nodes (at the time of adding), meaning this given node would be evaluated first and then all initial nodes would run in parallel
|
void |
addAsDependentOnAllLeafNodes(T nodeValue)
Adds the node as dependent on all leaf nodes (at the time of adding), meaning all leaf nodes would be evaluated first and then the given node
|
void |
addDependency(T evalFirstValue,
T evalAfterValue)
Should add the two nodes in the datastructure in such a way that
evalFirstValue should be evaluated before evalAfterValue . |
void |
addIndependent(T nodeValue)
Adds the given node to the datastructure whith out any dependency
Nodes should be created only if it is not already added.
|
void addIndependent(T nodeValue)
nodeValue
- Unique node idvoid addDependency(T evalFirstValue, T evalAfterValue)
evalFirstValue
should be evaluated before evalAfterValue
.
Nodes should be created only if it is not already added.evalFirstValue
- Node which should be evaluated firstevalAfterValue
- Node which should be evaluated after evalFirstValue
void addAsDependentOnAllLeafNodes(T nodeValue)
nodeValue
- Node which should depend on all leaf nodesvoid addAsDependencyToAllInitialNodes(T nodeValue)
nodeValue
- Node on which all initial nodes should depends onCopyright © 2016 Dexecutor. All rights reserved.