Cortex iOS
|
#import <ExerciseCoach.h>
Instance Methods | |
(id) | - init |
(void) | - setManualGoalDailyExercise: |
(void) | - setPersonalGoalDailyExerciseWithBaseline:withDynamic: |
(void) | - setPopulationGoalWithDynamic: |
(NSTimeInterval) | - getGoal |
(Task *) | - setValueManually:forTask: |
(void) | - resetState |
Instance Methods inherited from Coach | |
(NSArray *) | - getCurrentTasks |
(NSArray *) | - getFutureTasksFrom:to: |
(NSArray *) | - getPastTasksFrom:to: |
(NSArray *) | - getAllTasksFrom:to: |
(void) | - pause |
(void) | - resume |
(Task *) | - setValue:forTask: |
Additional Inherited Members | |
Class Methods inherited from Coach | |
(NSString *) | + stringFromCoachType: |
(CoachType) | + coachTypeFromString: |
Properties inherited from Coach | |
CoachType | type |
Type to identifies the coach. | |
The exercise coach coaches a user to be more active. The exercise coach automatically measures the users physical activity and depending on the goal will give advise on how to improve.
- (NSTimeInterval) getGoal |
Return the set goal.
- (void) resetState |
Reset the state.
- (void) setManualGoalDailyExercise: | (NSTimeInterval) | exercisePerDay |
Set the goal to a manually specified goal.
exercisePerDay | goal time (in seconds) to exercise each day. |
- (void) setPersonalGoalDailyExerciseWithBaseline: | (NSTimeInterval) | baseline | |
withDynamic: | (BOOL) | dynamic | |
Set a personal based goal.
baseline | baseline daily exercise in seconds per day |
dynamic | Whether the coach should adjust it's goals based upon the progress the user is making |
- (void) setPopulationGoalWithDynamic: | (BOOL) | dynamic |
Set a population based goal.
dynamic | Whether the coach should adjust it's goals based upon the progress the user is making |
Set the activity duration of a specified task manually. This can be used to override the measurement. An example to set current activity to 2 hours: [coach setValueManually:2*60*60 forTask:[[coach getCurrentTasks] firstObject]]
dateValue | NSDictionary with "date" and @"value" keys containing the new value. |
the | task for which the value should be updated |