public abstract class DualInputNode extends StandardNode
Modifier and Type | Class and Description |
---|---|
static class |
DualInputNode.Side |
Constructor and Description |
---|
DualInputNode(ReteContainer reteContainer,
TupleMask complementerSecondaryMask) |
Modifier and Type | Method and Description |
---|---|
void |
assignTraceInfo(TraceInfo traceInfo)
assigns new traceability info to this node
|
abstract Tuple |
calibrate(Tuple primary,
Tuple secondary)
Simulates the behaviour of the node for calibration purposes only.
|
void |
connectToIndexers(IterableIndexer primarySlot,
Indexer secondarySlot)
Should be called only once, when node is initialized
|
IterableIndexer |
getPrimarySlot() |
Indexer |
getSecondarySlot() |
abstract void |
notifyUpdate(DualInputNode.Side side,
Direction direction,
Tuple updateElement,
Tuple signature,
boolean change)
Abstract handler for update event.
|
void |
setComplementerSecondaryMask(TupleMask complementerSecondaryMask) |
appendChild, constructIndex, getPulledContents, getReceivers, removeChild
acceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTag, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
acceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTag
public DualInputNode(ReteContainer reteContainer, TupleMask complementerSecondaryMask)
reteContainer
- public IterableIndexer getPrimarySlot()
public Indexer getSecondarySlot()
public void connectToIndexers(IterableIndexer primarySlot, Indexer secondarySlot)
public abstract void notifyUpdate(DualInputNode.Side side, Direction direction, Tuple updateElement, Tuple signature, boolean change)
side
- The side on which the event occured.direction
- The direction of the update.updateElement
- The partial matching that is inserted.signature
- Masked signature of updateElement.change
- Indicates whether this is/was the first/last instance of this signature in this slot.public abstract Tuple calibrate(Tuple primary, Tuple secondary)
public void setComplementerSecondaryMask(TupleMask complementerSecondaryMask)
complementerSecondaryMask
- the complementerSecondaryMask to setpublic void assignTraceInfo(TraceInfo traceInfo)
Node
assignTraceInfo
in interface Node
assignTraceInfo
in class BaseNode