Class 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.String m_keyName
      The name given to the key for the resulting tuple
      • Fields inherited from class ca.uqac.lif.cep.functions.Function

        s_maxInputArity
    • 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
      ScalarIntoTuple duplicate​(boolean with_state)  
      TupleFixed getValue​(java.lang.Object x)  
      • 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, print, printState, read, readState
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m_keyName

        protected java.lang.String m_keyName
        The name given to the key for the resulting tuple
    • Constructor Detail

      • ScalarIntoTuple

        public ScalarIntoTuple​(java.lang.String name)
        Creates a new instance of the function
        Parameters:
        name - The name given to the key in the resulting tuple
    • Method Detail

      • getValue

        public TupleFixed getValue​(java.lang.Object x)
        Specified by:
        getValue in class ca.uqac.lif.cep.functions.UnaryFunction<java.lang.Object,​TupleFixed>
      • duplicate

        public ScalarIntoTuple duplicate​(boolean with_state)
        Specified by:
        duplicate in interface ca.uqac.lif.cep.Duplicable
        Overrides:
        duplicate in class ca.uqac.lif.cep.functions.UnaryFunction<java.lang.Object,​TupleFixed>