Cortex iOS
 All Classes Functions Properties
MentalResilienceCoach Class Reference
Inheritance diagram for MentalResilienceCoach:
Coach

Instance Methods

(void) - setManualGoal:forTaskTypes:
 
(void) - setPersonalGoalWithBaseline:withDynamic:forTaskTypes:
 
(void) - setPopulationGoalWithDynamic:forTaskTypes:
 
(NSDictionary *) - getGoal
 
(void) - addMentalResilienceMeasurement:forQuestionId:question:answerId:answer:taskType:
 
(void) - testReminderDailyQuestion
 
(void) - resetState
 
- Instance Methods inherited from Coach
(id) - init
 
(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.
 

Method Documentation

- (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
measuredThe measured value
questionIdThe question ID
questionString representation of the question
answerIdThe answer ID
answerString representation of the answer
taskTypeTaskType 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) resetState

Reset the state.

- (void) setManualGoal: (double)  goalMentalResilience
forTaskTypes: (NSArray *)  taskTypes 

Set the goal to a manually specified goal.

Parameters
goalMentalResiliencegoal mental resilience for each day
taskTypesAn 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
baselinebaseline mental resilience
dynamicWhether the coach should adjust it's goals based upon the progress the user is making
taskTypesAn 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
dynamicWhether the coach should adjust it's goals based upon the progress the user is making
taskTypesAn 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: