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, removeChildacceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTag, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTagpublic 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)
NodeassignTraceInfo in interface NodeassignTraceInfo in class BaseNode