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

Classes

class  Schedule
 

Public Member Functions

boolean initialize (boolean adaptive, GOAL_INITIALIZATION init)
 
boolean personalInitialization (Schedule schedule)
 
boolean manualInitialization (double toBedTime, double wakeUpTime, Schedule schedule)
 
- 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 ShiftWorkCoach getInstance (SensePlatform sensePlatform)
 

Static Protected Attributes

static String name = TYPE.SHIFTWORK.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.ShiftWorkCoach.manualInitialization ( double  toBedTime,
double  wakeUpTime,
Schedule  schedule 
)

Initialize with sleep values

Initialize the coach with the normal sleep to bed hour and out bed hour.

Parameters
toBedTimeThe normal to bed hour
wakeUpTimeThe normal wake up hour
Returns
True if the initialization succeeds.
boolean nl.sense_os.cortex.coaching.ShiftWorkCoach.personalInitialization ( Schedule  schedule)

Initialize with calibration values

Initialize the coach with the calibrated sleep time values, and the work Schedule

Parameters
scheduleThe work schedule
Returns
True if the initialization succeeds, false if the CalibrationCoach does not have the baseline values

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