IBR-DTNSuite
0.10
|
#include <MetaBundle.h>
Public Member Functions | |
MetaBundle () | |
MetaBundle (const dtn::data::Bundle &b) | |
virtual | ~MetaBundle () |
int | getPriority () const |
bool | get (dtn::data::PrimaryBlock::FLAGS flag) const |
![]() | |
BundleID (const dtn::data::EID source=dtn::data::EID(), const dtn::data::Timestamp ×tamp=0, const dtn::data::Number &sequencenumber=0, const bool fragment=false, const dtn::data::Number &offset=0) | |
BundleID (const dtn::data::PrimaryBlock &b) | |
virtual | ~BundleID () |
bool | operator!= (const BundleID &other) const |
bool | operator== (const BundleID &other) const |
bool | operator< (const BundleID &other) const |
bool | operator> (const BundleID &other) const |
std::string | toString () const |
Static Public Member Functions | |
static MetaBundle | mockUp (const dtn::data::BundleID &id) |
Definition at line 35 of file MetaBundle.h.
dtn::data::MetaBundle::MetaBundle | ( | ) |
Definition at line 39 of file MetaBundle.cpp.
Referenced by mockUp().
dtn::data::MetaBundle::MetaBundle | ( | const dtn::data::Bundle & | b | ) |
read the hop limit
read the scheduling block
read the payload length
Definition at line 51 of file MetaBundle.cpp.
References expiretime, dtn::data::Bundle::find(), dtn::utils::Clock::getExpireTime(), dtn::data::ScopeControlHopLimitBlock::getHopsToLive(), dtn::data::PayloadBlock::getLength(), dtn::data::SchedulingBlock::getPriority(), hopcount, net_priority, and payloadlength.
|
virtual |
Definition at line 82 of file MetaBundle.cpp.
bool dtn::data::MetaBundle::get | ( | dtn::data::PrimaryBlock::FLAGS | flag | ) | const |
Definition at line 101 of file MetaBundle.cpp.
References procflags.
Referenced by dtn::storage::BundleStorage::acceptCustody(), dtn::api::Registration::delivered(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::routing::ProphetRoutingExtension::processHandshake(), dtn::core::StatusReportGenerator::raiseEvent(), dtn::core::BundleCore::raiseEvent(), dtn::routing::BaseRouter::raiseEvent(), dtn::storage::BundleStorage::rejectCustody(), dtn::routing::StaticRoutingExtension::run(), dtn::routing::FloodRoutingExtension::run(), dtn::routing::EpidemicRoutingExtension::run(), dtn::data::CustodySignalBlock::setMatch(), and dtn::core::FragmentManager::signal().
int dtn::data::MetaBundle::getPriority | ( | ) | const |
Definition at line 85 of file MetaBundle.cpp.
References dtn::data::PrimaryBlock::PRIORITY_BIT1, dtn::data::PrimaryBlock::PRIORITY_BIT2, and procflags.
Referenced by dtn::storage::MetaStorage::CMP_BUNDLE_PRIORITY::operator()().
|
static |
Creates a mock-up MetaBundle using a BundleID. Such object are incomplete and should only used in a limited fashion.
Definition at line 34 of file MetaBundle.cpp.
References MetaBundle().
Referenced by dtn::storage::SimpleBundleStorage::get(), dtn::data::BundleSet::has(), dtn::routing::AcknowledgementSet::has(), and dtn::storage::SimpleBundleStorage::remove().
Number dtn::data::MetaBundle::appdatalength |
Definition at line 50 of file MetaBundle.h.
Referenced by dtn::core::FragmentManager::componentRun(), dtn::data::DefaultDeserializer::operator>>(), dtn::api::EventConnection::raiseEvent(), and dtn::data::CustodySignalBlock::setMatch().
dtn::data::EID dtn::data::MetaBundle::custodian |
Definition at line 49 of file MetaBundle.h.
Referenced by dtn::storage::BundleStorage::acceptCustody(), dtn::data::DefaultDeserializer::operator>>(), and dtn::storage::BundleStorage::rejectCustody().
dtn::data::EID dtn::data::MetaBundle::destination |
Definition at line 47 of file MetaBundle.h.
Referenced by dtn::storage::MetaStorage::getDistinctDestinations(), dtn::routing::ProphetRoutingExtension::notify(), dtn::data::DefaultDeserializer::operator>>(), dtn::routing::NodeHandshakeExtension::processHandshake(), dtn::routing::ProphetRoutingExtension::processHandshake(), dtn::api::EventConnection::raiseEvent(), dtn::api::ApiServer::raiseEvent(), dtn::core::BundleCore::raiseEvent(), dtn::routing::StaticRoutingExtension::run(), dtn::routing::FloodRoutingExtension::run(), dtn::routing::EpidemicRoutingExtension::run(), dtn::routing::ProphetRoutingExtension::GRTR_Strategy::shallForward(), dtn::routing::ProphetRoutingExtension::GTMX_Strategy::shallForward(), dtn::core::FragmentManager::signal(), and dtn::api::Registration::underflow().
Number dtn::data::MetaBundle::expiretime |
Definition at line 52 of file MetaBundle.h.
Referenced by MetaBundle(), dtn::routing::operator<<(), dtn::routing::operator>>(), and dtn::data::DefaultDeserializer::operator>>().
Number dtn::data::MetaBundle::hopcount |
Definition at line 53 of file MetaBundle.h.
Referenced by MetaBundle(), dtn::data::DefaultDeserializer::operator>>(), dtn::routing::StaticRoutingExtension::run(), dtn::routing::FloodRoutingExtension::run(), and dtn::routing::EpidemicRoutingExtension::run().
Number dtn::data::MetaBundle::lifetime |
Definition at line 46 of file MetaBundle.h.
Referenced by dtn::storage::MemoryBundleStorage::get(), dtn::storage::SimpleBundleStorage::get(), dtn::routing::operator>>(), dtn::data::DefaultDeserializer::operator>>(), and dtn::api::EventConnection::raiseEvent().
Integer dtn::data::MetaBundle::net_priority |
Definition at line 55 of file MetaBundle.h.
Referenced by MetaBundle().
Number dtn::data::MetaBundle::payloadlength |
Definition at line 54 of file MetaBundle.h.
Referenced by dtn::core::FragmentManager::componentRun(), and MetaBundle().
Bitset<dtn::data::PrimaryBlock::FLAGS> dtn::data::MetaBundle::procflags |
Definition at line 51 of file MetaBundle.h.
Referenced by get(), getPriority(), dtn::routing::ProphetRoutingExtension::notify(), dtn::data::DefaultDeserializer::operator>>(), dtn::api::EventConnection::raiseEvent(), and dtn::core::BundleCore::raiseEvent().
dtn::data::DTNTime dtn::data::MetaBundle::received |
Definition at line 45 of file MetaBundle.h.
Referenced by dtn::data::DefaultDeserializer::operator>>().
dtn::data::EID dtn::data::MetaBundle::reportto |
Definition at line 48 of file MetaBundle.h.
Referenced by dtn::data::DefaultDeserializer::operator>>().