net.clackrouter.packets
Class VNSPacketArrivalEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.clackrouter.packets.VNSPacketArrivalEvent
All Implemented Interfaces:
java.io.Serializable

public class VNSPacketArrivalEvent
extends java.util.EventObject

Encapsulates an event that is sent to all interested parties when a packet arrives at a particular destination, for example the box input port, the box itself, or the box output port.

See Also:
VNSPacketArrivalListener, Serialized Form

Field Summary
protected  VNSPacket m_packet
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
VNSPacketArrivalEvent(java.lang.Object source, VNSPacket packet)
          Constructs communcation object event.
 
Method Summary
 VNSPacket getPacket()
          Returns the packet object associated with the event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_packet

protected VNSPacket m_packet
Constructor Detail

VNSPacketArrivalEvent

public VNSPacketArrivalEvent(java.lang.Object source,
                             VNSPacket packet)
Constructs communcation object event.

Parameters:
source - Object that is sending this event
packet - The packet to be sent
Method Detail

getPacket

public VNSPacket getPacket()
Returns the packet object associated with the event.

Returns:
Packet