Class NotNode
- java.lang.Object
- 
- jadex.rules.rulesystem.rete.nodes.AbstractNode
- 
- jadex.rules.rulesystem.rete.nodes.AbstractBetaNode
- 
- jadex.rules.rulesystem.rete.nodes.NotNode
 
 
 
- 
- All Implemented Interfaces:
- INode,- IObjectConsumerNode,- ITupleConsumerNode,- ITupleSourceNode,- java.lang.Cloneable
 
 public class NotNode extends AbstractBetaNode A not node lets tuples (from left side) pass, when there is no match from the right side.
- 
- 
Field Summary- 
Fields inherited from class jadex.rules.rulesystem.rete.nodes.AbstractBetaNodeevaluators, indexers, indirects, osource, relevants, tconsumers, tsource
 - 
Fields inherited from class jadex.rules.rulesystem.rete.nodes.AbstractNodeclones, nodeid
 
- 
 - 
Constructor SummaryConstructors Constructor Description NotNode(int nodeid, IConstraintEvaluator[] evaluators, ConstraintIndexer[] indexers)Create a new not node.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddMatch(Tuple left, java.lang.Object right, IOAVState state, ReteMemory mem, AbstractAgenda agenda)Add a match to the node memory and propagate if necessary.voidaddTuple(Tuple left, IOAVState state, ReteMemory mem, AbstractAgenda agenda)Send a tuple to this node.java.lang.ObjectcreateNodeMemory(IOAVState state)Create the node memory.protected booleanisMatchContained(IOAVState state, Tuple left, java.lang.Object right, ReteMemory mem)Check if a match is contained.voidmodifyIndirectObject(java.lang.Object object, OAVAttributeType type, java.lang.Object oldvalue, java.lang.Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda)Propagate an indirect object change to this node.voidmodifyTuple(Tuple left, int tupleindex, OAVAttributeType type, java.lang.Object oldvalue, java.lang.Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda)Modify a tuple in this node.protected voidpropagateModification(Tuple left, java.lang.Object right, int tupleindex, OAVAttributeType type, java.lang.Object oldvalue, java.lang.Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda)Propagate a change of a tuple in the result memory.protected voidremoveMatch(Tuple left, java.lang.Object right, IOAVState state, ReteMemory mem, AbstractAgenda agenda)Remove a match from the node memory and propagate if necessary.voidremoveTuple(Tuple left, IOAVState state, ReteMemory mem, AbstractAgenda agenda)Remove a tuple from this node.- 
Methods inherited from class jadex.rules.rulesystem.rete.nodes.AbstractBetaNodeaddObject, addTupleConsumer, checkNonindexedConstraints, doClone, fetchObjectMemory, fetchTupleMemory, getConstraintEvaluators, getConstraintIndexers, getIndirectAttributes, getNodeMemory, getObjectSource, getRelevantAttributes, getTupleConsumers, getTupleSource, identityIntersection, intersection, isAffected, modifyObject, removeObject, removeTupleConsumer, setObjectSource, setTupleSource
 - 
Methods inherited from class jadex.rules.rulesystem.rete.nodes.AbstractNodecheckNodeConsistency, clone, equals, getNodeId, hashCode, toString, toString
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jadex.rules.rulesystem.rete.nodes.INodecheckNodeConsistency, clone, getNodeId
 
- 
 
- 
- 
- 
Constructor Detail- 
NotNodepublic NotNode(int nodeid, IConstraintEvaluator[] evaluators, ConstraintIndexer[] indexers)Create a new not node.
 
- 
 - 
Method Detail- 
addTuplepublic void addTuple(Tuple left, IOAVState state, ReteMemory mem, AbstractAgenda agenda) Send a tuple to this node.- Specified by:
- addTuplein interface- ITupleConsumerNode
- Overrides:
- addTuplein class- AbstractBetaNode
- Parameters:
- tuple- The tuple.
 
 - 
removeTuplepublic void removeTuple(Tuple left, IOAVState state, ReteMemory mem, AbstractAgenda agenda) Remove a tuple from this node.- Specified by:
- removeTuplein interface- ITupleConsumerNode
- Overrides:
- removeTuplein class- AbstractBetaNode
- Parameters:
- tuple- The tuple.
 
 - 
modifyTuplepublic void modifyTuple(Tuple left, int tupleindex, OAVAttributeType type, java.lang.Object oldvalue, java.lang.Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda) Modify a tuple in this node.- Specified by:
- modifyTuplein interface- ITupleConsumerNode
- Overrides:
- modifyTuplein class- AbstractBetaNode
- Parameters:
- left- The tuple.
 
 - 
modifyIndirectObjectpublic void modifyIndirectObject(java.lang.Object object, OAVAttributeType type, java.lang.Object oldvalue, java.lang.Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda)Propagate an indirect object change to this node.- Specified by:
- modifyIndirectObjectin interface- INode
- Overrides:
- modifyIndirectObjectin class- AbstractBetaNode
- Parameters:
- object- The changed object.
 
 - 
addMatchprotected void addMatch(Tuple left, java.lang.Object right, IOAVState state, ReteMemory mem, AbstractAgenda agenda) Add a match to the node memory and propagate if necessary.- Specified by:
- addMatchin class- AbstractBetaNode
 
 - 
removeMatchprotected void removeMatch(Tuple left, java.lang.Object right, IOAVState state, ReteMemory mem, AbstractAgenda agenda) Remove a match from the node memory and propagate if necessary.- Specified by:
- removeMatchin class- AbstractBetaNode
 
 - 
propagateModificationprotected void propagateModification(Tuple left, java.lang.Object right, int tupleindex, OAVAttributeType type, java.lang.Object oldvalue, java.lang.Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda) Propagate a change of a tuple in the result memory.- Specified by:
- propagateModificationin class- AbstractBetaNode
 
 - 
isMatchContainedprotected boolean isMatchContained(IOAVState state, Tuple left, java.lang.Object right, ReteMemory mem) Check if a match is contained.- Specified by:
- isMatchContainedin class- AbstractBetaNode
 
 - 
createNodeMemorypublic java.lang.Object createNodeMemory(IOAVState state) Create the node memory.- Specified by:
- createNodeMemoryin interface- INode
- Overrides:
- createNodeMemoryin class- AbstractBetaNode
- Parameters:
- state- The state.
- Returns:
- The node memory.
 
 
- 
 
-