I
- the input type.O
- the output type.protected class Engine.EngineNode<I,O> extends Object implements Handle<O>, Runnable, Traversable<Engine.EngineNode<?,?>,Engine.EngineEdge<?>>
Constructor and Description |
---|
Engine.EngineNode(Calculator<? super I,? extends O> calculator,
boolean hasOutput)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Engine.EngineNode<?,?> node)
Compares traversal orders to determine priority of execution.
|
O |
get()
Gets the output.
|
int |
getDepth()
Gets the depth.
|
List<Engine.EngineEdge<? extends I>> |
getIn()
Gets the incoming edges.
|
int |
getOrder()
Gets the order.
|
List<Engine.EngineEdge<? super O>> |
getOut()
Gets the outgoing edges.
|
void |
run()
Executes the
Calculator.calculate(List) method associated with this node. |
void |
set(O value)
Sets the output.
|
void |
setDepth(int depth)
Sets the depth.
|
void |
setOrder(int order)
Sets the order.
|
String |
toString()
Creates a human-readable representation of this node.
|
public Engine.EngineNode(Calculator<? super I,? extends O> calculator, boolean hasOutput)
public int compareTo(Engine.EngineNode<?,?> node)
compareTo
in interface Comparable<Engine.EngineNode<?,?>>
public int getOrder()
Traversable
getOrder
in interface Traversable<Engine.EngineNode<?,?>,Engine.EngineEdge<?>>
public void setOrder(int order)
Traversable
setOrder
in interface Traversable<Engine.EngineNode<?,?>,Engine.EngineEdge<?>>
public int getDepth()
Traversable
getDepth
in interface Traversable<Engine.EngineNode<?,?>,Engine.EngineEdge<?>>
public void setDepth(int depth)
Traversable
setDepth
in interface Traversable<Engine.EngineNode<?,?>,Engine.EngineEdge<?>>
public List<Engine.EngineEdge<? extends I>> getIn()
Traversable
getIn
in interface Traversable<Engine.EngineNode<?,?>,Engine.EngineEdge<?>>
public List<Engine.EngineEdge<? super O>> getOut()
Traversable
getOut
in interface Traversable<Engine.EngineNode<?,?>,Engine.EngineEdge<?>>
public String toString()
Traversable
toString
in interface Traversable<Engine.EngineNode<?,?>,Engine.EngineEdge<?>>
toString
in class Object
public void run()
Calculator.calculate(List)
method associated with this node.