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

Classes

enum  BIORHYTHM_TYPE
 

Public Member Functions

boolean initialize (boolean adaptive, GOAL_INITIALIZATION init)
 
boolean personalInitialization ()
 
boolean manualInitialization (double toBedTime, double wakeUpTime)
 
BIORHYTHM_TYPE getBiorhythmType ()
 
double getToBedTime ()
 
double getWakeUpTime ()
 
- 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 BiorhythmCoach getInstance (SensePlatform sensePlatform)
 

Static Protected Attributes

static String name = TYPE.BIORHYTHM.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

BIORHYTHM_TYPE nl.sense_os.cortex.coaching.BiorhythmCoach.getBiorhythmType ( )

Get the biorhythm type of the user

Returns
The BIORHYTHM_TYPE of the user
double nl.sense_os.cortex.coaching.BiorhythmCoach.getToBedTime ( )

Get the to bed time of the user based on the initialization sleep times of the BiorhythmCoach.
If the BiorhythmCoach has not yet been initialized, the default wake up value 7 will be returned.

Returns
The to bed time in hours
double nl.sense_os.cortex.coaching.BiorhythmCoach.getWakeUpTime ( )

Get the wake up time of the user based on the initialization sleep times of the BiorhythmCoach.
If the BiorhythmCoach has not yet been initialized, the default wake up value 7 will be returned.

Returns
The to bed time in hours
boolean nl.sense_os.cortex.coaching.BiorhythmCoach.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.BiorhythmCoach.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

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