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

Public Member Functions

boolean initialize (boolean adaptive, GOAL_INITIALIZATION init)
 
boolean personalInitialization ()
 
boolean manualInitialization (double toBedTime, double wakeUpTime)
 
void onNewData (SensorDataPoint dataPoint)
 
void setNewTimeZone (String timeZoneId, int offset, double date)
 
- 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 JetLagCoach getInstance (SensePlatform sensePlatform)
 

Static Protected Attributes

static String name = TYPE.JETLAG.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.JetLagCoach.manualInitialization ( double  toBedTime,
double  wakeUpTime 
)

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.JetLagCoach.personalInitialization ( )

Initialize with calibration values

Initialize the coach with the calibrated sleep time values.

Returns
True if the initialization succeeds, false if the CalibrationCoach does not have the baseline values
void nl.sense_os.cortex.coaching.JetLagCoach.setNewTimeZone ( String  timeZoneId,
int  offset,
double  date 
)

Set a new Time Zone

Parameters
timeZoneIdThe string representation of the Time Zone id (e.g. Europe/Amsterdam)
offsetThe offset of the time zone in seconds (e.g. GMT-1 = -3600)
dateThe epoch time corresponding to this time zone change.

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