#include <message.h>


Public Member Functions | |
| virtual void | setSize (int) throw () |
construction / destruction | |
| Message () | |
| virtual | ~Message () |
Type of message | |
| virtual bool | is_unicast (void) const throw () |
| virtual int | unicast_target (void) const throw () |
| virtual bool | is_loopback_message (void) const throw () |
Message properties | |
| const Node & | source (void) const throw () |
| Node & | source_w (void) const throw () |
| bool | has_source (void) const throw () |
| int | timestamp_simulation_round (void) const throw () |
| double | timestamp_time (void) const throw () |
| void | set_source (Node &) throw () |
| void | set_timestamp (int, double) throw () |
| virtual int | size (void) const throw () |
Abstract superclass. Derive specific message types to get specialized message classes.
It is not always necessary to overload anything or to add methods in derived classes -- type detection via dynamic_cast<>() may be sufficient.
| shawn::Message::Message | ( | ) |
| virtual shawn::Message::~Message | ( | ) | [virtual] |
| virtual bool shawn::Message::is_unicast | ( | void | ) | const throw () [virtual] |
false, ie, all messages are broadcast by default. | virtual int shawn::Message::unicast_target | ( | void | ) | const throw () [virtual] |
Target of a unicast message.
| virtual bool shawn::Message::is_loopback_message | ( | void | ) | const throw () [virtual] |
false.false, ie, all messages are broadcast by default.
| const Node& shawn::Message::source | ( | void | ) | const throw () |
ID of the sender. Set via set_source() automatically from within Processor::send() resp. Node::send().
| Node& shawn::Message::source_w | ( | void | ) | const throw () |
ID of the sender. Set via set_source() automatically from within Processor::send() resp. Node::send().
| bool shawn::Message::has_source | ( | void | ) | const throw () |
true if source has already been set, false if source is still NULL.. | int shawn::Message::timestamp_simulation_round | ( | void | ) | const throw () |
Simulation round when message was sent. Set via set_timestamp() automatically from within Processor::send() resp. Node::send().
| double shawn::Message::timestamp_time | ( | void | ) | const throw () |
Time when message was sent. Set via set_timestamp() automatically from within Processor::send() resp. Node::send().
| void shawn::Message::set_source | ( | Node & | ) | throw () |
Called by Processor::send() resp. Node::send().
| void shawn::Message::set_timestamp | ( | int | , | |
| double | ||||
| ) | throw () |
Called by Processor::send() resp. Node::send().
| virtual int shawn::Message::size | ( | void | ) | const throw () [virtual] |
| virtual void shawn::Message::setSize | ( | int | ) | throw () [virtual] |
1.5.6