IBR-DTNSuite  0.12
dtn::daemon::Configuration::TimeSync Class Reference

#include <Configuration.h>

Inheritance diagram for dtn::daemon::Configuration::TimeSync:
Inheritance graph
Collaboration diagram for dtn::daemon::Configuration::TimeSync:
Collaboration graph

Public Member Functions

bool hasReference () const
 
bool doSync () const
 
bool sendDiscoveryBeacons () const
 
float getSigma () const
 
float getPsi () const
 
float getSyncLevel () const
 

Protected Member Functions

 TimeSync ()
 
virtual ~TimeSync ()
 
void load (const ibrcommon::ConfigFile &conf)
 

Protected Attributes

bool _reference
 
bool _sync
 
bool _discovery
 
float _sigma
 
float _psi
 
float _sync_level
 

Friends

class Configuration
 

Detailed Description

Definition at line 522 of file Configuration.h.

Constructor & Destructor Documentation

dtn::daemon::Configuration::TimeSync::TimeSync ( )
protected

Definition at line 106 of file Configuration.cpp.

dtn::daemon::Configuration::TimeSync::~TimeSync ( )
protectedvirtual

Definition at line 131 of file Configuration.cpp.

Member Function Documentation

bool dtn::daemon::Configuration::TimeSync::doSync ( ) const

Definition at line 1293 of file Configuration.cpp.

Referenced by dtn::daemon::DTNTPWorker::DTNTPWorker().

float dtn::daemon::Configuration::TimeSync::getPsi ( ) const

Definition at line 1308 of file Configuration.cpp.

Referenced by dtn::daemon::DTNTPWorker::DTNTPWorker().

float dtn::daemon::Configuration::TimeSync::getSigma ( ) const

Definition at line 1303 of file Configuration.cpp.

Referenced by dtn::daemon::DTNTPWorker::DTNTPWorker().

float dtn::daemon::Configuration::TimeSync::getSyncLevel ( ) const

Definition at line 1313 of file Configuration.cpp.

Referenced by dtn::daemon::DTNTPWorker::DTNTPWorker().

bool dtn::daemon::Configuration::TimeSync::hasReference ( ) const

Definition at line 1288 of file Configuration.cpp.

Referenced by dtn::daemon::DTNTPWorker::DTNTPWorker().

void dtn::daemon::Configuration::TimeSync::load ( const ibrcommon::ConfigFile conf)
protectedvirtual

Implements dtn::daemon::Configuration::Extension.

Definition at line 426 of file Configuration.cpp.

References ibrcommon::ConfigFile::read(), and dtn::utils::Clock::setModifyClock().

Referenced by dtn::daemon::Configuration::load().

Here is the call graph for this function:

bool dtn::daemon::Configuration::TimeSync::sendDiscoveryBeacons ( ) const

Definition at line 1298 of file Configuration.cpp.

Referenced by dtn::daemon::DTNTPWorker::DTNTPWorker().

Friends And Related Function Documentation

friend class Configuration
friend

Definition at line 524 of file Configuration.h.

Member Data Documentation

bool dtn::daemon::Configuration::TimeSync::_discovery
protected

Definition at line 532 of file Configuration.h.

float dtn::daemon::Configuration::TimeSync::_psi
protected

Definition at line 534 of file Configuration.h.

bool dtn::daemon::Configuration::TimeSync::_reference
protected

Definition at line 530 of file Configuration.h.

float dtn::daemon::Configuration::TimeSync::_sigma
protected

Definition at line 533 of file Configuration.h.

bool dtn::daemon::Configuration::TimeSync::_sync
protected

Definition at line 531 of file Configuration.h.

float dtn::daemon::Configuration::TimeSync::_sync_level
protected

Definition at line 535 of file Configuration.h.


The documentation for this class was generated from the following files: