Cortex Android
 All Classes Namespaces Functions Variables
nl.sense_os.cortex.PhysicalActivitySensor Class Reference
Inheritance diagram for nl.sense_os.cortex.PhysicalActivitySensor:

Public Member Functions

 PhysicalActivitySensor (String name, SensePlatform sensePlatform)
 
 PhysicalActivitySensor (SensePlatform sensePlatform)
 
void startLearning (String label)
 
void stopLearning ()
 
void onNewData (SensorDataPoint dataPoint)
 

Detailed Description

The PhysicalActivity module recognizes activities of the user.
It is capable of detecting, walking, running, cycling, idle.
Its return value is a string with one of the above mentioned states.
This DataProcessor requires the following sensors/settings:
SensorNames.LINEAR_BURST
SensorNames.GYRO_BURST
BurstMode setting enabled
Motion sensing enabled

Author
Ted Schmidt ted@s.nosp@m.ense.nosp@m.-os.n.nosp@m.l

Copyright (c) 2013 Sense Observation Systems BV. All rights reserved.

Constructor & Destructor Documentation

nl.sense_os.cortex.PhysicalActivitySensor.PhysicalActivitySensor ( String  name,
SensePlatform  sensePlatform 
)

PhysicalActivity constructor

A PhysicalActivity data producer will be registered at the Sense Service
under the name supplied with this constructor.
To receive data from this DataProducer, subscription should be done at the Sense Service with the given name.
The DataProcessor persists its state based on the supplied name.

Parameters
sensePlatformThe SensePlatform
nameThe name of the data processor. Should be unique.
nl.sense_os.cortex.PhysicalActivitySensor.PhysicalActivitySensor ( SensePlatform  sensePlatform)

PhysicalActivity constructor

A PhysicalActivity data producer will be registered at the Sense Service

See Also
PhysicalActivitySensor(String name, SensePlatform sensePlatform)
Parameters
sensePlatformThe SensePlatform

Member Function Documentation

void nl.sense_os.cortex.PhysicalActivitySensor.onNewData ( SensorDataPoint  dataPoint)

On new data

This method receives data from the sensors to which the DataProcessor is subscribed

Parameters
dataPointThe SensorDataPoint coming from the subscribed sensor

The documentation for this class was generated from the following file: