Package ca.uqac.lif.cep.fol
Class QuantifierInterpretation
- java.lang.Object
-
- ca.uqac.lif.cep.functions.Function
-
- ca.uqac.lif.cep.fol.QuantifierInterpretation
-
- All Implemented Interfaces:
ca.uqac.lif.azrael.Printable,ca.uqac.lif.azrael.Readable,ca.uqac.lif.cep.Duplicable,ca.uqac.lif.cep.functions.DuplicableFunction
- Direct Known Subclasses:
ExistsInterpretation,ForAllInterpretation
public abstract class QuantifierInterpretation extends ca.uqac.lif.cep.functions.Function
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringm_domainNameprotected ca.uqac.lif.cep.functions.Functionm_expressionprotected booleanm_failFastprotected booleanm_stopValueprotected java.lang.Stringm_variableName
-
Constructor Summary
Constructors Constructor Description QuantifierInterpretation(java.lang.String variable_name, java.lang.String domain_name, ca.uqac.lif.cep.functions.Function expression, boolean stop_value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevaluate(java.lang.Object[] inputs, java.lang.Object[] outputs)voidevaluate(java.lang.Object[] inputs, java.lang.Object[] out, ca.uqac.lif.cep.Context context, ca.uqac.lif.cep.EventTracker tracker)intgetInputArity()voidgetInputTypesFor(java.util.Set<java.lang.Class<?>> classes, int index)intgetOutputArity()java.lang.Class<?>getOutputTypeFor(int index)voidreset()voidsetFailFast(boolean b)Sets whether the quantifier evaluates the functions in "fail fast" mode
-
-
-
Method Detail
-
evaluate
public void evaluate(java.lang.Object[] inputs, java.lang.Object[] out, ca.uqac.lif.cep.Context context, ca.uqac.lif.cep.EventTracker tracker)- Specified by:
evaluatein classca.uqac.lif.cep.functions.Function
-
setFailFast
public void setFailFast(boolean b)
Sets whether the quantifier evaluates the functions in "fail fast" mode- Parameters:
b- Set totrueto use fail fast
-
evaluate
public void evaluate(java.lang.Object[] inputs, java.lang.Object[] outputs)- Overrides:
evaluatein classca.uqac.lif.cep.functions.Function
-
getInputArity
public int getInputArity()
- Specified by:
getInputArityin classca.uqac.lif.cep.functions.Function
-
getOutputArity
public int getOutputArity()
- Specified by:
getOutputArityin classca.uqac.lif.cep.functions.Function
-
reset
public void reset()
- Overrides:
resetin classca.uqac.lif.cep.functions.Function
-
getInputTypesFor
public void getInputTypesFor(java.util.Set<java.lang.Class<?>> classes, int index)- Specified by:
getInputTypesForin classca.uqac.lif.cep.functions.Function
-
getOutputTypeFor
public java.lang.Class<?> getOutputTypeFor(int index)
- Specified by:
getOutputTypeForin classca.uqac.lif.cep.functions.Function
-
-