public class IterationStrategyImpl.TerminalNodeImpl extends TerminalNode
allowsChildren, EMPTY_ENUMERATION, userObject
Constructor and Description |
---|
TerminalNodeImpl() |
Modifier and Type | Method and Description |
---|---|
int |
getIterationDepth(Map<String,Integer> inputDepths)
In the context of an enclosing iteration strategy each node should be
able to return the iteration depth, i.e.
|
void |
receiveBypassCompletion(Completion completion) |
void |
receiveCompletion(int inputIndex,
Completion completion)
Nodes can also receive completion events, the simplest being one
declaring that no further input is expected on the given input, or
partial completion events which are interpreted as 'no event with an
index array prefixed by the specified completion index array will be
received on the specified index'
|
void |
receiveJob(int inputIndex,
Job newJob)
The nodes within the iteration strategy, a tree structure, are event
based.
|
insert
children, clear, getAllowsChildren, getChildAt, getChildCount, getChildren, getIndex, getParent, insert, isLeaf, 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, toString
public void receiveCompletion(int inputIndex, Completion completion)
IterationStrategyNode
public void receiveJob(int inputIndex, Job newJob)
IterationStrategyNode
public void receiveBypassCompletion(Completion completion)
public int getIterationDepth(Map<String,Integer> inputDepths) throws IterationTypeMismatchException
IterationStrategyNode
Nodes can choose to throw the IterationTypeMismatchException if their inputs aren't compatible with the operational semantics of the node such as in the case of a dot product node with inputs with different depths.
IterationTypeMismatchException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.