ReplayFeatureContainer Class Reference

#include <ReplayFeatureContainer.h>

Inheritance diagram for ReplayFeatureContainer:

FeatureContainer List of all members.

Public Member Functions

 ReplayFeatureContainer (ConfigReader *config)
virtual ~ReplayFeatureContainer ()
virtual void nextSample ()
virtual const featurevectorgetSampleVector () const
void resetFile ()
long getFilesize ()
long getCurrentPos ()

Related Functions

(Note that these are not member functions.)

string serializeFeatureVector (const featurevector &samples)
size_t unserializeFeatureVector (const featurevector &features, featurevector &samples, char *data)

Detailed Description

Todo:
documentation


Constructor & Destructor Documentation

ReplayFeatureContainer::ReplayFeatureContainer ConfigReader config  ) 
 

Constructor

Replays any transactions stored in the logfile from a LoggingFeatureContainer.

Parameters:
config A ConfigReader instance

ReplayFeatureContainer::~ReplayFeatureContainer  )  [virtual]
 

Destructor


Member Function Documentation

long ReplayFeatureContainer::getCurrentPos  ) 
 

Get log file handle position

long ReplayFeatureContainer::getFilesize  ) 
 

Get log file size

const featurevector * ReplayFeatureContainer::getSampleVector  )  const [virtual]
 

Get sample vector

A sample vector contains pointers to implementations of the specific features, with values representing the current sensor values. For performance reasons (since this method can be called by multiple callers in the same time step for retrieving the current feature values), this method returns a pointer to a globally allocated object. Callers must not free or modify either the returned vector reference or the feature implementations contained therein.

Returns:
A reference to a globally allocated vector containing features that represent the current sensor values.

Reimplemented from FeatureContainer.

void ReplayFeatureContainer::nextSample  )  [virtual]
 

Todo:
care about init lines !

Reimplemented from FeatureContainer.

void ReplayFeatureContainer::resetFile  ) 
 

Reset log file handle position


Friends And Related Function Documentation

string serializeFeatureVector const featurevector samples  )  [related]
 

These are just two helper functions for serializing and deserializing a whole feature vector just returns, for a given feature vector, the serialized, correctly escaped form with ';' as delimiter

size_t unserializeFeatureVector const featurevector features,
featurevector samples,
char *  data
[related]
 

parameters: features must contain all _features_ that will be unserialized from data, while samples must be empty as this method will fill it with newly created Feature objects of the correct type (by cloning them from the objects in features) beware that data will be changed by this method ! returns the number of characters processed from dat


The documentation for this class was generated from the following files:
Generated on Mon Jun 5 10:20:50 2006 for Intelligence.kdevelop by  doxygen 1.4.6