Class PredicateGetNumber

  • 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 PredicateGetNumber
    extends ca.uqac.lif.cep.functions.UnaryFunction<PredicateTuple,​java.lang.Number>
    Extracts the value at a specific position in the predicate tuple, and converts it into a number
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int m_position  
      • Fields inherited from class ca.uqac.lif.cep.functions.Function

        s_maxInputArity
    • Constructor Summary

      Constructors 
      Constructor Description
      PredicateGetNumber​(int position)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PredicateGetNumber duplicate​(boolean with_state)  
      java.lang.Number getValue​(PredicateTuple 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_position

        protected int m_position
    • Constructor Detail

      • PredicateGetNumber

        public PredicateGetNumber​(int position)
    • Method Detail

      • getValue

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

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