Helper struct to store the current connectivity settings between a pair (or set) of nodes. More...
#include <Connectivity.h>
Public Member Functions | |
ConnState () | |
Default constructor, also implicitly the default connectivity state. | |
ConnState (bool open, int bw, int latency) | |
Constructor with explicit settings. | |
bool | parse_time (const char *time_str, double *time) |
Utility function to parse a time specification. | |
bool | parse_options (int argc, const char **argv, const char **invalidp) |
Utility function to fill in the values from a set of options (e.g. | |
Public Attributes | |
bool | open_ |
u_int64_t | bw_ |
double | latency_ |
Helper struct to store the current connectivity settings between a pair (or set) of nodes.
Definition at line 34 of file Connectivity.h.
dtnsim::ConnState::ConnState | ( | ) | [inline] |
Default constructor, also implicitly the default connectivity state.
Definition at line 39 of file Connectivity.h.
dtnsim::ConnState::ConnState | ( | bool | open, | |
int | bw, | |||
int | latency | |||
) | [inline] |
Constructor with explicit settings.
Definition at line 44 of file Connectivity.h.
bool dtnsim::ConnState::parse_options | ( | int | argc, | |
const char ** | argv, | |||
const char ** | invalidp | |||
) |
Utility function to fill in the values from a set of options (e.g.
bw=10kbps, latency=10ms).
Definition at line 92 of file Connectivity.cc.
Referenced by dtnsim::ConnCommand::exec().
bool dtnsim::ConnState::parse_time | ( | const char * | time_str, | |
double * | time | |||
) |
Utility function to parse a time specification.
Definition at line 58 of file Connectivity.cc.
u_int64_t dtnsim::ConnState::bw_ |
Definition at line 59 of file Connectivity.h.
Referenced by dtnsim::SimConvergenceLayer::update_connectivity().
double dtnsim::ConnState::latency_ |
Definition at line 60 of file Connectivity.h.
Referenced by dtnsim::SimLink::start_next_bundle().
Definition at line 58 of file Connectivity.h.
Referenced by dtnsim::ConnCommand::exec(), dtnsim::SimConvergenceLayer::open_contact(), and dtnsim::SimConvergenceLayer::update_connectivity().