← Documentation
ADS-IDAC Engine 5.0.0
BranchAction Class Reference

#include <BranchAction.h>

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

Public Member Functions

 BranchAction ()
 
virtual ~BranchAction ()
 
void copyBranchAction (BranchAction &)
 
void saveInfoToFile (std::ostream &)
 
std::string translateMessage ()
 
void saveBranchActionToFile (std::ofstream &)
 
void retrieveBranchActionFromFile (std::ifstream &)
 
void setActionTime (double)
 
double getActionTime ()
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from DecisionAction
 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)
 
- Public Member Functions inherited from TimerAndProbability
 TimerAndProbability ()
 
virtual ~TimerAndProbability ()
 
void setTimerAndProbability (double, double)
 
void copyTimerAndProbability (TimerAndProbability &)
 
void saveTimerAndProbabilityToFile (std::ofstream &)
 
void retrieveTimerAndProbabilityFromFile (std::ifstream &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from Timer
template<class Archive >
void timer_state_save (Archive &ar) const
 
template<class Archive >
void timer_state_load (Archive &ar)
 
double calculateRequiredTime ()
 
double calculateRequiredTime (double)
 
double calculateMeanRequiredTime ()
 
double calculateMeanRequiredTime (double, double)
 
double calculateWeibull_pdf (double)
 
 Timer ()
 
virtual ~Timer ()
 
void setRemainingTime (double)
 
void setTotalTimeRequired (double)
 
void setAlpha_Weibull (double)
 
void setBeta_Weibull (double)
 
void setT_Minimum (double)
 
double getTotalTimeRequired ()
 
double getRemainingTime ()
 
double reduceRemainingTime (double)
 
double getAlpha_Weibull ()
 
double getBeta_Weibull ()
 
double getT_Minimum ()
 
void copyTimer (Timer &)
 
int getNumberOfIntervals () const
 
void setNumberOfIntervals (int)
 
int getNumberOfIntervalsPassed () const
 
void setNumberOfIntervalsPassed (int)
 
double getTimeAtDemand () const
 
void setTimeAtDemand (double)
 
void saveTimerToFile (std::ofstream &)
 
void retrieveTimerFromFile (std::ifstream &)
 
bool checkIfIsIdenticalTimer (Timer &)
 
void setBothTotalTimeRequiredAndRemainingTime (double)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from Probability
double calculateProbability ()
 
double calculateSurvivalProbability (double)
 
double gamma_log (double)
 
double beta_cdf_inv (double, double, double)
 
double beta_cdf (double, double, double)
 
double beta_pdf (double, double, double)
 
double beta_inc (double, double, double)
 
double beta (double, double)
 
double r8_huge ()
 
double r8_epsilon (void)
 
 Probability ()
 
virtual ~Probability ()
 
void setProbability (double)
 
double getProbability ()
 
void setAlpha_Parameter (double)
 
double getAlpha_Parameter ()
 
void setBeta_Parameter (double)
 
double getBeta_Parameter ()
 
void copyProbability (Probability &)
 
void saveProbabilityToFile (std::ofstream &)
 
void retrieveProbabilityFromFile (std::ifstream &)
 
double getFailureRate () const
 
void setFailureRate (double failure_rate)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from Communication
 Communication ()
 
 Communication (int, int)
 
virtual ~Communication ()
 
void setSender (int)
 
void setTypeOfCommunication (int)
 
void setTypeOfPauseActivity (int)
 
void setIntendedReceiver (int)
 
void setTimeOfCommunication (double)
 
void setSenderAndReceiver (int, int)
 
void setCommunicationPriority (int)
 
int getSender ()
 
int getIntendedReceiver ()
 
int getTypeOfCommunication ()
 
int getTypeOfPauseActivity ()
 
double getTimeOfCommunication ()
 
int getCommunicationPriority ()
 
void copyCommunication (Communication &)
 
void saveCommunicationToFile (std::ofstream &)
 
void retrieveCommunicationFromFile (std::ifstream &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from StringContainer
 StringContainer ()
 
 StringContainer (std::string)
 
virtual ~StringContainer ()
 
void setMessage (std::string)
 
std::string getMessage ()
 
void copyStringContainer (StringContainer &)
 
void saveStringContainerToFile (std::ofstream &)
 
void retrieveStringContainerFromFile (std::ifstream &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

double action_time
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 24 of file BranchAction.h.

Constructor & Destructor Documentation

◆ BranchAction()

BranchAction::BranchAction ( )

Definition at line 21 of file BranchAction.cpp.

References action_time.

◆ ~BranchAction()

BranchAction::~BranchAction ( )
virtual

Definition at line 25 of file BranchAction.cpp.

Member Function Documentation

◆ copyBranchAction()

void BranchAction::copyBranchAction ( BranchAction &  _bap)

Definition at line 30 of file BranchAction.cpp.

References action_time, Communication::copyCommunication(), DecisionAction::copyDecisionAction(), StringContainer::copyStringContainer(), TimerAndProbability::copyTimerAndProbability(), and getActionTime().

Referenced by ControlPanel::executeRequestToPlant(), OperatorAT::infoChunking(), and OperatorAT::performFollowInstructionStrategy().

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

◆ getActionTime()

double BranchAction::getActionTime ( )

Definition at line 29 of file BranchAction.cpp.

References action_time.

Referenced by copyBranchAction().

Here is the caller graph for this function:

◆ retrieveBranchActionFromFile()

void BranchAction::retrieveBranchActionFromFile ( std::ifstream &  )

Definition at line 105 of file BranchAction.cpp.

References action_time, Communication::retrieveCommunicationFromFile(), DecisionAction::retrieveDecisionActionFromFile(), StringContainer::retrieveStringContainerFromFile(), and TimerAndProbability::retrieveTimerAndProbabilityFromFile().

Here is the call graph for this function:

◆ saveBranchActionToFile()

void BranchAction::saveBranchActionToFile ( std::ofstream &  )

Definition at line 98 of file BranchAction.cpp.

References action_time, Communication::saveCommunicationToFile(), DecisionAction::saveDecisionActionToFile(), StringContainer::saveStringContainerToFile(), and TimerAndProbability::saveTimerAndProbabilityToFile().

Here is the call graph for this function:

◆ saveInfoToFile()

void BranchAction::saveInfoToFile ( std::ostream &  )

◆ serialize()

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

Definition at line 42 of file BranchAction.h.

References action_time.

◆ setActionTime()

void BranchAction::setActionTime ( double  x)

Definition at line 28 of file BranchAction.cpp.

References action_time.

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

Here is the caller graph for this function:

◆ translateMessage()

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 40 of file BranchAction.h.

Member Data Documentation

◆ action_time

double BranchAction::action_time
private

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