IBR-DTNSuite
0.8
|
This class keeps track of the predictablities to see a specific EID. More...
#include <ProphetRoutingExtension.h>
Public Member Functions | |
virtual size_t | getIdentifier () const |
virtual size_t | getLength () const |
virtual std::ostream & | serialize (std::ostream &stream) const |
virtual std::istream & | deserialize (std::istream &stream) |
Static Public Attributes | |
static const size_t | identifier = NodeHandshakeItem::DELIVERY_PREDICTABILITY_MAP |
Friends | |
std::ostream & | operator<< (ostream &, const DeliveryPredictabilityMap &) |
This class keeps track of the predictablities to see a specific EID.
This class can be used as a map from EID to float. Also, it can be serialized as a NodeHandshakeItem to be exchanged with neighbors.
Definition at line 38 of file ProphetRoutingExtension.h.
std::istream & dtn::routing::ProphetRoutingExtension::DeliveryPredictabilityMap::deserialize | ( | std::istream & | stream | ) | [virtual] |
Implements dtn::routing::NodeHandshakeItem.
Definition at line 577 of file ProphetRoutingExtension.cpp.
References IBRCOMMON_LOGGER_DEBUG, and IBRCOMMON_LOGGER_ENDL.
virtual size_t dtn::routing::ProphetRoutingExtension::DeliveryPredictabilityMap::getIdentifier | ( | ) | const [virtual] |
Implements dtn::routing::NodeHandshakeItem.
size_t dtn::routing::ProphetRoutingExtension::DeliveryPredictabilityMap::getLength | ( | ) | const [virtual] |
Implements dtn::routing::NodeHandshakeItem.
Definition at line 535 of file ProphetRoutingExtension.cpp.
References dtn::data::SDNV::getLength().
std::ostream & dtn::routing::ProphetRoutingExtension::DeliveryPredictabilityMap::serialize | ( | std::ostream & | stream | ) | const [virtual] |
Implements dtn::routing::NodeHandshakeItem.
Definition at line 556 of file ProphetRoutingExtension.cpp.
References IBRCOMMON_LOGGER_DEBUG, and IBRCOMMON_LOGGER_ENDL.
std::ostream& operator<< | ( | ostream & | , |
const DeliveryPredictabilityMap & | |||
) | [friend] |
const size_t dtn::routing::ProphetRoutingExtension::DeliveryPredictabilityMap::identifier = NodeHandshakeItem::DELIVERY_PREDICTABILITY_MAP [static] |
Definition at line 47 of file ProphetRoutingExtension.h.
Referenced by dtn::routing::ProphetRoutingExtension::requestHandshake(), and dtn::routing::ProphetRoutingExtension::responseHandshake().