T
- Type of Node/Task IDR
- Type of Node/Task resultpublic final class Node<T,R> extends Object implements Serializable
Constructor and Description |
---|
Node(T val)
Constructs the node with the given node Id
|
Modifier and Type | Method and Description |
---|---|
void |
addInComingNode(Node<T,R> node)
Add the given node, to the set of incoming nodes
|
void |
addOutGoingNode(Node<T,R> node)
add the given to the set of out going nodes
|
boolean |
equals(Object obj) |
Object |
getData() |
Set<Node<T,R>> |
getInComingNodes() |
Set<Node<T,R>> |
getOutGoingNodes() |
R |
getResult() |
T |
getValue() |
int |
hashCode() |
boolean |
isErrored() |
boolean |
isNotProcessed() |
boolean |
isProcessed() |
boolean |
isSkipped() |
boolean |
isSuccess() |
void |
setData(Object data) |
void |
setErrored()
Sets the node's execution result to ERRORED
|
void |
setResult(R result) |
void |
setSkipped()
Sets the node's execution result to SKIPPED
|
void |
setSuccess()
Sets the node's execution result to SUCCESS
|
String |
toString() |
public Node(T val)
val
- the new unique idpublic void addInComingNode(Node<T,R> node)
node
- add as dependency to the nodepublic void addOutGoingNode(Node<T,R> node)
node
- add as dependency to the nodepublic T getValue()
public R getResult()
public void setResult(R result)
result
- the new result
sets the node's execution result to a new valuepublic boolean isNotProcessed()
true
if the node is non processedpublic boolean isProcessed()
public boolean isSuccess()
true
if the node's execution result us SUCCESS
false
otherwisepublic boolean isErrored()
true
if the node's execution result us ERRORED
false
otherwisepublic boolean isSkipped()
true
if the node's execution result us SKIPPED
false
otherwisepublic void setSuccess()
public void setErrored()
public void setSkipped()
public Object getData()
public void setData(Object data)
data
- the data
Sets the node's data to a new valueCopyright © 2016 Dexecutor. All rights reserved.