#include <disk_graph_model.h>


Public Member Functions | |
construction / destruction | |
| DiskGraphModel () | |
| virtual | ~DiskGraphModel () |
| virtual void | init (void) throw () |
communication range | |
| virtual void | set_transmission_range (double) throw () |
| virtual double | transmission_range (void) const throw () |
CommunicationModel interface | |
| virtual bool | can_communicate_bidi (const Node &, const Node &) const throw () |
| virtual bool | can_communicate_uni (const Node &, const Node &) const throw () |
| virtual bool | exists_communication_upper_bound (void) const throw () |
| returns whether communication_upper_bound() returns a useful value | |
| virtual double | communication_upper_bound (void) const throw () |
| virtual bool | is_status_available_on_construction (void) const throw () |
| virtual void | set_size_hint (double size_hint) throw () |
| shawn::DiskGraphModel::DiskGraphModel | ( | ) |
| virtual shawn::DiskGraphModel::~DiskGraphModel | ( | ) | [virtual] |
| virtual void shawn::DiskGraphModel::init | ( | void | ) | throw () [virtual] |
called after world is setup and before first node is created. used by World
Reimplemented from shawn::CommunicationModel.
| virtual void shawn::DiskGraphModel::set_transmission_range | ( | double | ) | throw () [virtual] |
| virtual double shawn::DiskGraphModel::transmission_range | ( | void | ) | const throw () [virtual] |
| virtual bool shawn::DiskGraphModel::can_communicate_bidi | ( | const Node & | , | |
| const Node & | ||||
| ) | const throw () [virtual] |
true iff can_communicate_uni(u,v) and can_communicate_uni(v,u), therefore, whether the two nodes may exchange messages. Implements shawn::CommunicationModel.
| virtual bool shawn::DiskGraphModel::can_communicate_uni | ( | const Node & | , | |
| const Node & | ||||
| ) | const throw () [virtual] |
true if the first passed node can send messages to the second. Implements shawn::CommunicationModel.
| virtual bool shawn::DiskGraphModel::exists_communication_upper_bound | ( | void | ) | const throw () [virtual] |
returns whether communication_upper_bound() returns a useful value
Implements shawn::CommunicationModel.
| virtual double shawn::DiskGraphModel::communication_upper_bound | ( | void | ) | const throw () [virtual] |
if exists_communication_upper_bound(), nodes whose euclidean distance exceeds communication_upper_bound() can never communicate in any direction
Implements shawn::CommunicationModel.
| virtual bool shawn::DiskGraphModel::is_status_available_on_construction | ( | void | ) | const throw () [virtual] |
Implements shawn::CommunicationModel.
| virtual void shawn::DiskGraphModel::set_size_hint | ( | double | ) | throw () [virtual] |
A size hint MAY be provided by the World to the communication model what a "normal" distance in this world could be. This is NO information about the actual communication range of nodes. This is just a hint. Implement this method in your communication model if you want to react to this information.
Reimplemented from shawn::CommunicationModel.
1.5.6