← Documentation
ADS-IDAC Engine 5.0.0
DecisionAction Class Reference

#include <DecisionAction.h>

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

Public Member Functions

 DecisionAction ()
 
virtual ~DecisionAction ()
 
void setActionName (std::string)
 
std::string getActionName ()
 
void copyDecisionAction (DecisionAction &)
 
void readInfoFromFile (std::ifstream &)
 
int checkForMatch (std::string, double)
 
void saveDecisionActionToFile (std::ofstream &)
 
void retrieveDecisionActionFromFile (std::ifstream &)
 
bool checkIfIsIdenticalDecisionAction (DecisionAction &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from StateOfActivation
 StateOfActivation ()
 
virtual ~StateOfActivation ()
 
int getStateOfActivation ()
 
void setStateOfActivation (int)
 
void copyStateOfActivation (StateOfActivation &)
 
void saveStateOfActivationToFile (std::ofstream &)
 
void retrieveStateOfActivationFromFile (std::ifstream &)
 
void resetStateOfActivation ()
 
bool checkIfIsIdenticalStateOfActivation (StateOfActivation &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from MentalControl
 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

std::string action_name
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 18 of file DecisionAction.h.

Constructor & Destructor Documentation

◆ DecisionAction()

DecisionAction::DecisionAction ( )

Definition at line 19 of file DecisionAction.cpp.

References sim::Action::Action, action_name, and MentalInfo::setTypeOfMentalInfo().

Here is the call graph for this function:

◆ ~DecisionAction()

DecisionAction::~DecisionAction ( )
virtual

Definition at line 25 of file DecisionAction.cpp.

Member Function Documentation

◆ checkForMatch()

int DecisionAction::checkForMatch ( std::string  ,
double   
)

Definition at line 41 of file DecisionAction.cpp.

References action_name, ControlElement::control_value, sim::State::Failed, MentalControl::getPerceivedControlValue(), StateOfActivation::getStateOfActivation(), StateOfActivation::setStateOfActivation(), and sim::State::Succeed.

Here is the call graph for this function:

◆ checkIfIsIdenticalDecisionAction()

bool DecisionAction::checkIfIsIdenticalDecisionAction ( DecisionAction &  _da)

Definition at line 84 of file DecisionAction.cpp.

References action_name, MentalControl::checkIfIsIdenticalMentalControl(), StateOfActivation::checkIfIsIdenticalStateOfActivation(), and getActionName().

Here is the call graph for this function:

◆ copyDecisionAction()

void DecisionAction::copyDecisionAction ( DecisionAction &  _dap)

Definition at line 31 of file DecisionAction.cpp.

References action_name, MentalControl::copyMentalControl(), StateOfActivation::copyStateOfActivation(), and getActionName().

Referenced by BranchAction::copyBranchAction(), OperatorAT::infoChunking(), and OperatorDM::infoChunking().

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

◆ getActionName()

string DecisionAction::getActionName ( )

Definition at line 30 of file DecisionAction.cpp.

References action_name.

Referenced by checkIfIsIdenticalDecisionAction(), copyDecisionAction(), ControlPanel::executeRequestToPlant(), OperatorAT::infoChunking(), OperatorDM::infoChunking(), BranchAction::saveInfoToFile(), and BranchAction::translateMessage().

Here is the caller graph for this function:

◆ readInfoFromFile()

void DecisionAction::readInfoFromFile ( std::ifstream &  )

Definition at line 36 of file DecisionAction.cpp.

References action_name, MentalControl::perceived_control_value, and MentalControl::setPerceivedControlValue().

Here is the call graph for this function:

◆ retrieveDecisionActionFromFile()

void DecisionAction::retrieveDecisionActionFromFile ( std::ifstream &  )

Definition at line 79 of file DecisionAction.cpp.

References action_name, MentalControl::retrieveMentalControlFromFile(), and StateOfActivation::retrieveStateOfActivationFromFile().

Referenced by BranchAction::retrieveBranchActionFromFile().

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

◆ saveDecisionActionToFile()

void DecisionAction::saveDecisionActionToFile ( std::ofstream &  )

Definition at line 74 of file DecisionAction.cpp.

References action_name, MentalControl::saveMentalControlToFile(), and StateOfActivation::saveStateOfActivationToFile().

Referenced by BranchAction::saveBranchActionToFile().

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

◆ serialize()

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

Definition at line 33 of file DecisionAction.h.

References action_name.

◆ setActionName()

void DecisionAction::setActionName ( std::string  )

Definition at line 29 of file DecisionAction.cpp.

References action_name.

Referenced by ProcedureStepUnit::executeAction(), ProcedureStepUnit::executeNonResponseAction(), and DiagnosisActionModule::onceThroughProcessForReasoningStrategy().

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 31 of file DecisionAction.h.

Member Data Documentation

◆ action_name


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