The all-seeing Oracle has knowledge of Prophet parameters, Prophet Bundle stats, Prophet's list of routes, and access to the Bundle core. More...
#include <Oracle.h>
Public Member Functions | |
virtual | ~Oracle () |
virtual const ProphetParams * | params () const =0 |
virtual Stats * | stats ()=0 |
virtual Table * | nodes ()=0 |
virtual AckList * | acks ()=0 |
virtual BundleCore * | core ()=0 |
virtual void | ack (const prophet::Bundle *b) |
The all-seeing Oracle has knowledge of Prophet parameters, Prophet Bundle stats, Prophet's list of routes, and access to the Bundle core.
Definition at line 35 of file Oracle.h.
virtual void prophet::Oracle::ack | ( | const prophet::Bundle * | b | ) | [inline, virtual] |
Reimplemented in prophet::Controller.
Definition at line 45 of file Oracle.h.
References acks(), core(), prophet::BundleCore::drop_bundle(), prophet::Stats::drop_bundle(), prophet::AckList::insert(), and stats().
Referenced by prophet::TLVCreator::response().
virtual AckList* prophet::Oracle::acks | ( | ) | [pure virtual] |
Implemented in prophet::Controller.
Referenced by ack(), prophet::TLVCreator::offer(), and prophet::TLVCreator::response().
virtual BundleCore* prophet::Oracle::core | ( | ) | [pure virtual] |
Implemented in prophet::Controller.
Referenced by ack(), prophet::Encounter::Encounter(), prophet::Encounter::handle_bundle_received(), prophet::Encounter::handle_hello_tlv(), prophet::Encounter::handle_response_tlv(), prophet::Encounter::handle_rib_tlv(), prophet::Encounter::handle_ribd_tlv(), prophet::Encounter::handle_timeout(), prophet::Encounter::hello_interval_changed(), prophet::TLVCreator::offer(), prophet::Encounter::receive_tlv(), prophet::TLVCreator::response(), prophet::TLVCreator::rib(), prophet::Encounter::send_dictionary_rib(), prophet::Encounter::send_hello(), prophet::Encounter::send_offer(), prophet::Encounter::send_response(), and prophet::Encounter::send_tlv().
virtual Table* prophet::Oracle::nodes | ( | ) | [pure virtual] |
Implemented in prophet::Controller.
Referenced by prophet::Encounter::handle_rib_tlv(), prophet::TLVCreator::offer(), prophet::TLVCreator::rib(), and prophet::Encounter::send_dictionary_rib().
virtual const ProphetParams* prophet::Oracle::params | ( | ) | const [pure virtual] |
Implemented in prophet::Controller.
Referenced by prophet::Encounter::handle_hello_tlv(), prophet::Encounter::handle_ribd_tlv(), prophet::Encounter::handle_timeout(), prophet::Encounter::hello_interval_changed(), prophet::TLVCreator::offer(), prophet::Encounter::send_dictionary_rib(), prophet::Encounter::send_hello(), and prophet::Encounter::send_tlv().
virtual Stats* prophet::Oracle::stats | ( | ) | [pure virtual] |
Implemented in prophet::Controller.
Referenced by ack(), and prophet::TLVCreator::offer().