public class OrConstraintEvaluator extends java.lang.Object implements IConstraintEvaluator
Modifier and Type | Field and Description |
---|---|
protected IConstraintEvaluator[] |
evaluators
The constraint evaluator.
|
Constructor and Description |
---|
OrConstraintEvaluator(IConstraintEvaluator[] evaluators)
Create an OR constraint evaluator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Test for equality.
|
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.
|
IConstraintEvaluator[] |
getConstraintEvaluators()
Get the constraint evaluators.
|
AttributeSet |
getIndirectAttributes()
Get the set of indirect attribute types.
|
AttributeSet |
getRelevantAttributes()
Get the set of relevant attribute types.
|
int |
hashCode()
The hash code.
|
boolean |
isAffected(int tupleindex,
OAVAttributeType attr)
Test if a constraint evaluator is affected from a
change of a certain attribute.
|
java.lang.String |
toString()
Get the string representation.
|
protected final IConstraintEvaluator[] evaluators
public OrConstraintEvaluator(IConstraintEvaluator[] evaluators)
public boolean evaluate(java.lang.Object right, Tuple left, IOAVState state)
evaluate
in interface IConstraintEvaluator
right
- The right input object.left
- The left input tuple.state
- The working memory.public boolean isAffected(int tupleindex, OAVAttributeType attr)
isAffected
in interface IConstraintEvaluator
tupleindex
- The tuple index.attr
- The attribute.public AttributeSet getRelevantAttributes()
getRelevantAttributes
in interface IConstraintEvaluator
public AttributeSet getIndirectAttributes()
getIndirectAttributes
in interface IConstraintEvaluator
public java.lang.String toString()
toString
in class java.lang.Object
public IConstraintEvaluator[] getConstraintEvaluators()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object.