public abstract class BaseNode extends java.lang.Object implements Node
Modifier and Type | Field and Description |
---|---|
protected long |
nodeId |
protected ReteContainer |
reteContainer |
protected java.lang.Object |
tag |
protected java.util.Set<TraceInfo> |
traceInfos |
Constructor and Description |
---|
BaseNode(ReteContainer reteContainer) |
Modifier and Type | Method and Description |
---|---|
void |
acceptPropagatedTraceInfo(TraceInfo traceInfo)
accepts traceability info propagated to this node
|
void |
assignTraceInfo(TraceInfo traceInfo)
assigns new traceability info to this node
|
ReteContainer |
getContainer() |
long |
getNodeId() |
java.lang.Object |
getTag() |
protected java.lang.String |
getTraceInfoPatternsEnumerated()
Descendants should use this in e.g.
|
java.util.Set<TraceInfo> |
getTraceInfos() |
void |
setTag(java.lang.Object tag)
Assigns a descriptive tag to the node
|
java.lang.String |
toString() |
protected java.lang.String |
toStringCore()
clients should override this to append before the tag / trace indicators
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCommunicationTracker
protected ReteContainer reteContainer
protected long nodeId
protected java.lang.Object tag
protected java.util.Set<TraceInfo> traceInfos
public BaseNode(ReteContainer reteContainer)
reteContainer
- the container to create this node inpublic java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String toStringCore()
public ReteContainer getContainer()
getContainer
in interface Node
public long getNodeId()
public java.lang.Object getTag()
public void setTag(java.lang.Object tag)
Node
public java.util.Set<TraceInfo> getTraceInfos()
getTraceInfos
in interface Node
public void assignTraceInfo(TraceInfo traceInfo)
Node
assignTraceInfo
in interface Node
public void acceptPropagatedTraceInfo(TraceInfo traceInfo)
Node
acceptPropagatedTraceInfo
in interface Node
protected java.lang.String getTraceInfoPatternsEnumerated()