Class GetProtocolName

java.lang.Object
ca.uqac.lif.cep.functions.Function
ca.uqac.lif.cep.functions.UnaryFunction<org.jnetpcap.packet.JPacket, String>
netp.functions.GetProtocolName
All Implemented Interfaces:
ca.uqac.lif.cep.Duplicable, ca.uqac.lif.cep.functions.DuplicableFunction

public class GetProtocolName extends ca.uqac.lif.cep.functions.UnaryFunction<org.jnetpcap.packet.JPacket, String>
PacketFunction to get the protocol name of a network packet
  • Field Summary

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

    s_maxInputArity
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    duplicate(boolean with_state)
     
    getValue(org.jnetpcap.packet.JPacket packet)
     

    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 Object

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

    • GetProtocolName

      public GetProtocolName()
  • Method Details

    • getValue

      public String getValue(org.jnetpcap.packet.JPacket packet)
      Specified by:
      getValue in class ca.uqac.lif.cep.functions.UnaryFunction<org.jnetpcap.packet.JPacket, String>
    • duplicate

      public GetProtocolName duplicate(boolean with_state)
      Specified by:
      duplicate in interface ca.uqac.lif.cep.Duplicable
      Overrides:
      duplicate in class ca.uqac.lif.cep.functions.UnaryFunction<org.jnetpcap.packet.JPacket, String>