#include <Feature.h>
Inheritance diagram for FeatureProvider:
Public Member Functions | |
virtual | ~FeatureProvider () |
virtual Feature * | getFeature (string name) const =0 |
virtual Feature * | getSample (string name) const =0 |
virtual void | nextSample (clock_t checkpoint)=0 |
string | getName () const |
stringvector * | getFeatureList () const |
Protected Member Functions | |
FeatureProvider (string name, stringvector *features) |
Each feature that is used in the cluster space definition is provided by a feature provider. A feature provider can provide more than one feature and will be refered to by a unique name. A feature can then be unambiguously identified by a combination of its own name and the name of its feature provider. Thus the actual cluster space can be defined in a configuration file and the clustering infrastructure can fetch the according features based on that definition.
|
Constructor Initializes the names of the provider and its features.
|
|
Destructor Empty virtual destructor to have an entry in the implementing classes method table. This ensures that derived classes get destructed correctly. |
|
Query feature instance Query the feature provider for a specific feature initialized with random values.
Implemented in ActiveWindowFeatureProvider, AudioFeatureProvider, BluetoothFeatureProvider, GSMFeatureProvider, PHPWrapperFeatureProvider, PowerFeatureProvider, SystemCommandStringListFeatureProvider, TimeFeatureProvider, VideoFeatureProvider, and WlanFeatureProvider. |
|
Query list of provided features
|
|
Query provider name
|
|
Query sample instance Query the feature provider for a sample value of the specified feature. Prior to this method you have to invoke nextSample().
Implemented in ActiveWindowFeatureProvider, AudioFeatureProvider, BluetoothFeatureProvider, BluetoothLinuxFeatureProvider, GSMFeatureProvider, PHPWrapperFeatureProvider, PowerFeatureProvider, SystemCommandStringListFeatureProvider, TimeFeatureProvider, VideoFeatureProvider, WlanFeatureProvider, and WlanLinuxFeatureProvider. |
|
Prepare sample Prepare the feature provider to return the next sample from the sensor when getSample() is called.
Implemented in ActiveWindowFeatureProvider, AudioFeatureProvider, BluetoothFeatureProvider, GSMFeatureProvider, PHPWrapperFeatureProvider, PowerFeatureProvider, SystemCommandStringListFeatureProvider, TimeFeatureProvider, VideoFeatureProvider, WlanFeatureProvider, and WlanLinuxFeatureProvider. |