|
(NSString *) | + stringFromCoachType: |
|
(CoachType) | + coachTypeFromString: |
|
CoachType | type |
| Type to identifies the coach.
|
|
- (NSTimeInterval) getGoal |
|
|
|
Return the set goal.
- Returns
- the goal time (in seconds) to sleep each day
- (void) setManualGoalDailySleep: |
|
(NSTimeInterval) |
sleepPerDay |
|
Set the goal to a manually specified goal.
- Parameters
-
sleepPerDay | goal time (in seconds) to sleep each day. |
- (void) setPersonalGoalSleepWithBaseline: |
|
(NSTimeInterval) |
baseline |
withDynamic: |
|
(BOOL) |
dynamic |
|
|
| |
Set the personal goal.
- Parameters
-
baseline | baseline sleep time (in seconds) per day |
- (void) setPopulationGoalWithDynamic: |
|
(BOOL) |
dynamic |
|
Set a population based goal.
- Parameters
-
dynamic | Whether the coach should adjust it's goals based upon the progress the user is making |
- (Task *) setValueManually: |
|
(NSTimeInterval) |
duration |
forTask: |
|
(Task*) |
task |
|
|
| |
Set the sleep duration of the specified the task manually. This can be used to override/correct the measurements. An example to set the current sleep task to 5 hours: [coach setValueManually:5*60*60 forTask:[[coach getCurrentTasks] firstObject]]
- Parameters
-
duration | the duration in seconds how long the user slept |
the | task for which the value should be updated |
- Returns
- the updated task
Set the value of the task manually. This is for users to override the automatic measurement.
- Parameters
-
dateValue | NSDictionary with "date" and @"value" keys containing the new value. |
the | task for which the value should be updated |
- Returns
- the updated task
The documentation for this class was generated from the following files:
- ios-sdk/Cortex/coaching_engine/SleepDurationCoach.h
- ios-sdk/Cortex/coaching_engine/SleepDurationCoach.mm