Class NotConstraintEvaluator
- java.lang.Object
-
- jadex.rules.rulesystem.rete.constraints.NotConstraintEvaluator
-
- All Implemented Interfaces:
IConstraintEvaluator
public class NotConstraintEvaluator extends java.lang.Object implements IConstraintEvaluator
A not constraint evaluator checks if the left tuple corresponds to the beginning of the right object, which also has to be a tuple.
-
-
Constructor Summary
Constructors Constructor Description NotConstraintEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Test for equality.booleanevaluate(java.lang.Object right, Tuple left, IOAVState state)Evaluate the constraints given the right object, left tuple (null for alpha nodes) and the state.AttributeSetgetIndirectAttributes()Get the set of indirect attribute types.AttributeSetgetRelevantAttributes()Get the set of relevant attribute types.booleanisAffected(int tupleindex, OAVAttributeType attr)Test if a constraint evaluator is affected from a change of a certain attribute.java.lang.StringtoString()Get the string representation.
-
-
-
Method Detail
-
evaluate
public boolean evaluate(java.lang.Object right, Tuple left, IOAVState state)Evaluate the constraints given the right object, left tuple (null for alpha nodes) and the state.- Specified by:
evaluatein interfaceIConstraintEvaluator- Parameters:
right- The right input object.left- The left input tuple.state- The working memory.
-
isAffected
public boolean isAffected(int tupleindex, OAVAttributeType attr)Test if a constraint evaluator is affected from a change of a certain attribute.- Specified by:
isAffectedin interfaceIConstraintEvaluator- Parameters:
tupleindex- The tuple index.attr- The attribute.- Returns:
- True, if affected.
-
getRelevantAttributes
public AttributeSet getRelevantAttributes()
Get the set of relevant attribute types.- Specified by:
getRelevantAttributesin interfaceIConstraintEvaluator
-
getIndirectAttributes
public AttributeSet getIndirectAttributes()
Get the set of indirect attribute types. I.e. attributes of objects, which are not part of an object conditions (e.g. for chained extractors)- Specified by:
getIndirectAttributesin interfaceIConstraintEvaluator- Returns:
- The relevant attribute types.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
equals
public boolean equals(java.lang.Object obj)
Test for equality.- Overrides:
equalsin classjava.lang.Object
-
-