net.clackrouter.packets
Class VNSPacketDepartureEvent

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

public class VNSPacketDepartureEvent
extends java.util.EventObject

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

See Also:
VNSPacketDepartureListener, Serialized Form

Field Summary
protected  VNSPacket m_packet
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
VNSPacketDepartureEvent(java.lang.Object source, VNSPacket packet)
          Constructs communcation object event.
 
Method Summary
 VNSPacket getPacket()
          Returns the packet 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

VNSPacketDepartureEvent

public VNSPacketDepartureEvent(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 associated with the event.

Returns:
Pakcet