|
Public Types |
| enum | fwd_strategy_t {
GRTR,
GTMX,
GRTR_PLUS,
GTMX_PLUS,
GRTR_SORT,
GRTR_MAX
} |
| enum | q_strategy_t {
FIFO,
MOFO,
MOPR,
LINEAR_MOPR,
SHLI,
LEPR
} |
| enum | header_result_t {
NoSuccessAck = 0x1,
AckAll = 0x2,
Success = 0x3,
Failure = 0x4,
ReturnReceipt = 0x5
} |
| enum | hello_hf_t { SYN = 0x1,
SYNACK = 0x2,
ACK = 0x3,
RSTACK = 0x4
} |
| enum | rib_header_flag_t { RELAY_NODE = 1 << 0,
CUSTODY_NODE = 1 << 1,
INTERNET_GW_NODE = 1 << 2
} |
| enum | rib_entry_flag_t { RELAY_NODE = 1 << 0,
CUSTODY_NODE = 1 << 1,
INTERNET_GW_NODE = 1 << 2
} |
| enum | bundle_offer_flags_t { CUSTODY_OFFERED = 1 << 0,
PROPHET_ACK = 1 << 7
} |
| enum | bundle_response_flags_t { CUSTODY_ACCEPTED = 1 << 0,
BUNDLE_ACCEPTED = 1 << 1
} |
Public Member Functions |
| | Prophet () |
| double | delivery_predictability (double previous) |
| | previous represents P_(A,B)_old return value is P_(A,B)
|
| double | age (double previous, u_int time_units) |
| | previous represents P_(A,B)_old return value is P_(A,B)
|
| double | transitivity (double previous, double ab, double bc) |
| | previous represents P_(A,B)_old return value is P_(A,B)
|
| double | favorability (double previous, double prob) |
| | previous represents FAV_old prob represents P_(A,B) return value is FAV_new
|
| double | encounter () |
| double | beta () |
| double | gamma () |
| fwd_strategy_t | fwd_strategy () |
| q_strategy_t | q_strategy () |
| bool | encounter (double d) |
| bool | beta (double d) |
| bool | gamma (double d) |
| void | fwd_strategy (fwd_strategy_t f) |
| void | q_strategy (q_strategy_t q) |
Public Attributes |
| dtn::Prophet::ProphetHeader | packed |
| dtn::Prophet::HelloTLVHeader | packed |
| dtn::Prophet::ErrorTLVHeader | packed |
| dtn::Prophet::RIBDTLVHeader | packed |
| dtn::Prophet::RoutingAddressString | packed |
| dtn::Prophet::RIBTLVHeader | packed |
| dtn::Prophet::RIBEntry | packed |
| dtn::Prophet::BundleOfferResponseHeader | packed |
| dtn::Prophet::BundleOfferResponseEntry | packed |
Static Public Attributes |
| static const double | DEFAULT_P_ENCOUNTER = 0.75 |
| static const double | DEFAULT_PROPHET_BETA = 0.25 |
| static const double | DEFAULT_PROPHET_GAMMA = 0.25 |
| static const u_int8_t | PROPHET_VERSION = 0x01 |
| | Current version of the protocol.
|
Protected Attributes |
| double | encounter_ |
| double | beta_ |
| double | gamma_ |
| fwd_strategy_t | f_strategy_ |
| q_strategy_t | q_strategy_ |
Classes |
| struct | BundleOfferResponseEntry |
| struct | BundleOfferResponseHeader |
| struct | ErrorTLVHeader |
| struct | HelloTLVHeader |
| struct | ProphetHeader |
| struct | RIBDTLVHeader |
| struct | RIBEntry |
| struct | RIBTLVHeader |
| struct | RoutingAddressString |