Public Member Functions | Protected Member Functions

BBLogReplayThread Class Reference

BlackBoard log Replay thread. More...

#include "logreplay_thread.h"

Inheritance diagram for BBLogReplayThread:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BBLogReplayThread (const char *logfile_name, const char *logdir, const char *scenario, float grace_period, bool loop_replay, bool non_blocking=false, const char *thread_name="BBLogReplayThread", fawkes::Thread::OpMode th_opmode=Thread::OPMODE_CONTINUOUS)
 Constructor.
virtual ~BBLogReplayThread ()
 Destructor.
virtual void init ()
virtual void finalize ()
virtual void loop ()
virtual void once ()

Protected Member Functions

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

Detailed Description

BlackBoard log Replay thread.

Writes the data of the logfile into a blackboard interface, considering the time-step differences between the data.

Author:
Masrur Doostdar
Tim Niemueller

Definition at line 44 of file logreplay_thread.h.


Constructor & Destructor Documentation

BBLogReplayThread::BBLogReplayThread ( const char *  logfile_name,
const char *  logdir,
const char *  scenario,
float  grace_period,
bool  loop_replay,
bool  non_blocking = false,
const char *  thread_name = "BBLogReplayThread",
fawkes::Thread::OpMode  th_opmode = Thread::OPMODE_CONTINUOUS 
)

Constructor.

Parameters:
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.
thread_name initial thread name
th_opmode thread operation mode

Definition at line 73 of file logreplay_thread.cpp.

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

BBLogReplayThread::~BBLogReplayThread (  )  [virtual]

Destructor.

Definition at line 102 of file logreplay_thread.cpp.


Member Function Documentation

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

Stub to see name in backtrace for easier debugging.

See also:
Thread::run()

Definition at line 68 of file logreplay_thread.h.


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