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

public class GetAttribute extends ca.uqac.lif.cep.functions.UnaryFunction<AttributeGroup,Object>
Gets the value of an attribute in an AttributeGroup
Author:
Sylvain Hallé
  • Constructor Details

    • GetAttribute

      public GetAttribute(String trace_name, String attribute_name)
      Creates a new instance of the function
      Parameters:
      trace_name - The name of the trace to get the attribute from
      attribute_name - The name of the attribute to get
    • GetAttribute

      public GetAttribute(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
    • getTraceName

      public String getTraceName()
      Gets the name of the trace to get the attribute from
      Returns:
      The name; null if no name has been given
    • getValue

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

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

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

      public static void build(ArrayDeque<Object> stack)