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 TypeMethodDescriptionvoid
acceptPropagatedTraceInfo
(TraceInfo traceInfo) accepts traceability info propagated to this nodevoid
assignTraceInfo
(TraceInfo traceInfo) assigns new traceability info to this nodelong
getTag()
protected String
Descendants should use this in e.g.void
Assigns a descriptive tag to the nodetoString()
protected String
clients 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, wait
Methods 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:
getContainer
in interfaceNode
- Returns:
- the network this node belongs to.
-
getNodeId
public long getNodeId() -
getTag
-
setTag
Description copied from interface:Node
Assigns a descriptive tag to the node -
getTraceInfos
- Specified by:
getTraceInfos
in interfaceNode
- Returns:
- unmodifiable view of the list of traceability infos assigned to this node
-
assignTraceInfo
Description copied from interface:Node
assigns new traceability info to this node- Specified by:
assignTraceInfo
in interfaceNode
-
acceptPropagatedTraceInfo
Description copied from interface:Node
accepts traceability info propagated to this node- Specified by:
acceptPropagatedTraceInfo
in interfaceNode
-
getTraceInfoPatternsEnumerated
Descendants should use this in e.g. logging
-