#include <stochastic_comm_model.h>


Public Member Functions | |
construction / destruction | |
| StochasticCommunicationModel (int mode, double smooth_factor) | |
| virtual | ~StochasticCommunicationModel () |
| 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 () |
| shawn::StochasticCommunicationModel::StochasticCommunicationModel | ( | int | mode, | |
| double | smooth_factor | |||
| ) |
| virtual shawn::StochasticCommunicationModel::~StochasticCommunicationModel | ( | ) | [virtual] |
| virtual void shawn::StochasticCommunicationModel::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::StochasticCommunicationModel::set_transmission_range | ( | double | ) | throw () [virtual] |
| virtual double shawn::StochasticCommunicationModel::transmission_range | ( | void | ) | const throw () [virtual] |
| virtual bool shawn::StochasticCommunicationModel::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::StochasticCommunicationModel::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::StochasticCommunicationModel::exists_communication_upper_bound | ( | void | ) | const throw () [virtual] |
returns whether communication_upper_bound() returns a useful value
Implements shawn::CommunicationModel.
| virtual double shawn::StochasticCommunicationModel::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::StochasticCommunicationModel::is_status_available_on_construction | ( | void | ) | const throw () [virtual] |
Implements shawn::CommunicationModel.
1.5.6