← Documentation
ADS-IDAC Engine 5.0.0
MentalControl Class Reference

#include <MentalControl.h>

Inheritance diagram for MentalControl:
[legend]
Collaboration diagram for MentalControl:
[legend]

Public Member Functions

 MentalControl ()
 
 MentalControl (ControlElement *)
 
virtual ~MentalControl ()
 
void setPerceivedControlValue (double)
 
double getPerceivedControlValue ()
 
void copyMentalControl (MentalControl &)
 
void saveMentalControlToFile (std::ofstream &)
 
void retrieveMentalControlFromFile (std::ifstream &)
 
bool checkIfIsIdenticalMentalControl (MentalControl &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from ControlElement
 ControlElement ()
 
virtual ~ControlElement ()
 
void setDisplayName (std::string)
 
void setCorrespondingComponentNameOfControl (std::string)
 
void setNominalTimeRequiredToActOnThisControl (double)
 
void setValueForOnOrFullyOpen (double)
 
void setValueForOffOrFullyClose (double)
 
void setValueForNeutralState (double)
 
std::string getDisplayName ()
 
std::string getCorrespondingComponentNameOfControl ()
 
double getNominalTimeRequiredToActOnThisControl ()
 
double getValueForOnOrFullyOpen ()
 
double getValueForOffOrFullyClose ()
 
double getValueForNeutralState ()
 
void readInfoFromFile (std::ifstream &)
 
void setTimeAtWhichThisControlIsActivated (double)
 
double getTimeAtWhichThisControlIsActivated ()
 
void copyControlElement (ControlElement &)
 
void setControlValue (double)
 
double getControlValue ()
 
void saveControlElementToFile (std::ofstream &)
 
void retrieveControlElementFromFile (std::ifstream &)
 
bool checkIfIsIdenticalControlElement (ControlElement &)
 
void setTimeRatioForAction (double)
 
double getTimeRatioForAction ()
 
double getAdjustedTimeRequiredToPerformTheAction ()
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from MentalInfo
 MentalInfo ()
 
virtual ~MentalInfo ()
 
void setTimeAtWhichThisInfoIsPerceived (double)
 
double getTimeAtWhichThisInfoIsPerceived ()
 
void setTypeOfMentalInfo (int)
 
int getTypeOfMentalInfo ()
 
void copyMentalInfo (MentalInfo &)
 
void saveMentalInfoToFile (std::ofstream &)
 
void retrieveMentalInfoFromFile (std::ifstream &)
 
bool checkIfIsIdenticalMentalInfo (MentalInfo &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

double perceived_control_value
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 21 of file MentalControl.h.

Constructor & Destructor Documentation

◆ MentalControl() [1/2]

MentalControl::MentalControl ( )

Definition at line 17 of file MentalControl.cpp.

References sim::State::Control, perceived_control_value, and MentalInfo::setTypeOfMentalInfo().

Here is the call graph for this function:

◆ MentalControl() [2/2]

MentalControl::MentalControl ( ControlElement *  _ce)

Definition at line 27 of file MentalControl.cpp.

References sim::State::Control, ControlElement::copyControlElement(), r5pars_, MentalInfo::setTimeAtWhichThisInfoIsPerceived(), and MentalInfo::setTypeOfMentalInfo().

Here is the call graph for this function:

◆ ~MentalControl()

MentalControl::~MentalControl ( )
virtual

Definition at line 23 of file MentalControl.cpp.

Member Function Documentation

◆ checkIfIsIdenticalMentalControl()

bool MentalControl::checkIfIsIdenticalMentalControl ( MentalControl &  _mc)

Definition at line 49 of file MentalControl.cpp.

References ControlElement::checkIfIsIdenticalControlElement(), MentalInfo::checkIfIsIdenticalMentalInfo(), getPerceivedControlValue(), and perceived_control_value.

Referenced by DecisionAction::checkIfIsIdenticalDecisionAction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyMentalControl()

void MentalControl::copyMentalControl ( MentalControl &  _mcp)

Definition at line 34 of file MentalControl.cpp.

References ControlElement::copyControlElement(), MentalInfo::copyMentalInfo(), getPerceivedControlValue(), and perceived_control_value.

Referenced by DecisionAction::copyDecisionAction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPerceivedControlValue()

double MentalControl::getPerceivedControlValue ( )

Definition at line 33 of file MentalControl.cpp.

References perceived_control_value.

Referenced by DecisionAction::checkForMatch(), checkIfIsIdenticalMentalControl(), and copyMentalControl().

Here is the caller graph for this function:

◆ retrieveMentalControlFromFile()

void MentalControl::retrieveMentalControlFromFile ( std::ifstream &  )

Definition at line 44 of file MentalControl.cpp.

References perceived_control_value, ControlElement::retrieveControlElementFromFile(), and MentalInfo::retrieveMentalInfoFromFile().

Referenced by DecisionAction::retrieveDecisionActionFromFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveMentalControlToFile()

void MentalControl::saveMentalControlToFile ( std::ofstream &  )

Definition at line 39 of file MentalControl.cpp.

References perceived_control_value, ControlElement::saveControlElementToFile(), and MentalInfo::saveMentalInfoToFile().

Referenced by DecisionAction::saveDecisionActionToFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ serialize()

template<class Archive >
void MentalControl::serialize ( Archive &  ar,
const unsigned int  version 
)
inline

Definition at line 35 of file MentalControl.h.

References perceived_control_value.

◆ setPerceivedControlValue()

void MentalControl::setPerceivedControlValue ( double  x)

Definition at line 32 of file MentalControl.cpp.

References perceived_control_value.

Referenced by DecisionAction::readInfoFromFile().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 33 of file MentalControl.h.

Member Data Documentation

◆ perceived_control_value


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