|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.base.BaseEvaluator
public abstract class BaseEvaluator
BaseEvaluator is an Object Comparator that is operator aware
Constructor Summary | |
---|---|
BaseEvaluator()
|
|
BaseEvaluator(ValueType type,
Operator operator)
|
Method Summary | |
---|---|
boolean |
equals(Object object)
|
ValueType |
getCoercedValueType()
Returns the value type this evaluator will coerce operands to, during evaluation. |
Interval |
getInterval()
In case this is a temporal evaluator, returns the interval in which this evaluator may match the target fact |
Operator |
getOperator()
Returns the operator representation object for this evaluator |
ValueType |
getValueType()
Returns the type of the values this evaluator operates upon. |
int |
hashCode()
|
boolean |
isTemporal()
Returns true if this evaluator implements a temporal evaluation, i.e., a time sensitive evaluation whose properties of matching only events within an specific time interval can be used for determining event expirations automatically. |
Object |
prepareLeftObject(InternalFactHandle handle)
Most evaluators operate on the fact attributes, so, by default, the implementation unwraps it, but subclasses can override this behaviour. |
Object |
prepareRightObject(InternalFactHandle handle)
Most evaluators operate o symmetrical types of object on both sides, i.e., either they operate on facts on both sides, or fact handles on both sides. |
void |
readExternal(ObjectInput in)
|
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.drools.spi.Evaluator |
---|
evaluate, evaluate, evaluateCachedLeft, evaluateCachedRight |
Constructor Detail |
---|
public BaseEvaluator()
public BaseEvaluator(ValueType type, Operator operator)
Method Detail |
---|
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public Operator getOperator()
Evaluator
getOperator
in interface org.drools.runtime.rule.Evaluator
public ValueType getValueType()
Evaluator
public ValueType getCoercedValueType()
Evaluator
public Object prepareLeftObject(InternalFactHandle handle)
public Object prepareRightObject(InternalFactHandle handle)
public boolean isTemporal()
Evaluator
isTemporal
in interface org.drools.runtime.rule.Evaluator
public Interval getInterval()
Evaluator
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |