Class BaseNode

    • Field Detail

      • nodeId

        protected long nodeId
      • tag

        protected java.lang.Object tag
      • traceInfos

        protected java.util.Set<TraceInfo> traceInfos
    • Constructor Detail

      • BaseNode

        public BaseNode​(ReteContainer reteContainer)
        Parameters:
        reteContainer - the container to create this node in
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringCore

        protected java.lang.String toStringCore()
        clients should override this to append before the tag / trace indicators
      • getNodeId

        public long getNodeId()
        Specified by:
        getNodeId in interface Node
        Returns:
        the identifier unique to this node within the network.
      • getTag

        public java.lang.Object getTag()
        Specified by:
        getTag in interface Node
        Returns:
        the tag of the node
      • setTag

        public void setTag​(java.lang.Object tag)
        Description copied from interface: Node
        Assigns a descriptive tag to the node
        Specified by:
        setTag in interface Node
      • getTraceInfos

        public java.util.Set<TraceInfo> getTraceInfos()
        Specified by:
        getTraceInfos in interface Node
        Returns:
        unmodifiable view of the list of traceability infos assigned to this node
      • assignTraceInfo

        public void assignTraceInfo​(TraceInfo traceInfo)
        Description copied from interface: Node
        assigns new traceability info to this node
        Specified by:
        assignTraceInfo in interface Node
      • acceptPropagatedTraceInfo

        public void acceptPropagatedTraceInfo​(TraceInfo traceInfo)
        Description copied from interface: Node
        accepts traceability info propagated to this node
        Specified by:
        acceptPropagatedTraceInfo in interface Node
      • getTraceInfoPatternsEnumerated

        protected java.lang.String getTraceInfoPatternsEnumerated()
        Descendants should use this in e.g. logging