Interface ITupleConsumerNode
-
- All Superinterfaces:
java.lang.Cloneable,INode
- All Known Implementing Classes:
AbstractBetaNode,BetaNode,CollectNode,NotNode,RightInputAdapterNode,TerminalNode,TestNode
public interface ITupleConsumerNode extends INode
A node that is able to consume tuples from a source node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddTuple(Tuple tuple, IOAVState state, ReteMemory mem, AbstractAgenda agenda)Add a new tuple to this node.ITupleSourceNodegetTupleSource()Get the tuple source of this node.voidmodifyTuple(Tuple tuple, int tupleindex, OAVAttributeType type, java.lang.Object oldvalue, java.lang.Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda)Modify a tuple in this node.voidremoveTuple(Tuple tuple, IOAVState state, ReteMemory mem, AbstractAgenda agenda)Remove a tuple from this node.voidsetTupleSource(ITupleSourceNode node)Set the tuple source of this node.-
Methods inherited from interface jadex.rules.rulesystem.rete.nodes.INode
checkNodeConsistency, clone, createNodeMemory, getIndirectAttributes, getNodeId, getNodeMemory, getRelevantAttributes, modifyIndirectObject
-
-
-
-
Method Detail
-
addTuple
void addTuple(Tuple tuple, IOAVState state, ReteMemory mem, AbstractAgenda agenda)
Add a new tuple to this node.- Parameters:
tuple- The tuple.
-
removeTuple
void removeTuple(Tuple tuple, IOAVState state, ReteMemory mem, AbstractAgenda agenda)
Remove a tuple from this node.- Parameters:
tuple- The tuple.
-
modifyTuple
void modifyTuple(Tuple tuple, int tupleindex, OAVAttributeType type, java.lang.Object oldvalue, java.lang.Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda)
Modify a tuple in this node.- Parameters:
tuple- The tuple.
-
setTupleSource
void setTupleSource(ITupleSourceNode node)
Set the tuple source of this node.- Parameters:
node- The tuple source node.
-
getTupleSource
ITupleSourceNode getTupleSource()
Get the tuple source of this node.- Returns:
- The tuple source node.
-
-