Cortex Android
|
Public Member Functions | |
PhysicalActivitySensor (String name, SensePlatform sensePlatform) | |
PhysicalActivitySensor (SensePlatform sensePlatform) | |
void | startLearning (String label) |
void | stopLearning () |
void | onNewData (SensorDataPoint dataPoint) |
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
Copyright (c) 2013 Sense Observation Systems BV. All rights reserved.
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.
sensePlatform | The SensePlatform |
name | The 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
sensePlatform | The SensePlatform |
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
dataPoint | The SensorDataPoint coming from the subscribed sensor |