IBR-DTNSuite  0.10
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 sendDiscoveryAnnouncements () 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 515 of file Configuration.h.

Constructor & Destructor Documentation

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

Definition at line 109 of file Configuration.cpp.

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

Definition at line 128 of file Configuration.cpp.

Member Function Documentation

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

Definition at line 1160 of file Configuration.cpp.

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

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

Definition at line 1175 of file Configuration.cpp.

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

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

Definition at line 1170 of file Configuration.cpp.

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

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

Definition at line 1180 of file Configuration.cpp.

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

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

Definition at line 1155 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 390 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::sendDiscoveryAnnouncements ( ) const

Definition at line 1165 of file Configuration.cpp.

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

Friends And Related Function Documentation

friend class Configuration
friend

Definition at line 517 of file Configuration.h.

Member Data Documentation

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

Definition at line 525 of file Configuration.h.

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

Definition at line 527 of file Configuration.h.

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

Definition at line 523 of file Configuration.h.

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

Definition at line 526 of file Configuration.h.

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

Definition at line 524 of file Configuration.h.

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

Definition at line 528 of file Configuration.h.


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