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

Public Member Functions

boolean initialize (boolean adaptive, GOAL_INITIALIZATION init)
 
boolean manualInitialization (double sleepDuration)
 
boolean personalInitialization (boolean adaptive)
 
boolean personalInitialization (boolean adaptive, double baselineSleepDuration)
 
- 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< TaskgetCurrentTasks ()
 
List< TaskgetFutureTasks (double start_time, double end_time)
 
List< TaskgetPastTasks (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
SleepDurationCoach 
getInstance (SensePlatform sensePlatform)
 

Static Protected Attributes

static String name = TYPE.SLEEP_DURATION.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 ()
 
- Protected Attributes inherited from nl.sense_os.cortex.coaching.Coach
List< AIMBase > submodules = new ArrayList<AIMBase>()
 
TYPE coach_type
 
boolean requirementsAreUpdated = false
 

Member Function Documentation

boolean nl.sense_os.cortex.coaching.SleepDurationCoach.manualInitialization ( double  sleepDuration)

Initialize with a manual goal

The Coach will be initialized with a manual goal which we be the target value for each day.

Parameters
sleepDurationThe sleep duration in hours.
Returns
True if the initialization was successful
boolean nl.sense_os.cortex.coaching.SleepDurationCoach.personalInitialization ( boolean  adaptive)

Initialize with a personal goal

Based on the Calibration values a baseline value will be selected.
The CalibrationCoach should not give the advice to run the CalibrationCoach,
otherwise the CalibrationCoach could have to little data for computing a baseline for this coach.

Parameters
adaptiveSet whether the Coach should be adaptive (update the goal based on progress)
Returns
True if the CalibrationCoach has a baseline value, else it will return false.
boolean nl.sense_os.cortex.coaching.SleepDurationCoach.personalInitialization ( boolean  adaptive,
double  baselineSleepDuration 
)

Initialize with a personal goal

Based on the provided baseline mental resilience the coach will be initialized.

Parameters
adaptiveSet whether the Coach should be adaptive (update the goal based on progress)
baselineSleepDurationThe baseline sleep duration value in hours.
Returns
True if the initialization succeeds.

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