IBR-DTNSuite  0.12
dtn::daemon::DTNTPWorker::TimeSyncState Class Reference

#include <DTNTPWorker.h>

Collaboration diagram for dtn::daemon::DTNTPWorker::TimeSyncState:
Collaboration graph

Public Member Functions

 TimeSyncState ()
 
virtual ~TimeSyncState ()
 

Static Public Member Functions

static double toDouble (const timespec &val)
 

Public Attributes

float sync_threshold
 
double base_rating
 
double psi
 
double sigma
 
struct timespec last_sync_time
 
bool last_sync_set
 

Detailed Description

Definition at line 99 of file DTNTPWorker.h.

Constructor & Destructor Documentation

dtn::daemon::DTNTPWorker::TimeSyncState::TimeSyncState ( )

Definition at line 52 of file DTNTPWorker.cpp.

References last_sync_time.

dtn::daemon::DTNTPWorker::TimeSyncState::~TimeSyncState ( )
virtual

Definition at line 60 of file DTNTPWorker.cpp.

Member Function Documentation

double dtn::daemon::DTNTPWorker::TimeSyncState::toDouble ( const timespec &  val)
static

Get the time of the last sync as double

Definition at line 64 of file DTNTPWorker.cpp.

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

Member Data Documentation

double dtn::daemon::DTNTPWorker::TimeSyncState::base_rating
bool dtn::daemon::DTNTPWorker::TimeSyncState::last_sync_set

Definition at line 120 of file DTNTPWorker.h.

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

struct timespec dtn::daemon::DTNTPWorker::TimeSyncState::last_sync_time

Definition at line 117 of file DTNTPWorker.h.

Referenced by dtn::daemon::DTNTPWorker::raiseEvent(), and TimeSyncState().

double dtn::daemon::DTNTPWorker::TimeSyncState::psi

Definition at line 111 of file DTNTPWorker.h.

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

double dtn::daemon::DTNTPWorker::TimeSyncState::sigma
float dtn::daemon::DTNTPWorker::TimeSyncState::sync_threshold

Definition at line 105 of file DTNTPWorker.h.

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


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