Package ca.uqac.lif.cep.tuples
Class ScalarIntoTuple
- java.lang.Object
-
- ca.uqac.lif.cep.functions.Function
-
- ca.uqac.lif.cep.functions.UnaryFunction<java.lang.Object,TupleFixed>
-
- ca.uqac.lif.cep.tuples.ScalarIntoTuple
-
- 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 ScalarIntoTuple extends ca.uqac.lif.cep.functions.UnaryFunction<java.lang.Object,TupleFixed>
Turns a scalar object into a singleton tuple.- Author:
- Sylvain Hallé
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringm_keyNameThe name given to the key for the resulting tuple
-
Constructor Summary
Constructors Constructor Description ScalarIntoTuple(java.lang.String name)Creates a new instance of the function
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScalarIntoTupleduplicate(boolean with_state)TupleFixedgetValue(java.lang.Object x)-
Methods inherited from class ca.uqac.lif.cep.functions.UnaryFunction
evaluate, getInputArity, getInputTypesFor, getOutputArity, getOutputTypeFor, reset
-
-
-
-
Method Detail
-
getValue
public TupleFixed getValue(java.lang.Object x)
- Specified by:
getValuein classca.uqac.lif.cep.functions.UnaryFunction<java.lang.Object,TupleFixed>
-
duplicate
public ScalarIntoTuple duplicate(boolean with_state)
- Specified by:
duplicatein interfaceca.uqac.lif.cep.Duplicable- Overrides:
duplicatein classca.uqac.lif.cep.functions.UnaryFunction<java.lang.Object,TupleFixed>
-
-