Class RepresentativeElectionNode
java.lang.Object
tools.refinery.interpreter.rete.network.BaseNode
tools.refinery.interpreter.rete.network.StandardNode
tools.refinery.interpreter.rete.single.SingleInputNode
tools.refinery.interpreter.rete.single.RepresentativeElectionNode
- All Implemented Interfaces:
Clearable, RepresentativeObserver<Object>, NetworkStructureChangeSensitiveNode, Node, Receiver, ReinitializedNode, Supplier, Tunnel
public class RepresentativeElectionNode
extends SingleInputNode
implements Clearable, RepresentativeObserver<Object>, ReinitializedNode
-
Field Summary
Fields inherited from class SingleInputNode
mailbox, parentFields inherited from class StandardNode
childMailboxes, childrenFields inherited from class BaseNode
nodeId, reteContainer, tag, traceInfos -
Constructor Summary
ConstructorsConstructorDescriptionRepresentativeElectionNode(ReteContainer reteContainer, RepresentativeElectionAlgorithm.Factory algorithmFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidAt the time of the invocation, the dependency graph has already been updated.voidpullInto(Collection<Tuple> collector, boolean flush) Pulls the contents of this object in this particular moment into a target collection.voidpullIntoWithTimeline(Map<Tuple, Timeline<Timestamp>> collector, boolean flush) voidreinitializeWith(Collection<Tuple> tuples) voidtupleChanged(Object source, Object representative, Direction direction) voidUpdates the receiver with a newly found or lost partial matching.Methods inherited from class SingleInputNode
appendParent, assignTraceInfo, getCommunicationTracker, getMailbox, getParents, instantiateMailbox, propagatePullInto, propagatePullIntoWithTimestamp, removeParentMethods inherited from class StandardNode
appendChild, constructIndex, getChildMailboxes, getPulledContents, getReceivers, issueError, propagateUpdate, removeChildMethods inherited from class BaseNode
acceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfoPatternsEnumerated, getTraceInfos, setTag, toString, toStringCoreMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Node
acceptPropagatedTraceInfo, getContainer, getNodeId, getTag, getTraceInfos, setTagMethods inherited from interface Receiver
batchUpdateMethods inherited from interface Supplier
appendChild, constructIndex, getPulledContents, getPulledContents, getReceivers, removeChild
-
Constructor Details
-
RepresentativeElectionNode
public RepresentativeElectionNode(ReteContainer reteContainer, RepresentativeElectionAlgorithm.Factory algorithmFactory)
-
-
Method Details
-
networkStructureChanged
public void networkStructureChanged()Description copied from interface:NetworkStructureChangeSensitiveNodeAt the time of the invocation, the dependency graph has already been updated.- Specified by:
networkStructureChangedin interfaceNetworkStructureChangeSensitiveNode- Overrides:
networkStructureChangedin classStandardNode
-
reinitializeWith
- Specified by:
reinitializeWithin interfaceReinitializedNode
-
tupleChanged
- Specified by:
tupleChangedin interfaceRepresentativeObserver<Object>
-
clear
-
update
-
pullInto
Description copied from interface:SupplierPulls the contents of this object in this particular moment into a target collection. -
pullIntoWithTimeline
-