prophet::AlarmImpl Class Reference

Mock object for use in testing. More...

#include <BundleCore.h>

Inheritance diagram for prophet::AlarmImpl:
prophet::Alarm

List of all members.

Public Member Functions

 AlarmImpl (ExpirationHandler *h)
virtual ~AlarmImpl ()
void schedule (u_int)
 How many milliseconds in the future to schedule this alarm.
u_int time_remaining () const
 Milliseconds remaining until alarm expires.
void cancel ()
 Disable the alarm; do not execute the handler.
bool pending () const
 Accessors.
bool cancelled () const
 Accessors.

Public Attributes

bool pending_
bool cancelled_

Detailed Description

Mock object for use in testing.

Definition at line 203 of file BundleCore.h.


Constructor & Destructor Documentation

prophet::AlarmImpl::AlarmImpl ( ExpirationHandler h  )  [inline]

Definition at line 206 of file BundleCore.h.

virtual prophet::AlarmImpl::~AlarmImpl (  )  [inline, virtual]

Definition at line 209 of file BundleCore.h.


Member Function Documentation

void prophet::AlarmImpl::cancel (  )  [inline, virtual]

Disable the alarm; do not execute the handler.

It is expected that the host's timer implementation will cleanup a cancelled Alarm's memory ...

Implements prophet::Alarm.

Definition at line 213 of file BundleCore.h.

bool prophet::AlarmImpl::cancelled (  )  const [inline, virtual]

Accessors.

Implements prophet::Alarm.

Definition at line 215 of file BundleCore.h.

bool prophet::AlarmImpl::pending (  )  const [inline, virtual]

Accessors.

Implements prophet::Alarm.

Definition at line 214 of file BundleCore.h.

void prophet::AlarmImpl::schedule ( u_int  milliseconds  )  [inline, virtual]

How many milliseconds in the future to schedule this alarm.

Implements prophet::Alarm.

Definition at line 211 of file BundleCore.h.

Referenced by prophet::BundleCoreTestImpl::create_alarm().

u_int prophet::AlarmImpl::time_remaining (  )  const [inline, virtual]

Milliseconds remaining until alarm expires.

Implements prophet::Alarm.

Definition at line 212 of file BundleCore.h.


Member Data Documentation

Definition at line 216 of file BundleCore.h.

Definition at line 216 of file BundleCore.h.


The documentation for this class was generated from the following file:
Generated on Sun Nov 21 13:21:29 2010 for DTN Reference Implementation by  doxygen 1.6.3