Class FetchAttribute

java.lang.Object
ca.uqac.lif.cep.functions.Function
ca.uqac.lif.cep.functions.UnaryFunction<Tuple,Object>
ca.uqac.lif.cep.tuples.FetchAttribute
All Implemented Interfaces:
ca.uqac.lif.cep.Duplicable, ca.uqac.lif.cep.functions.DuplicableFunction

public class FetchAttribute extends ca.uqac.lif.cep.functions.UnaryFunction<Tuple,Object>
Gets the value of an attribute in a Tuple
Author:
Sylvain Hallé
  • Field Summary

    Fields inherited from class ca.uqac.lif.cep.functions.Function

    s_maxInputArity
  • Constructor Summary

    Constructors
    Constructor
    Description
    FetchAttribute(String attribute_name)
    Creates a new instance of the function
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    duplicate(boolean with_state)
     
    Gets the name of the attribute to get
     
     

    Methods inherited from class ca.uqac.lif.cep.functions.UnaryFunction

    evaluate, getInputArity, getInputTypesFor, getOutputArity, getOutputTypeFor, reset

    Methods inherited from class ca.uqac.lif.cep.functions.Function

    duplicate, evaluate, evaluate, evaluateLazy, evaluatePartial, printState, readState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FetchAttribute

      public FetchAttribute(String attribute_name)
      Creates a new instance of the function
      Parameters:
      attribute_name - The name of the attribute to get
  • Method Details

    • getAttributeName

      public String getAttributeName()
      Gets the name of the attribute to get
      Returns:
      The name
    • getValue

      public Object getValue(Tuple t)
      Specified by:
      getValue in class ca.uqac.lif.cep.functions.UnaryFunction<Tuple,Object>
    • duplicate

      public FetchAttribute duplicate(boolean with_state)
      Specified by:
      duplicate in interface ca.uqac.lif.cep.Duplicable
      Overrides:
      duplicate in class ca.uqac.lif.cep.functions.UnaryFunction<Tuple,Object>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • build

      public static void build(ArrayDeque<Object> stack)