Cortex Android
 All Classes Namespaces Functions Variables
nl.sense_os.cortex.coaching.MentalResilienceCoach Class Reference
Inheritance diagram for nl.sense_os.cortex.coaching.MentalResilienceCoach:
nl.sense_os.cortex.coaching.Coach

Public Member Functions

boolean initialize (boolean adaptive, GOAL_INITIALIZATION init)
 
boolean manualInitialization (JSONObject goalMentalResilience)
 
boolean personalInitialization (boolean adaptive)
 
boolean personalInitialization (boolean adaptive, JSONObject baselineMentalResilience)
 
- Public Member Functions inherited from nl.sense_os.cortex.coaching.Coach
void sendDummyData ()
 
Coach.TYPE getCoachType ()
 
boolean initialize (boolean adaptive, GOAL_INITIALIZATION init)
 
JSONObject getGoal ()
 
List< TaskgetCurrentTasks ()
 
List< TaskgetFutureTasks (double start_time, double end_time)
 
List< TaskgetPastTasks (double start_time, double end_time)
 
Coach.STATUS getStatus ()
 
boolean requirementsAreUpdated (boolean reset)
 
boolean requirementsAreUpdated ()
 
void disable ()
 
List< JSONObject > getRequirements ()
 
void onNewData (SensorDataPoint dataPoint)
 
void pause ()
 
void resume ()
 
Task updateTaskValue (Task task)
 
void load ()
 
void setState (String state)
 

Static Public Member Functions

static Task.TYPE getWorriesMentalResilienceTaskType ()
 
static Task.TYPE getControlMentalResilienceTaskType ()
 
static Task.TYPE getSupportMentalResilienceTaskType ()
 
static Task.TYPE getFlexibilityMentalResilienceTaskType ()
 
static Task.TYPE getConfidenceMentalResilienceTaskType ()
 
static Task.TYPE getMotivationMentalResilienceTaskType ()
 
static Task.TYPE getRelaxationMentalResilienceTaskType ()
 

Static Protected Member Functions

static synchronized
MentalResilienceCoach 
getInstance (SensePlatform sensePlatform)
 

Static Protected Attributes

static String name = TYPE.MENTAL_RESILIENCE.name()
 
- Static Protected Attributes inherited from nl.sense_os.cortex.coaching.Coach
static String TAG = "Coach"
 

Additional Inherited Members

- Protected Member Functions inherited from nl.sense_os.cortex.coaching.Coach
 Coach (String name, SensePlatform sensePlatform, AIM aiModule, Coach.TYPE coach_type)
 
void handleRequirementsUpdate ()
 
- Protected Attributes inherited from nl.sense_os.cortex.coaching.Coach
List< AIMBase > submodules = new ArrayList<AIMBase>()
 
TYPE coach_type
 
boolean requirementsAreUpdated = false
 

Member Function Documentation

static Task.TYPE nl.sense_os.cortex.coaching.MentalResilienceCoach.getConfidenceMentalResilienceTaskType ( )
static

Get the corresponding mental resilience task for this Confidence

Returns
The mental resilience Task.TYPE used for this domain
static Task.TYPE nl.sense_os.cortex.coaching.MentalResilienceCoach.getControlMentalResilienceTaskType ( )
static

Get the corresponding mental resilience task for control

Returns
The mental resilience Task.TYPE used for this domain
static Task.TYPE nl.sense_os.cortex.coaching.MentalResilienceCoach.getFlexibilityMentalResilienceTaskType ( )
static

Get the corresponding mental resilience task for Flexibility

Returns
The mental resilience Task.TYPE used for this domain
static Task.TYPE nl.sense_os.cortex.coaching.MentalResilienceCoach.getMotivationMentalResilienceTaskType ( )
static

Get the corresponding mental resilience task for Motivation

Returns
The mental resilience Task.TYPE used for this domain
static Task.TYPE nl.sense_os.cortex.coaching.MentalResilienceCoach.getRelaxationMentalResilienceTaskType ( )
static

Get the corresponding mental resilience task for Relaxation

Returns
The mental resilience Task.TYPE used for this domain
static Task.TYPE nl.sense_os.cortex.coaching.MentalResilienceCoach.getSupportMentalResilienceTaskType ( )
static

Get the corresponding mental resilience task for support

Returns
The mental resilience Task.TYPE used for this domain
static Task.TYPE nl.sense_os.cortex.coaching.MentalResilienceCoach.getWorriesMentalResilienceTaskType ( )
static

Get the corresponding mental resilience task for worries

Returns
The mental resilience Task.TYPE used for this domain
boolean nl.sense_os.cortex.coaching.MentalResilienceCoach.manualInitialization ( JSONObject  goalMentalResilience)

Initialize with a manual goal

The Coach will be initialized with a manual goal for each task, this will be the target value for that mental resilience domain.

Parameters
goalMentalResilienceA JSONObject with as key the mental resilience task and as value the mental resilience percentage (0-100) as goal.
Returns
True if the initialization was successful
boolean nl.sense_os.cortex.coaching.MentalResilienceCoach.personalInitialization ( boolean  adaptive)

Initialize with a personal goal

Based on the Calibration values a baseline value will be selected.
The CalibrationCoach should not give the advice to run the CalibrationCoach,
otherwise the CalibrationCoach could have to little data for computing a baseline for this coach.

Parameters
adaptiveSet whether the Coach should be adaptive (update the goal based on progress)
Returns
True if the CalibrationCoach has a baseline value, else it will return false.
boolean nl.sense_os.cortex.coaching.MentalResilienceCoach.personalInitialization ( boolean  adaptive,
JSONObject  baselineMentalResilience 
)

Initialize with a personal goal

Based on the provided baseline mental resilience the coach will be initialized.

Parameters
adaptiveSet whether the Coach should be adaptive (update the goal based on progress)
baselineMentalResilienceA JSONObject with as key the mental resilience task and as value the mental resilience percentage (0-100) as goal.
Returns
True if the initialization succeeds.

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