Class AndConstraintEvaluator
- java.lang.Object
- 
- jadex.rules.rulesystem.rete.constraints.AndConstraintEvaluator
 
- 
- All Implemented Interfaces:
- IConstraintEvaluator
 
 public class AndConstraintEvaluator extends java.lang.Object implements IConstraintEvaluator A constraint evaluator for and-connected constraints.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IConstraintEvaluator[]evaluatorsThe constraint evaluator.
 - 
Constructor SummaryConstructors Constructor Description AndConstraintEvaluator(IConstraintEvaluator[] evaluators)Create an AND constraint evaluator.
 - 
Method SummaryAll 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.IConstraintEvaluator[]getConstraintEvaluators()Get the constraint evaluators.AttributeSetgetIndirectAttributes()Get the set of indirect attribute types.AttributeSetgetRelevantAttributes()Get the set of relevant attribute types.inthashCode()The hash code.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.
 
- 
- 
- 
Field Detail- 
evaluatorsprotected final IConstraintEvaluator[] evaluators The constraint evaluator.
 
- 
 - 
Constructor Detail- 
AndConstraintEvaluatorpublic AndConstraintEvaluator(IConstraintEvaluator[] evaluators) Create an AND constraint evaluator.
 
- 
 - 
Method Detail- 
evaluatepublic 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 interface- IConstraintEvaluator
- Parameters:
- right- The right input object.
- left- The left input tuple.
- state- The working memory.
 
 - 
isAffectedpublic boolean isAffected(int tupleindex, OAVAttributeType attr)Test if a constraint evaluator is affected from a change of a certain attribute.- Specified by:
- isAffectedin interface- IConstraintEvaluator
- Parameters:
- tupleindex- The tuple index.
- attr- The attribute.
- Returns:
- True, if affected.
 
 - 
getRelevantAttributespublic AttributeSet getRelevantAttributes() Get the set of relevant attribute types.- Specified by:
- getRelevantAttributesin interface- IConstraintEvaluator
 
 - 
getIndirectAttributespublic 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 interface- IConstraintEvaluator
- Returns:
- The relevant attribute types.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 - 
getConstraintEvaluatorspublic IConstraintEvaluator[] getConstraintEvaluators() Get the constraint evaluators.
 - 
hashCodepublic int hashCode() The hash code.- Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) Test for equality.- Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-