← Documentation
ADS-IDAC Engine 5.0.0
ControlValue Class Reference

#include <ControlValue.h>

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

Public Member Functions

 ControlValue ()
 
virtual ~ControlValue ()
 
void setDisplayedControlValue (double)
 
void setDisplayedControlValueWhenFail (double)
 
double getDisplayedControlValue ()
 
double getDisplayedControlValueWhenFail ()
 
void readInfoFromFile (std::ifstream &)
 
void updateDisplayedControlValue (SystemModule &, double)
 
void performControl (SystemModule &, double)
 
void copyControlValue (ControlValue &)
 
void saveControlValueToFile (std::ofstream &)
 
void retrieveControlValueFromFile (std::ifstream &)
 
- Public Member Functions inherited from SystemControl
 SystemControl ()
 
virtual ~SystemControl ()
 
void setFunctionalState (int)
 
void setTypeOfControl (DisplayType)
 
void setPtrToCorrespondingInteractiveVariable (InteractiveVariable *)
 
int getFunctionalState ()
 
DisplayType getTypeOfControl ()
 
InteractiveVariable * getPtrToCorrespondingInteractiveVariable ()
 
void copySystemControl (SystemControl &)
 
void saveSystemControlToFile (std::ofstream &)
 
void retrieveSystemControlFromFile (std::ifstream &)
 
void initiateControlValue ()
 
- 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 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)
 

Private Member Functions

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

Private Attributes

double displayed_control_value
 
double displayed_control_value_when_fail
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 20 of file ControlValue.h.

Constructor & Destructor Documentation

◆ ControlValue()

ControlValue::ControlValue ( )

Definition at line 20 of file ControlValue.cpp.

References ControlValue, displayed_control_value, displayed_control_value_when_fail, and SystemControl::setTypeOfControl().

Here is the call graph for this function:

◆ ~ControlValue()

ControlValue::~ControlValue ( )
virtual

Definition at line 27 of file ControlValue.cpp.

Member Function Documentation

◆ copyControlValue()

void ControlValue::copyControlValue ( ControlValue &  _cv)

Definition at line 94 of file ControlValue.cpp.

References SystemControl::copySystemControl(), displayed_control_value, displayed_control_value_when_fail, getDisplayedControlValue(), and getDisplayedControlValueWhenFail().

Here is the call graph for this function:

◆ getDisplayedControlValue()

double ControlValue::getDisplayedControlValue ( )

Definition at line 33 of file ControlValue.cpp.

References displayed_control_value.

Referenced by copyControlValue().

Here is the caller graph for this function:

◆ getDisplayedControlValueWhenFail()

double ControlValue::getDisplayedControlValueWhenFail ( )

Definition at line 34 of file ControlValue.cpp.

References displayed_control_value_when_fail.

Referenced by copyControlValue(), HWReliabilityModule::readSystemOperationReliabilityInfoFromFile(), HWReliabilityModule::readSystemReliabilityFTInfoFromFile(), and HWReliabilityModule::readSystemReliabilityInfoFromFile().

Here is the caller graph for this function:

◆ performControl()

void ControlValue::performControl ( SystemModule &  _th,
double  _control_value 
)

Definition at line 67 of file ControlValue.cpp.

References AdsSimErr, SimulationContext::Branch_center, g_sim, SystemModule::getComponentFromSystemMap(), ControlElement::getCorrespondingComponentNameOfControl(), SystemControl::getPtrToCorrespondingInteractiveVariable(), r5pars_, ControlElement::setControlValue(), setDisplayedControlValue(), InteractiveVariable::setInputValue(), InteractiveVariable::setNeedToInteract(), SystemControl::setPtrToCorrespondingInteractiveVariable(), BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Referenced by ControlPanel::executeRequestToPlant(), and ControlPanelControl::executeValueControl().

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

◆ readInfoFromFile()

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

Definition at line 35 of file ControlValue.cpp.

References displayed_control_value_when_fail, and ControlElement::readInfoFromFile().

Here is the call graph for this function:

◆ retrieveControlValueFromFile()

void ControlValue::retrieveControlValueFromFile ( std::ifstream &  )

Definition at line 103 of file ControlValue.cpp.

References displayed_control_value, displayed_control_value_when_fail, and SystemControl::retrieveSystemControlFromFile().

Here is the call graph for this function:

◆ saveControlValueToFile()

void ControlValue::saveControlValueToFile ( std::ofstream &  )

Definition at line 99 of file ControlValue.cpp.

References displayed_control_value, displayed_control_value_when_fail, and SystemControl::saveSystemControlToFile().

Here is the call graph for this function:

◆ serialize()

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

Definition at line 44 of file ControlValue.h.

References displayed_control_value.

◆ setDisplayedControlValue()

void ControlValue::setDisplayedControlValue ( double  x)

Definition at line 31 of file ControlValue.cpp.

References displayed_control_value.

Referenced by performControl(), and updateDisplayedControlValue().

Here is the caller graph for this function:

◆ setDisplayedControlValueWhenFail()

void ControlValue::setDisplayedControlValueWhenFail ( double  x)

Definition at line 32 of file ControlValue.cpp.

References displayed_control_value_when_fail.

◆ updateDisplayedControlValue()

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 40 of file ControlValue.h.

Member Data Documentation

◆ displayed_control_value

◆ displayed_control_value_when_fail


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