|
|
(NSString *) | + stringFromCoachType: |
| |
|
(CoachType) | + coachTypeFromString: |
| |
|
CoachType | type |
| | Type to identifies the coach.
|
| |
| - (void) addMentalResilienceMeasurement: |
|
(double) |
measured |
| forQuestionId: |
|
(int) |
questionId |
| question: |
|
(NSString*) |
question |
| answerId: |
|
(int) |
answerId |
| answer: |
|
(NSString*) |
answer |
| taskType: |
|
(TaskType) |
taskType |
|
|
| |
Add a new measurement when a question is answered
- Parameters
-
| measured | The measured value |
| questionId | The question ID |
| question | String representation of the question |
| answerId | The answer ID |
| answer | String representation of the answer |
| taskType | TaskType task type for which the measurement was done. Mental resilience works with different domains which correspond to the different task types |
| - (NSDictionary *) getGoal |
|
|
|
Return the set goal.
- Returns
- a dictionary with for each enabled task the the goal value
| - (void) setManualGoal: |
|
(double) |
goalMentalResilience |
| forTaskTypes: |
|
(NSArray *) |
taskTypes |
|
|
| |
Set the goal to a manually specified goal.
- Parameters
-
| goalMentalResilience | goal mental resilience for each day |
| taskTypes | An array of TaskType s of the task types (domains) that need to be enabled. The task types correspond to the different domains of mental resilience. |
| - (void) setPersonalGoalWithBaseline: |
|
(double) |
baseline |
| withDynamic: |
|
(BOOL) |
dynamic |
| forTaskTypes: |
|
(NSArray *) |
taskTypes |
|
|
| |
Set a personal based goal.
- Parameters
-
| baseline | baseline mental resilience |
| dynamic | Whether the coach should adjust it's goals based upon the progress the user is making |
| taskTypes | An array of TaskType s of the task types (domains) that need to be enabled. The task types correspond to the different domains of mental resilience. |
| - (void) setPopulationGoalWithDynamic: |
|
(BOOL) |
dynamic |
| forTaskTypes: |
|
(NSArray *) |
taskTypes |
|
|
| |
Set a population based goal.
- Parameters
-
| dynamic | Whether the coach should adjust it's goals based upon the progress the user is making |
| taskTypes | An array of TaskType s of the task types (domains) that need to be enabled. The task types correspond to the different domains of mental resilience. |
| - (void) testReminderDailyQuestion |
|
|
|
Test daily question. This function is intended for testing purposes only. Generate a reminder notification as if created by the coach, but with timestamp now.
The documentation for this class was generated from the following files: