edu.nps.moves.disutil
Class PduNioMulticastReceiver.Event

java.lang.Object
  extended by java.util.EventObject
      extended by edu.nps.moves.disutil.PduNioMulticastReceiver.Event
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
PduNioMulticastReceiver

public static class PduNioMulticastReceiver.Event
extends java.util.EventObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PduNioMulticastReceiver.Event(PduNioMulticastReceiver src)
          Creates a Event based on the given PduMulticastReceiver.
 
Method Summary
 Pdu getPdu()
          Returns the Pdu for this 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
 

Constructor Detail

PduNioMulticastReceiver.Event

public PduNioMulticastReceiver.Event(PduNioMulticastReceiver src)
Creates a Event based on the given PduMulticastReceiver.

Parameters:
src - the source of the event
Method Detail

getPdu

public Pdu getPdu()
Returns the Pdu for this event. Since the server runs on a single thread, this method is a shorthand for ((PduMulticastReceiver)getSource()).getPdu().

Returns:
the Pdu