public class NamedInputPortNode extends AbstractIterationStrategyNode
allowsChildren, EMPTY_ENUMERATION, userObject
Constructor and Description |
---|
NamedInputPortNode(String name,
int cardinality) |
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowsChildren()
These nodes can never have children
|
int |
getCardinality()
Each node defines the level of collection depth for that input port
|
int |
getIterationDepth(Map<String,Integer> inputDepths)
Iteration depth is the difference between the supplied input depth and
the desired one.
|
String |
getPortName()
Each node maps to a single named input port within the processor
|
boolean |
isLeaf()
These nodes correspond to inputs to the iteration strategy and are always
leaf nodes as a result.
|
void |
receiveCompletion(int inputIndex,
Completion completion)
Completion events are passed straight through the same as jobs
|
void |
receiveJob(int inputIndex,
Job newJob)
If this node receives a job it will always be pushed without modification
up to the parent
|
String |
toString() |
children, clear, getChildAt, getChildCount, getChildren, getIndex, getParent, insert, insert, pushCompletion, pushJob, remove, remove, removeFromParent, setParent, setUserObject
add, breadthFirstEnumeration, clone, depthFirstEnumeration, getChildAfter, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, removeAllChildren, setAllowsChildren
public NamedInputPortNode(String name, int cardinality)
public void receiveJob(int inputIndex, Job newJob)
public void receiveCompletion(int inputIndex, Completion completion)
public String getPortName()
public int getCardinality()
public boolean isLeaf()
isLeaf
in interface TreeNode
isLeaf
in class AbstractIterationStrategyNode
public boolean getAllowsChildren()
getAllowsChildren
in interface TreeNode
getAllowsChildren
in class AbstractIterationStrategyNode
public int getIterationDepth(Map<String,Integer> inputDepths)
public String toString()
toString
in class DefaultMutableTreeNode
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.