BluetoothNumPeersFeature Class Reference

#include <Bluetooth.h>

Inheritance diagram for BluetoothNumPeersFeature:

NumericalDiscreteFeature PersistantFeature Feature List of all members.

Public Member Functions

virtual const string getName () const
virtual string toString () const

Protected Member Functions

 BluetoothNumPeersFeature (long *minval, long *maxval)
 BluetoothNumPeersFeature (long *minval, long *maxval, unsigned numPeers)

Friends

class BluetoothFeatureProvider

Detailed Description

Number of peers in range

This feature returns the number of Bluetooth peers reachable by the calling device.


Constructor & Destructor Documentation

BluetoothNumPeersFeature::BluetoothNumPeersFeature long *  minval,
long *  maxval
[inline, protected]
 

Feature constructor

This constructor initializes the feature with a random value and should thus only be used for creating e.g. prototypes of points in a clustering space. For creating a specific sample of a feature, the second constructor should be used.

Parameters:
minval A reference to a static variable (it must be same for all created objects of _one_ feature) for persistantly storing the minimum value.
maxval A reference to a static variable (it must be same for all created objects of _one_ feature) for persistantly storing the maximum value.

BluetoothNumPeersFeature::BluetoothNumPeersFeature long *  minval,
long *  maxval,
unsigned  numPeers
[inline, protected]
 

Sample constructor

This constructor initializes the feature with a specific value and should thus be used for samples.

Parameters:
minval A reference to a static variable (it must be same for all created objects of _one_ feature) for persistantly storing the minimum value.
maxval A reference to a static variable (it must be same for all created objects of _one_ feature) for persistantly storing the maximum value.
numPeers The sample value.


Member Function Documentation

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

Query a features name

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

Reimplemented from NumericalDiscreteFeature.

string BluetoothNumPeersFeature::toString  )  const [virtual]
 

This is only for testing.

Reimplemented from NumericalDiscreteFeature.


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