prophet::AlarmImpl Class Reference

#include <BundleCore.h>

Inheritance diagram for prophet::AlarmImpl:

prophet::Alarm

List of all members.


Detailed Description

Mock object for use in testing.

Definition at line 202 of file BundleCore.h.


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_

Constructor & Destructor Documentation

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

Definition at line 205 of file BundleCore.h.

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

Definition at line 208 of file BundleCore.h.


Member Function Documentation

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 210 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 211 of file BundleCore.h.

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 212 of file BundleCore.h.

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

Accessors.

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 214 of file BundleCore.h.


Member Data Documentation

Definition at line 215 of file BundleCore.h.

Definition at line 215 of file BundleCore.h.


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

Generated on Mon Jul 21 14:12:22 2008 for DTN Reference Implementation by  doxygen 1.5.6