Class GetSourceIp

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

public class GetSourceIp extends ca.uqac.lif.cep.functions.UnaryFunction<org.jnetpcap.packet.JPacket, String>
PacketFunction to get source IP 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

    • GetSourceIp

      public GetSourceIp()
  • 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 GetSourceIp 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>