Cortex Android
|
Public Member Functions | |
SleepTimeEstimateSensor (String name, SensePlatform sensePlatform) | |
SleepTimeEstimateSensor (SensePlatform sensePlatform) | |
nl.sense_os.cortex.module.sleeptimeestimate.SleepTimeEstimate | getSleepTimeEstimateModule () |
void | onNewData (SensorDataPoint dataPoint) |
This is a wrapper class for the SleepTimeEstimate module.
This module gives a sleep estimate based on the observed values of the sleep_time module.
When the sleep_time module continuously returns 0 minutes of sleep during sleep period, this module will return an estimate based on the population and the sleep history of the user.
An estimate will only be calculated when:
nl.sense_os.cortex.SleepTimeEstimateSensor.SleepTimeEstimateSensor | ( | String | name, |
SensePlatform | sensePlatform | ||
) |
SleepTimeEstimateSensor constructor
name | The unique name of the SleepTimeEstimate module. |
sensePlatform | A SensePlatform object which is binded to the SenseService |
nl.sense_os.cortex.SleepTimeEstimateSensor.SleepTimeEstimateSensor | ( | SensePlatform | sensePlatform | ) |
SleepTimeEstimateSensor constructor
The SleepTimeEstimate module will be initialized with the following properties, these can be altered via getSleepTimeEstimateModule().setAIMProperty:
PROP_POPULATION_SLEEP_TIME = 8 hours
PROP_POPULATION_START_TIME = 23.5 o'clock
PROP_POPULATION_END_TIME = 7 o'clock
PROP_MIN_SLEEP_DURATION = 4 hours
PROP_GOAL_SLEEP_TIME_COUNT = 14 nights
PROP_ESTIMATE_RETURN_TIME = 6 o'clock
PROP_ESTIMATE_RETURN_MIN_CNT = 48 samples (4 hours every 5 minutes a sample)
PROP_SLEEP_END_TIME = 12 o'clock
PROP_MAX_SLEEP_DURATION = 14 hours
PROP_ESTIMATE_NOISE = 0.5 hours
sensePlatform | A SensePlatform object which is binded to the SenseService |
nl.sense_os.cortex.module.sleeptimeestimate.SleepTimeEstimate nl.sense_os.cortex.SleepTimeEstimateSensor.getSleepTimeEstimateModule | ( | ) |
Get the SleepTimeEstimate module
NB. Access the SleepTimeEstimate module instance using synchronized.