SystemCommandStringListFeatureProvider Class Reference

#include <SystemCommandStringList.h>

Inheritance diagram for SystemCommandStringListFeatureProvider:

FeatureProvider Thread NetworkFeatureProvider WlanAccessPointFeatureProvider List of all members.

Public Member Functions

 SystemCommandStringListFeatureProvider (string featureProviderName, string featureName, string systemCommand, stringvector *featureList, stringcode *stringCodeList, long *maxlen, featureparams &params)
 this->start has to be called in the subclass constructor
virtual ~SystemCommandStringListFeatureProvider () throw ()
virtual FeaturegetFeature (string name) const
virtual FeaturegetSample (string name) const
virtual void nextSample (clock_t checkpoint)
virtual void run () throw ()

Static Public Member Functions

static void initialize (string name)

Protected Attributes

string systemCommand
 Warning: change with care and only when necessary !
stringvector stringList
bool stringListValid

Detailed Description

This class returns a feature out of any system command that can return a newline-separated list of strings.


Constructor & Destructor Documentation

SystemCommandStringListFeatureProvider::SystemCommandStringListFeatureProvider string  featureProviderName,
string  featureName,
string  systemCommand,
stringvector featureList,
stringcode stringCodeList,
long *  maxlen,
featureparams params
 

this->start has to be called in the subclass constructor

Todo:
check parameter

SystemCommandStringListFeatureProvider::~SystemCommandStringListFeatureProvider  )  throw () [virtual]
 

Destructor


Member Function Documentation

Feature * SystemCommandStringListFeatureProvider::getFeature string  name  )  const [virtual]
 

Query feature instance

Query the feature provider for a specific feature initialized with random values.

Parameters:
name Name of the requested feature.
Returns:
An instance of the requested feature.

Implements FeatureProvider.

Feature * SystemCommandStringListFeatureProvider::getSample string  name  )  const [virtual]
 

Query sample instance

Query the feature provider for a sample value of the specified feature. Prior to this method you have to invoke nextSample().

Parameters:
name Name of the requested feature.
Returns:
An instance of the sample.
See also:
nextSample

Implements FeatureProvider.

static void SystemCommandStringListFeatureProvider::initialize string  name  )  [static]
 

Todo:
documentation

void SystemCommandStringListFeatureProvider::nextSample clock_t  checkpoint  )  [virtual]
 

Prepare sample

Prepare the feature provider to return the next sample from the sensor when getSample() is called.

Parameters:
checkpoint This parameter tells the feature extractor that it must not return sensordata sampled earlier than the given clock value.
See also:
getSample

Implements FeatureProvider.

void SystemCommandStringListFeatureProvider::run  )  throw () [virtual]
 

Thread main worker function

Implements Thread.


Member Data Documentation

stringvector SystemCommandStringListFeatureProvider::stringList [protected]
 

Todo:
documentation


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