Cortex Android
|
Public Member Functions | |
Coach.TYPE | getCoachAdvice () |
boolean | isCalibrationComplete () |
double | getTimeActiveBaseline () |
double | getSleepDurationBaseline () |
double | getSleepStartBaseline () |
double | getSleepEndBaseline () |
double | getMentalResilienceBaseline () |
boolean | isTimeActiveBaselineComplete () |
boolean | isSleepTimeBaseLineComplete () |
boolean | isMentalResilienceBaseLineComplete () |
Public Member Functions inherited from nl.sense_os.cortex.coaching.Coach | |
void | sendDummyData () |
Coach.TYPE | getCoachType () |
boolean | initialize (boolean adaptive, GOAL_INITIALIZATION init) |
JSONObject | getGoal () |
List< Task > | getCurrentTasks () |
List< Task > | getFutureTasks (double start_time, double end_time) |
List< Task > | getPastTasks (double start_time, double end_time) |
Coach.STATUS | getStatus () |
boolean | requirementsAreUpdated (boolean reset) |
boolean | requirementsAreUpdated () |
void | disable () |
List< JSONObject > | getRequirements () |
void | onNewData (SensorDataPoint dataPoint) |
void | pause () |
void | resume () |
Task | updateTaskValue (Task task) |
void | load () |
void | setState (String state) |
Static Protected Member Functions | |
static synchronized CalibrationCoach | getInstance (SensePlatform sensePlatform) |
Protected Attributes | |
nl.sense_os.cortex.module.coaches.CalibrationCoach | calibrationCoachAIM |
Protected Attributes inherited from nl.sense_os.cortex.coaching.Coach | |
List< AIMBase > | submodules = new ArrayList<AIMBase>() |
TYPE | coach_type |
boolean | requirementsAreUpdated = false |
Static Protected Attributes | |
static String | name = TYPE.CALIBRATION.name() |
Static Protected Attributes inherited from nl.sense_os.cortex.coaching.Coach | |
static String | TAG = "Coach" |
Additional Inherited Members | |
Protected Member Functions inherited from nl.sense_os.cortex.coaching.Coach | |
Coach (String name, SensePlatform sensePlatform, AIM aiModule, Coach.TYPE coach_type) | |
void | handleRequirementsUpdate () |
The CalibrationCoach computes the baseline values for the Coaches PHYSICAL_ACTIVITY, SLEEP_TIME, MENTAL_RESILIENCE
The CalibrationCoach does not have an InitializationType and cannot be dynamic.
The CalibrationCoach can be initialized with the AIMValue init which contains a map with sensor names to calibrate as key.
When the CalibrationCoach is finished it's collecting data in the background (with optional requirements).
When the CalibrationCoach is already running in the background it will be put in the foreground.
A buffer of daily data for 30 days is kept for each sensor.
The CalibrationCoach will stop collecting data when he has calculated the average value over 7 days of the selected sensors.
For each day a task will be created with will be successful when at the and of the day all the sensors have data.
The value of the task is a json object with a key the sensor to calibrate, and as value the current value for that sensor.
Coach.TYPE nl.sense_os.cortex.coaching.CalibrationCoach.getCoachAdvice | ( | ) |
Get the advised Coach
Based on the current baseline of the user a Coach is advised. If the application has not determined a current baseline for all the sensors, then the CalibrationCoach is advised.
double nl.sense_os.cortex.coaching.CalibrationCoach.getMentalResilienceBaseline | ( | ) |
Get the mental resilience baseline
This is the current average value for the mental resilience sensor.
This value is not necessarily based on the minimum of 7 days in the last month.
@return The mental resilience baseline in percentage. Returns NaN if no value is available.
double nl.sense_os.cortex.coaching.CalibrationCoach.getSleepDurationBaseline | ( | ) |
Get the sleep duration baseline
This is the current average duration value for the sleep time sensor.
This value is not necessarily based on the minimum of 7 days in the last month.
@return The sleep duration in hours. Returns NaN if no value is available.
double nl.sense_os.cortex.coaching.CalibrationCoach.getSleepEndBaseline | ( | ) |
Get the sleep end time baseline
This is the current average sleep end time value for the sleep time sensor.
This value is not necessarily based on the minimum of 7 days in the last month.
@return The sleep end time baseline in hours. Returns NaN if no value is available.
double nl.sense_os.cortex.coaching.CalibrationCoach.getSleepStartBaseline | ( | ) |
Get the sleep start time baseline
This is the current average sleep start time value for the sleep time sensor.
This value is not necessarily based on the minimum of 7 days in the last month.
@return The sleep start time baseline in hours. Returns NaN if no value is available.
double nl.sense_os.cortex.coaching.CalibrationCoach.getTimeActiveBaseline | ( | ) |
Get the time active baseline
This is the current average value for the time active sensor.
This value is not necessarily based on the minimum of 7 days in the last month.
boolean nl.sense_os.cortex.coaching.CalibrationCoach.isCalibrationComplete | ( | ) |
Check whether the calibration coach is done with calibration.
boolean nl.sense_os.cortex.coaching.CalibrationCoach.isMentalResilienceBaseLineComplete | ( | ) |
Check if the mental resilience baseline value is complete
Calculating the mental resilience baseline is finished when there is data from at least 7 days in the last month.
boolean nl.sense_os.cortex.coaching.CalibrationCoach.isSleepTimeBaseLineComplete | ( | ) |
Check if the sleep time baseline values are complete
Calculating the sleep time baseline is finished when there is data from at least 7 days in the last month.
boolean nl.sense_os.cortex.coaching.CalibrationCoach.isTimeActiveBaselineComplete | ( | ) |
Check if the time active baseline value is complete
Calculating the time active baseline is finished when there is data from at least 7 days in the last month.