lobot::MetlogLoader Class Reference

A class for loading and parsing Robolocust metrics logs in a separate thread. More...

#include <Robots/LoBot/metlog/LoMetlogLoader.H>

Inheritance diagram for lobot::MetlogLoader:
Inheritance graph
[legend]
Collaboration diagram for lobot::MetlogLoader:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static MetlogLoadercreate (const MetlogList &, Dataset *)

Detailed Description

A class for loading and parsing Robolocust metrics logs in a separate thread.

This class implements an interface for loading and parsing Robolocust metrics logs. Since 25 (or more) logs comprise one trajectory-related dataset for measuring the performance of an LGMD-based obstacle avoidance algorithm, this class is designed to load logs in a separate thread. Thus, the lomet program's main thread can launch multiple threads to load all the datasets in parallel.

Definition at line 78 of file LoMetlogLoader.H.


Member Function Documentation

MetlogLoader * lobot::MetlogLoader::create ( const MetlogList L,
Dataset D 
) [static]

This class uses the "named constructor" idiom to ensure that clients not create instances of it on the stack. This method is the named constructor (aka factory method).

When clients create metlog loaders, they should supply a list of logs that need to be loaded. Upon creation, loaders will automatically launch a new thread to perform the loading and parsing operations and will use this list to figure out which log is next in line for processing.

Additionally, the loader object also requires a Dataset instance to which it will add each parsed metlog.

NOTE: This named constructor is the only publically accessible thing in this class. Once a loader is created, the rest of its work proceeds automatically. Clients can either continue on with their business or choose to wait for all the loader threads to complete.

Definition at line 79 of file LoMetlogLoader.C.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:44:29 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3