← Documentation
ADS-IDAC Engine 5.0.0
MentalAlarm Class Reference

#include <MentalAlarm.h>

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

Public Member Functions

 MentalAlarm ()
 
virtual ~MentalAlarm ()
 
void setObservedAlarmState (int)
 
int getObservedAlarmState ()
 
void copyMentalAlarm (MentalAlarm &)
 
void saveMentalAlarmToFile (std::ofstream &)
 
void retrieveMentalAlarmFromFile (std::ifstream &)
 
bool checkIfIsIdenticalMentalAlarm (MentalAlarm &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from AlarmElement
 AlarmElement ()
 
virtual ~AlarmElement ()
 
void copyAlarmElement (AlarmElement &)
 
void setAlarmName (std::string)
 
std::string getAlarmName ()
 
void readInfoFromFile (std::ifstream &)
 
void setCorrespondingIndicatorName (std::string)
 
void setDisplayedAlarmState (int)
 
void setImportanceOfTheAlarm (double)
 
void setDisplayedOperatorControlState (int)
 
std::string getCorrespondingIndicatorName ()
 
std::string getDisplayedAlarmStateString ()
 
int getDisplayedAlarmState ()
 
double getImportanceOfTheAlarm ()
 
int getDisplayedOperatorControlState ()
 
void setTimeRequiredToCheckThisAlarm (double)
 
double getTimeRequiredToCheckThisAlarm ()
 
void setTimeAtWhichThisAlarmIsActivated (double)
 
double getTimeAtWhichThisAlarmIsActivated ()
 
void saveAlarmElementToFile (std::ofstream &)
 
void retrieveAlarmElementFromFile (std::ifstream &)
 
bool checkIfIsIdenticalAlarmElement (AlarmElement &)
 
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

int observed_alarm_state
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 17 of file MentalAlarm.h.

Constructor & Destructor Documentation

◆ MentalAlarm()

MentalAlarm::MentalAlarm ( )

Definition at line 17 of file MentalAlarm.cpp.

References sim::Comm::AlarmState, sim::None, observed_alarm_state, r5pars_, AlarmElement::setDisplayedAlarmState(), setObservedAlarmState(), MentalInfo::setTimeAtWhichThisInfoIsPerceived(), and MentalInfo::setTypeOfMentalInfo().

Here is the call graph for this function:

◆ ~MentalAlarm()

MentalAlarm::~MentalAlarm ( )
virtual

Definition at line 28 of file MentalAlarm.cpp.

Member Function Documentation

◆ checkIfIsIdenticalMentalAlarm()

bool MentalAlarm::checkIfIsIdenticalMentalAlarm ( MentalAlarm &  _ma)

Definition at line 49 of file MentalAlarm.cpp.

References AlarmElement::checkIfIsIdenticalAlarmElement(), MentalInfo::checkIfIsIdenticalMentalInfo(), getObservedAlarmState(), and observed_alarm_state.

Here is the call graph for this function:

◆ copyMentalAlarm()

void MentalAlarm::copyMentalAlarm ( MentalAlarm &  _map)

Definition at line 34 of file MentalAlarm.cpp.

References AlarmElement::copyAlarmElement(), MentalInfo::copyMentalInfo(), getObservedAlarmState(), and observed_alarm_state.

Referenced by ExpectationORUnit::assessExpectation(), DecisionExpectedAlarmState::copyDecisionExpectedAlarmState(), and OperatorAT::infoChunking().

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

◆ getObservedAlarmState()

int MentalAlarm::getObservedAlarmState ( )

◆ retrieveMentalAlarmFromFile()

void MentalAlarm::retrieveMentalAlarmFromFile ( std::ifstream &  )

Definition at line 44 of file MentalAlarm.cpp.

References observed_alarm_state, AlarmElement::retrieveAlarmElementFromFile(), and MentalInfo::retrieveMentalInfoFromFile().

Referenced by DecisionExpectedAlarmState::retrieveDecisionExpectedAlarmStateFromFile().

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

◆ saveMentalAlarmToFile()

void MentalAlarm::saveMentalAlarmToFile ( std::ofstream &  )

Definition at line 39 of file MentalAlarm.cpp.

References observed_alarm_state, AlarmElement::saveAlarmElementToFile(), and MentalInfo::saveMentalInfoToFile().

Referenced by DecisionExpectedAlarmState::saveDecisionExpectedAlarmStateToFile().

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

◆ serialize()

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

Definition at line 30 of file MentalAlarm.h.

References observed_alarm_state.

◆ setObservedAlarmState()

void MentalAlarm::setObservedAlarmState ( int  n)

Definition at line 32 of file MentalAlarm.cpp.

References observed_alarm_state.

Referenced by OperatorAT::infoChunking(), OperatorDM::infoChunking(), and MentalAlarm().

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 28 of file MentalAlarm.h.

Member Data Documentation

◆ observed_alarm_state


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