Package ca.uqac.lif.cep.tuples
Class FetchAttribute
- java.lang.Object
-
- ca.uqac.lif.cep.functions.Function
-
- ca.uqac.lif.cep.functions.UnaryFunction<Tuple,java.lang.Object>
-
- ca.uqac.lif.cep.tuples.FetchAttribute
-
- 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 FetchAttribute extends ca.uqac.lif.cep.functions.UnaryFunction<Tuple,java.lang.Object>
Gets the value of an attribute in aTuple
- Author:
- Sylvain Hallé
-
-
Constructor Summary
Constructors Constructor Description FetchAttribute(java.lang.String attribute_name)
Creates a new instance of the function
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
build(java.util.ArrayDeque<java.lang.Object> stack)
FetchAttribute
duplicate(boolean with_state)
java.lang.String
getAttributeName()
Gets the name of the attribute to getjava.lang.Object
getValue(Tuple t)
java.lang.String
toString()
-
Methods inherited from class ca.uqac.lif.cep.functions.UnaryFunction
evaluate, getInputArity, getInputTypesFor, getOutputArity, getOutputTypeFor, reset
-
-
-
-
Method Detail
-
getAttributeName
public java.lang.String getAttributeName()
Gets the name of the attribute to get- Returns:
- The name
-
getValue
public java.lang.Object getValue(Tuple t)
- Specified by:
getValue
in classca.uqac.lif.cep.functions.UnaryFunction<Tuple,java.lang.Object>
-
duplicate
public FetchAttribute duplicate(boolean with_state)
- Specified by:
duplicate
in interfaceca.uqac.lif.cep.Duplicable
- Overrides:
duplicate
in classca.uqac.lif.cep.functions.UnaryFunction<Tuple,java.lang.Object>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
build
public static void build(java.util.ArrayDeque<java.lang.Object> stack)
-
-