BBLogReplayBlockedTimingThread Class Reference

BlackBoard log replay blocked timing thread. More...

#include <logreplay_bt_thread.h>

Inheritance diagram for BBLogReplayBlockedTimingThread:

[legend]
List of all members.

Public Member Functions

 BBLogReplayBlockedTimingThread (fawkes::BlockedTimingAspect::WakeupHook hook, const char *logfile_name, const char *logdir, const char *scenario, float grace_period, bool loop_replay, bool non_blocking)
 Constructor.

Protected Member Functions

virtual void run ()
 Stub to see name in backtrace for easier debugging.

Detailed Description

BlackBoard log replay blocked timing thread.

This thread basically does the same task as the BBLogReplayThread, with the difference that this thread operates in blocked timing mode and integrates into the Fawkes main loop. It will replay one data set per loop and will block the loop until the data is ready. This is most useful to replay sensor logs of sensors, which are integrated into the main loop and thus influence timing also on the real data system.

Author:
Masrur Doostdar

Tim Niemueller

Definition at line 31 of file logreplay_bt_thread.h.


Constructor & Destructor Documentation

BBLogReplayBlockedTimingThread::BBLogReplayBlockedTimingThread ( fawkes::BlockedTimingAspect::WakeupHook  hook,
const char *  logfile_name,
const char *  logdir,
const char *  scenario,
float  grace_period,
bool  loop_replay,
bool  non_blocking 
)

Constructor.

Parameters:
hook main loop hook to register for
logfile_name filename of the log to be replayed
logdir directory containing the logfile
scenario ID of the log scenario
grace_period time in seconds that desired offset and loop offset may diverge to still write the new data
loop_replay specifies if the replay should be looped
non_blocking do not block the main loop if not enough time has elapsed to replay new data but just wait for the next cycle. This is ignored in continuous thread mode as it could cause busy waiting.

Definition at line 52 of file logreplay_bt_thread.cpp.

References fawkes::Thread::set_name(), and fawkes::Thread::set_prepfin_conc_loop().


Member Function Documentation

virtual void BBLogReplayBlockedTimingThread::run (  )  [inline, protected, virtual]

Stub to see name in backtrace for easier debugging.

See also:
Thread::run()

Reimplemented from BBLogReplayThread.

Definition at line 45 of file logreplay_bt_thread.h.


The documentation for this class was generated from the following files:
Generated on Tue Feb 22 13:32:33 2011 for Fawkes API by  doxygen 1.4.7