Class BaseNode
java.lang.Object
tools.refinery.interpreter.rete.network.BaseNode
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
SimpleReceiver,StandardIndexer,StandardNode
Base implementation for a Rete node.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptPropagatedTraceInfo(TraceInfo traceInfo) accepts traceability info propagated to this nodevoidassignTraceInfo(TraceInfo traceInfo) assigns new traceability info to this nodelonggetTag()protected StringDescendants should use this in e.g.voidAssigns a descriptive tag to the nodetoString()protected Stringclients should override this to append before the tag / trace indicatorsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tools.refinery.interpreter.rete.network.Node
getCommunicationTracker
-
Field Details
-
reteContainer
-
nodeId
protected long nodeId -
tag
-
traceInfos
-
-
Constructor Details
-
BaseNode
- Parameters:
reteContainer- the container to create this node in
-
-
Method Details
-
toString
-
toStringCore
clients should override this to append before the tag / trace indicators -
getContainer
- Specified by:
getContainerin interfaceNode- Returns:
- the network this node belongs to.
-
getNodeId
public long getNodeId() -
getTag
-
setTag
Description copied from interface:NodeAssigns a descriptive tag to the node -
getTraceInfos
- Specified by:
getTraceInfosin interfaceNode- Returns:
- unmodifiable view of the list of traceability infos assigned to this node
-
assignTraceInfo
Description copied from interface:Nodeassigns new traceability info to this node- Specified by:
assignTraceInfoin interfaceNode
-
acceptPropagatedTraceInfo
Description copied from interface:Nodeaccepts traceability info propagated to this node- Specified by:
acceptPropagatedTraceInfoin interfaceNode
-
getTraceInfoPatternsEnumerated
Descendants should use this in e.g. logging
-