Class GetSourcePort

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

public class GetSourcePort extends ca.uqac.lif.cep.functions.UnaryFunction<org.jnetpcap.packet.JPacket, Integer>
PacketFunction to get source port from 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

    • GetSourcePort

      public GetSourcePort()
  • Method Details

    • getValue

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

      public GetSourcePort 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, Integer>