WlanActiveModeFeature Class Reference

#include <Wlan.h>

Inheritance diagram for WlanActiveModeFeature:

Feature List of all members.

Public Types

enum  FeatureKind {
  Unknown, Master, Managed, AdHoc,
  Last
}

Public Member Functions

virtual double getPosition () const
virtual double getDistance (Feature *f) const
virtual void moveTowards (Feature *f, double factor)
virtual string serialize () const
virtual void unserialize (string value)
virtual Featureclone () const
void aggregate (aggregatelist samples)
virtual FeatureType getType () const
virtual const string getName () const
const FeatureKind getVal () const
virtual string toString () const

Protected Member Functions

 WlanActiveModeFeature ()
 WlanActiveModeFeature (FeatureKind mode)

Friends

class WlanFeatureProvider

Detailed Description

Todo:
documentation


Member Enumeration Documentation

enum WlanActiveModeFeature::FeatureKind
 

Todo:
documentation


Constructor & Destructor Documentation

WlanActiveModeFeature::WlanActiveModeFeature  )  [protected]
 

This constructor should not be used to construct feature objects. They are only created by the respective feature provider.

WlanActiveModeFeature::WlanActiveModeFeature FeatureKind  mode  )  [protected]
 

This constructor should not be used to construct feature objects. They are only created by the respective feature provider.


Member Function Documentation

void WlanActiveModeFeature::aggregate aggregatelist  samples  )  [virtual]
 

Aggregate a sample values from other sources

Parameters:
samples A list of <timestamp, sample> tuples.

Implements Feature.

Feature * WlanActiveModeFeature::clone  )  const [virtual]
 

Clone a feature

A feature must be able to clone itself. This is typically implemented with a copy constructor, but should return a new object.

Implements Feature.

double WlanActiveModeFeature::getDistance Feature f  )  const [virtual]
 

Calculates the distance between two features

Parameters:
f Feature used for distance measurement.
Returns:
Distance between the two samples. The return value has to be in the interval [0; 1] to guarantee comparability among samples of different features.

Implements Feature.

virtual const string WlanActiveModeFeature::getName  )  const [inline, virtual]
 

Query a features name

Returns:
Name of the Feature in the format "Featureprovider.Feature"

Implements Feature.

double WlanActiveModeFeature::getPosition  )  const [virtual]
 

Query a features position

Returns:
The distance to the origin. Every implementation must take care that only values in the interval [0; 1] are returned.
Remarks:
This function is only for the purpose of internal search operations and visualisation and should not be used in any other context.

Implements Feature.

virtual FeatureType WlanActiveModeFeature::getType  )  const [inline, virtual]
 

Query a features type

Returns:
The type of the Feature.

Implements Feature.

void WlanActiveModeFeature::moveTowards Feature f,
double  factor
[virtual]
 

Move feature

Moves the feature towards a given sample value by the specified factor (factor times the distance). If the factor is 0, the old feature value must not change. If the factor is 1, the new feature value should be equivalent to the sample s.

Parameters:
f Feature used for distance measurement.
factor Distance weight.

Implements Feature.

string WlanActiveModeFeature::serialize  )  const [virtual]
 

Serialize a samples data to a string

Returns:
String representation of the samples data.

Implements Feature.

string WlanActiveModeFeature::toString  )  const [virtual]
 

This is only for testing.

Implements Feature.

void WlanActiveModeFeature::unserialize string  value  )  [virtual]
 

Unserialize a samples data from a string

Parameters:
value String representation of the samples data.

Implements Feature.


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