public class FunctionExtractor extends java.lang.Object implements IValueExtractor
| Modifier and Type | Field and Description |
|---|---|
protected IValueExtractor[] |
extractors
The extractors.
|
protected IFunction |
function
The function.
|
| Constructor and Description |
|---|
FunctionExtractor(IFunction function,
IValueExtractor[] extractors)
Create a new evaluator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Test for equality.
|
IFunction |
getFunction()
Get the function.
|
AttributeSet |
getIndirectAttributes()
Get the set of indirect attribute types.
|
AttributeSet |
getRelevantAttributes()
Get the set of relevant attribute types.
|
java.lang.Object |
getValue(Tuple left,
java.lang.Object right,
java.lang.Object prefix,
IOAVState state)
Get the value of an attribute from an object or tuple.
|
IValueExtractor[] |
getValueExtractors()
Get the value extractors.
|
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 IFunction function
protected IValueExtractor[] extractors
public FunctionExtractor(IFunction function, IValueExtractor[] extractors)
public java.lang.Object getValue(Tuple left, java.lang.Object right, java.lang.Object prefix, IOAVState state)
getValue in interface IValueExtractorleft - The left input tuple.right - The right input object.prefix - The prefix input object (last value from previous extractor in a chain).state - The working memory.public boolean isAffected(int tupleindex,
OAVAttributeType attr)
isAffected in interface IValueExtractortupleindex - The tuple index.attr - The attribute.public AttributeSet getRelevantAttributes()
getRelevantAttributes in interface IValueExtractorpublic AttributeSet getIndirectAttributes()
getIndirectAttributes in interface IValueExtractorpublic java.lang.String toString()
toString in class java.lang.Objectpublic IValueExtractor[] getValueExtractors()
public IFunction getFunction()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object