Fawkes API  Fawkes Development Version
BBLogReplayBlockedTimingThread Class Reference

BlackBoard log replay blocked timing thread. More...

#include "logreplay_bt_thread.h"

Inheritance diagram for BBLogReplayBlockedTimingThread:

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

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:
hookmain loop hook to register for
logfile_namefilename of the log to be replayed
logdirdirectory containing the logfile
scenarioID of the log scenario
grace_periodtime in seconds that desired offset and loop offset may diverge to still write the new data
loop_replayspecifies if the replay should be looped
non_blockingdo 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: