|
ADS-IDAC Engine 5.0.0
|
#include <BranchAction.h>
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 |
Definition at line 24 of file BranchAction.h.
| BranchAction::BranchAction | ( | ) |
Definition at line 21 of file BranchAction.cpp.
References action_time.
|
virtual |
Definition at line 25 of file BranchAction.cpp.
| 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().
| double BranchAction::getActionTime | ( | ) |
Definition at line 29 of file BranchAction.cpp.
References action_time.
Referenced by copyBranchAction().
| 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().
| 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().
| void BranchAction::saveInfoToFile | ( | std::ostream & | ) |
Definition at line 81 of file BranchAction.cpp.
References sim::Action::Direct, g_sim, DecisionAction::getActionName(), ControlElement::getControlValue(), Communication::getIntendedReceiver(), StringContainer::getMessage(), Probability::getProbability(), Timer::getRemainingTime(), Communication::getSender(), ConvertToString::getString(), Communication::getTimeOfCommunication(), sim::None, ConvertToString::removeQuotationAndSpace(), and SimulationContext::Translator.
|
inline |
Definition at line 42 of file BranchAction.h.
References action_time.
| 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().
| string BranchAction::translateMessage | ( | ) |
Definition at line 37 of file BranchAction.cpp.
References ControlPanelControl::control_map, ControlPanel::controls, sim::State::FailedP, g_sim, DecisionAction::getActionName(), ControlElement::getControlValue(), SystemControl::getFunctionalState(), Communication::getIntendedReceiver(), StringContainer::getMessage(), Probability::getProbability(), Communication::getSender(), ConvertToString::getString(), SimulationContext::Indicator, StringContainer::message, sim::None, ConvertToString::removeQuotationAndSpace(), and SimulationContext::Translator.
|
friend |
Definition at line 40 of file BranchAction.h.
|
private |
Definition at line 52 of file BranchAction.h.
Referenced by BranchAction(), copyBranchAction(), getActionTime(), retrieveBranchActionFromFile(), saveBranchActionToFile(), serialize(), and setActionTime().