Class OffsetNode
java.lang.Object
com.lumiomedical.flow.node.NodeDecorator
com.lumiomedical.flow.impl.pipeline.runtime.node.OffsetNode
- All Implemented Interfaces:
Node
,Comparable<Node>
public final class OffsetNode extends NodeDecorator
- Author:
- Pierre Lecerf ([email protected]) Created on 2020/12/12
-
Constructor Summary
Constructors Constructor Description OffsetNode(Node node, int offset)
-
Method Summary
Modifier and Type Method Description List<Node>
getDownstream()
Returns the list of downstream nodes, ie. nodes which require the current node's output in order to be executed.int
getOffset()
List<Node>
getRequirements()
Returns the list of upstream requirement nodes, ie. nodes which need to be executed before, but which outputs aren't required for execution.String
getUid()
Returns a unique identifier for the node within a flow DAG.Methods inherited from class com.lumiomedical.flow.node.NodeDecorator
after, after, equals, getNode, getRequiredBy, getUpstream, hashCode
-
Constructor Details
-
OffsetNode
- Parameters:
node
-offset
-
-
-
Method Details
-
getUid
Description copied from interface:Node
Returns a unique identifier for the node within a flow DAG.- Specified by:
getUid
in interfaceNode
- Overrides:
getUid
in classNodeDecorator
- Returns:
-
getOffset
public int getOffset() -
getRequirements
Description copied from interface:Node
Returns the list of upstream requirement nodes, ie. nodes which need to be executed before, but which outputs aren't required for execution. There can be any number of requirements for a given node.- Specified by:
getRequirements
in interfaceNode
- Overrides:
getRequirements
in classNodeDecorator
- Returns:
- the list of upstream requirement nodes
-
getDownstream
Description copied from interface:Node
Returns the list of downstream nodes, ie. nodes which require the current node's output in order to be executed.- Specified by:
getDownstream
in interfaceNode
- Overrides:
getDownstream
in classNodeDecorator
- Returns:
- the list of downstream nodes
-