IBR-DTNSuite  0.8
dtn::core::WallClock Class Reference

#include <WallClock.h>

Inheritance diagram for dtn::core::WallClock:
Collaboration diagram for dtn::core::WallClock:

List of all members.

Public Member Functions

 WallClock (size_t frequency)
virtual ~WallClock ()
void sync ()
virtual size_t timeout (ibrcommon::Timer *)
virtual const std::string getName () const

Protected Member Functions

virtual void componentUp ()
virtual void componentDown ()

Detailed Description

Definition at line 20 of file WallClock.h.


Constructor & Destructor Documentation

dtn::core::WallClock::WallClock ( size_t  frequency)

Constructor for the global Clock

Parameters:
frequencySpecify the frequency for the clock tick in seconds.

Definition at line 17 of file WallClock.cpp.

Definition at line 21 of file WallClock.cpp.


Member Function Documentation

void dtn::core::WallClock::componentDown ( ) [protected, virtual]

Implements dtn::daemon::IntegratedComponent.

Definition at line 47 of file WallClock.cpp.

References ibrcommon::Timer::pause().

Here is the call graph for this function:

void dtn::core::WallClock::componentUp ( ) [protected, virtual]

Implements dtn::daemon::IntegratedComponent.

Definition at line 35 of file WallClock.cpp.

References ibrcommon::JoinableThread::isRunning(), ibrcommon::Timer::reset(), and ibrcommon::JoinableThread::start().

Here is the call graph for this function:

const std::string dtn::core::WallClock::getName ( ) const [virtual]
See also:
Component::getName()

Implements dtn::daemon::Component.

Definition at line 75 of file WallClock.cpp.

Blocks until the next clock tick happens.

Definition at line 25 of file WallClock.cpp.

References ibrcommon::Conditional::wait().

Here is the call graph for this function:

timer callback method

See also:
TimerCallback::timeout()

Implements ibrcommon::TimerCallback.

Definition at line 52 of file WallClock.cpp.

References dtn::utils::Clock::getTime(), dtn::utils::Clock::getUnixTimestamp(), dtn::core::TimeEvent::raise(), ibrcommon::Conditional::signal(), and dtn::core::TIME_SECOND_TICK.

Here is the call graph for this function:


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