Cortex iOS
 All Classes Functions Properties
ExerciseCoach Class Reference

#import <ExerciseCoach.h>

Inheritance diagram for ExerciseCoach:
Coach

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.
 

Detailed Description

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.

Method Documentation

- (NSTimeInterval) getGoal

Return the set goal.

Returns
the goal time (in seconds) to exercise each day
- (void) resetState

Reset the state.

- (void) setManualGoalDailyExercise: (NSTimeInterval)  exercisePerDay

Set the goal to a manually specified goal.

Parameters
exercisePerDaygoal time (in seconds) to exercise each day.
- (void) setPersonalGoalDailyExerciseWithBaseline: (NSTimeInterval)  baseline
withDynamic: (BOOL)  dynamic 

Set a personal based goal.

Parameters
baselinebaseline daily exercise in seconds per day
dynamicWhether the coach should adjust it's goals based upon the progress the user is making
- (void) setPopulationGoalWithDynamic: (BOOL)  dynamic

Set a population based goal.

Parameters
dynamicWhether the coach should adjust it's goals based upon the progress the user is making
- (Task *) setValueManually: (NSTimeInterval)  duration
forTask: (Task*)  task 

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]]

Parameters
dateValueNSDictionary with "date" and @"value" keys containing the new value.
thetask for which the value should be updated
Returns
the updated task

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