Class SimpleReceiver

java.lang.Object
tools.refinery.interpreter.rete.network.BaseNode
tools.refinery.interpreter.rete.misc.SimpleReceiver
All Implemented Interfaces:
Node, Receiver
Direct Known Subclasses:
Bag, CallbackNode, DeltaMonitor, RelationEvaluatorNode.BatchingReceiver

public abstract class SimpleReceiver extends BaseNode implements Receiver
  • Field Details

    • parent

      protected Supplier parent
    • mailbox

      protected final Mailbox mailbox
      Since:
      1.6
  • Constructor Details

    • SimpleReceiver

      public SimpleReceiver(ReteContainer reteContainer)
      Parameters:
      reteContainer -
  • Method Details

    • instantiateMailbox

      protected Mailbox instantiateMailbox()
      Instantiates the Mailbox of this receiver. Subclasses may override this method to provide their own mailbox implementation.
      Returns:
      the mailbox
      Since:
      2.0
    • getMailbox

      public Mailbox getMailbox()
      Description copied from interface: Receiver
      Returns the Mailbox of this receiver.
      Specified by:
      getMailbox in interface Receiver
      Returns:
      the mailbox
    • appendParent

      public void appendParent(Supplier supplier)
      Description copied from interface: Receiver
      appends a parent that will continuously send insert and revoke updates to this supplier
      Specified by:
      appendParent in interface Receiver
    • removeParent

      public void removeParent(Supplier supplier)
      Description copied from interface: Receiver
      removes a parent
      Specified by:
      removeParent in interface Receiver
    • getParents

      public Collection<Supplier> getParents()
      Description copied from interface: Receiver
      access active parent
      Specified by:
      getParents in interface Receiver
    • disconnectFromNetwork

      public void disconnectFromNetwork()
      Disconnects this node from the network. Can be called publicly.
    • assignTraceInfo

      public void assignTraceInfo(TraceInfo traceInfo)
      Description copied from interface: Node
      assigns new traceability info to this node
      Specified by:
      assignTraceInfo in interface Node
      Overrides:
      assignTraceInfo in class BaseNode