public abstract class StandardNode extends BaseNode implements Supplier, NetworkStructureChangeSensitiveNode
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Mailbox> |
childMailboxes |
protected java.util.List<Receiver> |
children |
nodeId, reteContainer, tag, traceInfos| Constructor and Description |
|---|
StandardNode(ReteContainer reteContainer) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendChild(Receiver receiver)
appends a receiver that will continously receive insert and revoke updates from this supplier
|
ProjectionIndexer |
constructIndex(TupleMask mask,
TraceInfo... traces)
Instantiates (or reuses, depending on implementation) an index according to the given mask.
|
java.util.Collection<Mailbox> |
getChildMailboxes() |
java.util.Set<Tuple> |
getPulledContents(boolean flush)
Returns the contents of this object in this particular moment.
|
java.util.Collection<Receiver> |
getReceivers()
lists receivers
|
protected void |
issueError(java.lang.String message,
java.lang.Exception ex) |
void |
networkStructureChanged()
At the time of the invocation, the dependency graph has already been updated.
|
protected void |
propagateUpdate(Direction direction,
Tuple updateElement,
Timestamp timestamp) |
void |
removeChild(Receiver receiver)
removes a receiver
|
acceptPropagatedTraceInfo, assignTraceInfo, getContainer, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toString, toStringCoreclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPulledContents, pullInto, pullIntoWithTimelineacceptPropagatedTraceInfo, assignTraceInfo, getCommunicationTracker, getContainer, getNodeId, getTag, getTraceInfos, setTagprotected final java.util.List<Receiver> children
protected final java.util.List<Mailbox> childMailboxes
public StandardNode(ReteContainer reteContainer)
protected void propagateUpdate(Direction direction, Tuple updateElement, Timestamp timestamp)
public void appendChild(Receiver receiver)
SupplierappendChild in interface Supplierpublic void removeChild(Receiver receiver)
SupplierremoveChild in interface Supplierpublic void networkStructureChanged()
NetworkStructureChangeSensitiveNodenetworkStructureChanged in interface NetworkStructureChangeSensitiveNodepublic java.util.Collection<Receiver> getReceivers()
SuppliergetReceivers in interface Supplierpublic java.util.Collection<Mailbox> getChildMailboxes()
public java.util.Set<Tuple> getPulledContents(boolean flush)
SupplierTrimmerNode).
Intended mainly for debug purposes; therefore flushing is performed only if explicitly requested
During runtime, flushing may be preferred; see ReteContainer#pullContents(Supplier)
getPulledContents in interface Supplierpublic ProjectionIndexer constructIndex(TupleMask mask, TraceInfo... traces)
SupplierconstructIndex in interface Supplierprotected void issueError(java.lang.String message,
java.lang.Exception ex)