Facade interface between Prophet router and host implmentation's Bundle representation. More...
#include <Bundle.h>
Public Member Functions | |
virtual | ~Bundle () |
Destructor. | |
virtual const std::string & | destination_id () const =0 |
Accessors. | |
virtual const std::string & | source_id () const =0 |
Accessors. | |
virtual u_int32_t | creation_ts () const =0 |
Accessors. | |
virtual u_int32_t | sequence_num () const =0 |
Accessors. | |
virtual u_int32_t | expiration_ts () const =0 |
Accessors. | |
virtual u_int | size () const =0 |
Accessors. | |
virtual u_int | num_forward () const =0 |
Accessors. | |
virtual bool | custody_requested () const =0 |
Accessors. | |
virtual bool | operator< (const Bundle &a) const |
Operators. | |
virtual bool | operator> (const Bundle &a) const |
Operators. | |
virtual bool | operator== (const Bundle &a) const |
Operators. |
Facade interface between Prophet router and host implmentation's Bundle representation.
Rather than duplicate the extensive Bundle API, this facade is only interested in a subset of the metadata.
Definition at line 31 of file prophet/Bundle.h.
virtual prophet::Bundle::~Bundle | ( | ) | [inline, virtual] |
Destructor.
Definition at line 37 of file prophet/Bundle.h.
virtual u_int32_t prophet::Bundle::creation_ts | ( | ) | const [pure virtual] |
Accessors.
Implemented in prophet::BundleImpl, and dtn::ProphetBundle.
Referenced by prophet::BundleOffer::add_bundle(), prophet::BundleOfferList::add_offer(), prophet::BundleCoreTestImpl::drop_bundle(), dtn::ProphetBundleList::find_ref(), prophet::Encounter::handle_bundle_received(), prophet::QueueCompSHLI::operator()(), prophet::QueueComp::operator()(), prophet::FwdDeciderGTMXPLUS::operator()(), prophet::FwdDeciderGRTRPLUS::operator()(), prophet::FwdDeciderGTMX::operator()(), prophet::FwdDeciderGRTR::operator()(), and prophet::BundleCoreTestImpl::read_bundle().
virtual bool prophet::Bundle::custody_requested | ( | ) | const [pure virtual] |
Accessors.
Implemented in prophet::BundleImpl, and dtn::ProphetBundle.
Referenced by prophet::BundleOfferList::add_offer().
virtual const std::string& prophet::Bundle::destination_id | ( | ) | const [pure virtual] |
Accessors.
Implemented in prophet::BundleImpl, and dtn::ProphetBundle.
Referenced by prophet::Controller::accept_bundle(), prophet::BundleOffer::add_bundle(), prophet::BundleCoreTestImpl::drop_bundle(), dtn::ProphetBundleList::find_ref(), prophet::Encounter::handle_bundle_received(), prophet::Controller::handle_bundle_received(), prophet::Controller::is_prophet_control(), prophet::FwdDeciderGTMXPLUS::operator()(), prophet::FwdDeciderGRTRPLUS::operator()(), prophet::FwdDeciderGTMX::operator()(), prophet::FwdDeciderGRTR::operator()(), operator<(), operator==(), operator>(), prophet::Table::p_value(), prophet::BundleCoreTestImpl::read_bundle(), and dtn::ProphetBundleCore::send_bundle().
virtual u_int32_t prophet::Bundle::expiration_ts | ( | ) | const [pure virtual] |
Accessors.
Implemented in prophet::BundleImpl, and dtn::ProphetBundle.
Referenced by prophet::QueueCompSHLI::operator()().
virtual u_int prophet::Bundle::num_forward | ( | ) | const [pure virtual] |
Accessors.
Implemented in prophet::BundleImpl, and dtn::ProphetBundle.
Referenced by prophet::Repository::evict(), prophet::QueueCompMOFO::operator()(), prophet::FwdDeciderGTMXPLUS::operator()(), and prophet::FwdDeciderGTMX::operator()().
Operators.
Definition at line 51 of file prophet/Bundle.h.
References destination_id(), and sequence_num().
Operators.
Definition at line 63 of file prophet/Bundle.h.
References destination_id(), and sequence_num().
Operators.
Definition at line 57 of file prophet/Bundle.h.
References destination_id(), and sequence_num().
virtual u_int32_t prophet::Bundle::sequence_num | ( | ) | const [pure virtual] |
Accessors.
Implemented in prophet::BundleImpl, and dtn::ProphetBundle.
Referenced by prophet::Controller::accept_bundle(), prophet::Controller::ack(), prophet::BundleOffer::add_bundle(), prophet::BundleOfferList::add_offer(), prophet::Repository::change_priority(), prophet::Repository::del(), prophet::Stats::drop_bundle(), dtn::ProphetBundleCore::drop_bundle(), prophet::BundleCoreTestImpl::drop_bundle(), prophet::Stats::find(), dtn::ProphetBundleList::find_ref(), prophet::Encounter::handle_bundle_received(), prophet::Controller::handle_bundle_received(), prophet::QueueCompLEPR::operator()(), prophet::QueueCompSHLI::operator()(), prophet::QueueCompLMOPR::operator()(), prophet::QueueCompMOPR::operator()(), prophet::QueueCompMOFO::operator()(), prophet::QueueComp::operator()(), prophet::FwdDeciderGTMXPLUS::operator()(), prophet::FwdDeciderGRTRPLUS::operator()(), prophet::FwdDeciderGTMX::operator()(), prophet::FwdDeciderGRTR::operator()(), operator<(), operator==(), operator>(), dtn::ProphetBundleCore::read_bundle(), prophet::BundleCoreTestImpl::read_bundle(), dtn::ProphetBundleCore::send_bundle(), and dtn::ProphetBundleCore::write_bundle().
virtual u_int prophet::Bundle::size | ( | ) | const [pure virtual] |
Accessors.
Implemented in prophet::BundleImpl, and dtn::ProphetBundle.
Referenced by prophet::Repository::add(), prophet::Repository::del(), prophet::Repository::evict(), and prophet::Controller::handle_bundle_received().
virtual const std::string& prophet::Bundle::source_id | ( | ) | const [pure virtual] |
Accessors.
Implemented in prophet::BundleImpl, and dtn::ProphetBundle.
Referenced by prophet::Controller::accept_bundle(), and prophet::Controller::handle_bundle_received().