Package ca.uqac.lif.cep.tuples
Class GetAttribute
java.lang.Object
ca.uqac.lif.cep.functions.Function
ca.uqac.lif.cep.functions.UnaryFunction<AttributeGroup,Object>
ca.uqac.lif.cep.tuples.GetAttribute
- All Implemented Interfaces:
ca.uqac.lif.cep.Duplicable,ca.uqac.lif.cep.functions.DuplicableFunction
Gets the value of an attribute in an
AttributeGroup- Author:
- Sylvain Hallé
-
Field Summary
Fields inherited from class ca.uqac.lif.cep.functions.Function
s_maxInputArity -
Constructor Summary
ConstructorsConstructorDescriptionGetAttribute(String attribute_name) Creates a new instance of the functionGetAttribute(String trace_name, String attribute_name) Creates a new instance of the function -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbuild(ArrayDeque<Object> stack) duplicate(boolean with_state) Gets the name of the attribute to getGets the name of the trace to get the attribute fromtoString()Methods inherited from class ca.uqac.lif.cep.functions.UnaryFunction
evaluate, getInputArity, getInputTypesFor, getOutputArity, getOutputTypeFor, resetMethods inherited from class ca.uqac.lif.cep.functions.Function
duplicate, evaluate, evaluate, evaluateLazy, evaluatePartial, printState, readState
-
Constructor Details
-
GetAttribute
Creates a new instance of the function- Parameters:
trace_name- The name of the trace to get the attribute fromattribute_name- The name of the attribute to get
-
GetAttribute
Creates a new instance of the function- Parameters:
attribute_name- The name of the attribute to get
-
-
Method Details
-
getAttributeName
Gets the name of the attribute to get- Returns:
- The name
-
getTraceName
Gets the name of the trace to get the attribute from- Returns:
- The name; null if no name has been given
-
getValue
- Specified by:
getValuein classca.uqac.lif.cep.functions.UnaryFunction<AttributeGroup,Object>
-
duplicate
- Specified by:
duplicatein interfaceca.uqac.lif.cep.Duplicable- Overrides:
duplicatein classca.uqac.lif.cep.functions.UnaryFunction<AttributeGroup,Object>
-
toString
-
build
-