Package com.lumiomedical.flow.node
Class SimpleNode<T>
java.lang.Object
com.lumiomedical.flow.node.AbstractNode
com.lumiomedical.flow.node.SimpleNode<T>
- All Implemented Interfaces:
Node
,Comparable<Node>
- Direct Known Subclasses:
Pipe
,Sink
,Source
,StreamAccumulator
,StreamGenerator
,StreamPipe
,StreamSink
,StreamSource
public abstract class SimpleNode<T> extends AbstractNode
- Author:
- Pierre Lecerf ([email protected]) Created on 2020/03/02
-
Constructor Summary
Constructors Constructor Description SimpleNode(T actor)
-
Method Summary
Modifier and Type Method Description protected void
bind(SimpleNode other)
T
getActor()
Node
getSimpleUpstream()
List<Node>
getUpstream()
Returns the list of upstream nodes, ie. nodes which output is required in order to execute the current node.Methods inherited from class com.lumiomedical.flow.node.AbstractNode
after, after, equals, getDownstream, getRequiredBy, getRequirements, getUid, hashCode
-
Constructor Details
-
SimpleNode
- Parameters:
actor
-
-
-
Method Details
-
getActor
- Returns:
-
bind
- Parameters:
other
-
-
getSimpleUpstream
- Returns:
-
getUpstream
Description copied from interface:Node
Returns the list of upstream nodes, ie. nodes which output is required in order to execute the current node. For Source nodes, this should be empty. For Pipe and Sink nodes, this should be a list of size 1. For Join nodes, this should be a list of size 2.- Returns:
- the list of upstream nodes
-