Package ca.uqac.lif.cep.fol
Class PredicateGetNumber
- java.lang.Object
-
- ca.uqac.lif.cep.functions.Function
-
- ca.uqac.lif.cep.functions.UnaryFunction<PredicateTuple,java.lang.Number>
-
- ca.uqac.lif.cep.fol.PredicateGetNumber
-
- 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 PredicateGetNumber extends ca.uqac.lif.cep.functions.UnaryFunction<PredicateTuple,java.lang.Number>
Extracts the value at a specific position in the predicate tuple, and converts it into a number
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_position
-
Constructor Summary
Constructors Constructor Description PredicateGetNumber(int position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PredicateGetNumber
duplicate(boolean with_state)
java.lang.Number
getValue(PredicateTuple x)
-
Methods inherited from class ca.uqac.lif.cep.functions.UnaryFunction
evaluate, getInputArity, getInputTypesFor, getOutputArity, getOutputTypeFor, reset
-
-
-
-
Method Detail
-
getValue
public java.lang.Number getValue(PredicateTuple x)
- Specified by:
getValue
in classca.uqac.lif.cep.functions.UnaryFunction<PredicateTuple,java.lang.Number>
-
duplicate
public PredicateGetNumber duplicate(boolean with_state)
- Specified by:
duplicate
in interfaceca.uqac.lif.cep.Duplicable
- Overrides:
duplicate
in classca.uqac.lif.cep.functions.UnaryFunction<PredicateTuple,java.lang.Number>
-
-