YansCoreNS::MessageReceivedEvent Class Reference

Denotes the reception of an message by an entity in the network. More...

Inheritance diagram for YansCoreNS::MessageReceivedEvent:

YansCoreNS::Event

List of all members.

Public Member Functions

NetworkMessage const & GetMessage (void) const
 Returns the message received.
TopologyNS::UID const & GetReceiverUID (void) const
 Returns the UID of the node that received the message.
 MessageReceivedEvent (TopologyNS::UID const &receiverUID, NetworkMessage const &message)
 Constructor.
virtual ~MessageReceivedEvent (void)
 Destructor.


Detailed Description

Denotes the reception of an message by an entity in the network.

Note:
This event should only be distributed to the node with the associated UID.

Constructor & Destructor Documentation

YansCoreNS::MessageReceivedEvent::MessageReceivedEvent ( TopologyNS::UID const &  receiverUID,
NetworkMessage const &  message 
) [explicit]

Constructor.

Parameters:
[in] receiverUID The UID of the node that received the message.
[in] message The message associated with this event.

virtual YansCoreNS::MessageReceivedEvent::~MessageReceivedEvent ( void   )  [virtual]

Destructor.


Member Function Documentation

NetworkMessage const& YansCoreNS::MessageReceivedEvent::GetMessage ( void   )  const

Returns the message received.

Returns:
The message associated with this event.

TopologyNS::UID const& YansCoreNS::MessageReceivedEvent::GetReceiverUID ( void   )  const

Returns the UID of the node that received the message.

Returns:
The UID of the node that received the message.


Generated on Sat May 2 19:18:06 2009 for Yans - Yet another network simulator by  doxygen 1.5.8