Package ca.uqac.lif.cep.fol
Class PredicateAssertion
- java.lang.Object
-
- ca.uqac.lif.cep.functions.Function
-
- ca.uqac.lif.cep.fol.PredicateAssertion
-
- All Implemented Interfaces:
ca.uqac.lif.azrael.Printable
,ca.uqac.lif.azrael.Readable
,ca.uqac.lif.cep.Duplicable
,ca.uqac.lif.cep.functions.DuplicableFunction
public class PredicateAssertion extends ca.uqac.lif.cep.functions.Function
An assertion on the value of a predicate, to be evaluated on anInterpretation
.While a
PredicateTuple
is an object that defines the value of a predicate for a given set of arguments, aPredicateAssertion
queries an interpretation to fetch the corresponding truth value for the arguments.
-
-
Field Summary
Fields Modifier and Type Field Description protected ca.uqac.lif.cep.functions.Function[]
m_arguments
The arguments of this predicateprotected java.lang.String
m_predicateName
The name of the predicate to evaluate
-
Constructor Summary
Constructors Constructor Description PredicateAssertion(java.lang.String predicate_name, ca.uqac.lif.cep.functions.Function... arguments)
Creates a new predicate assertion
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ca.uqac.lif.cep.functions.Function
duplicate(boolean with_state)
void
evaluate(java.lang.Object[] inputs, java.lang.Object[] outputs)
void
evaluate(java.lang.Object[] inputs, java.lang.Object[] outputs, ca.uqac.lif.cep.Context context, ca.uqac.lif.cep.EventTracker tracker)
int
getInputArity()
void
getInputTypesFor(java.util.Set<java.lang.Class<?>> classes, int index)
int
getOutputArity()
java.lang.Class<?>
getOutputTypeFor(int index)
void
reset()
java.lang.String
toString()
-
-
-
Method Detail
-
evaluate
public void evaluate(java.lang.Object[] inputs, java.lang.Object[] outputs, ca.uqac.lif.cep.Context context, ca.uqac.lif.cep.EventTracker tracker)
- Specified by:
evaluate
in classca.uqac.lif.cep.functions.Function
-
evaluate
public void evaluate(java.lang.Object[] inputs, java.lang.Object[] outputs)
- Overrides:
evaluate
in classca.uqac.lif.cep.functions.Function
-
getInputArity
public int getInputArity()
- Specified by:
getInputArity
in classca.uqac.lif.cep.functions.Function
-
getOutputArity
public int getOutputArity()
- Specified by:
getOutputArity
in classca.uqac.lif.cep.functions.Function
-
reset
public void reset()
- Overrides:
reset
in classca.uqac.lif.cep.functions.Function
-
duplicate
public ca.uqac.lif.cep.functions.Function duplicate(boolean with_state)
- Specified by:
duplicate
in interfaceca.uqac.lif.cep.Duplicable
- Specified by:
duplicate
in classca.uqac.lif.cep.functions.Function
-
getInputTypesFor
public void getInputTypesFor(java.util.Set<java.lang.Class<?>> classes, int index)
- Specified by:
getInputTypesFor
in classca.uqac.lif.cep.functions.Function
-
getOutputTypeFor
public java.lang.Class<?> getOutputTypeFor(int index)
- Specified by:
getOutputTypeFor
in classca.uqac.lif.cep.functions.Function
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-