← Documentation
ADS-IDAC Engine 5.0.0
ControlState Class Reference

#include <ControlState.h>

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

Public Member Functions

 ControlState ()
 
virtual ~ControlState ()
 
void setDisplayedControlStateWhenFail (int)
 
int getDisplayedControlStateWhenFail ()
 
void setDisplayedControlState (int)
 
int getDisplayedControlState ()
 
void readInfoFromFile (std::ifstream &)
 
void updateDisplayedControlState (SystemModule &, int)
 
void initiateDisplayedControlState (SystemModule &)
 
std::string getDisplayedControlStateString ()
 
void performDisplayedControlState (SystemModule &, int)
 
void performValueControl (SystemModule &, double)
 
void copyControlState (ControlState &)
 
void saveControlStateToFile (std::ofstream &)
 
void retrieveControlStateFromFile (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

int displyed_control_state
 
int displyed_control_state_when_fail
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 20 of file ControlState.h.

Constructor & Destructor Documentation

◆ ControlState()

ControlState::ControlState ( )

Definition at line 19 of file ControlState.cpp.

References sim::State::Auto, ControlState, displyed_control_state, displyed_control_state_when_fail, and SystemControl::setTypeOfControl().

Here is the call graph for this function:

◆ ~ControlState()

ControlState::~ControlState ( )
virtual

Definition at line 26 of file ControlState.cpp.

Member Function Documentation

◆ copyControlState()

void ControlState::copyControlState ( ControlState &  _cs)

Definition at line 285 of file ControlState.cpp.

References SystemControl::copySystemControl(), displyed_control_state, displyed_control_state_when_fail, getDisplayedControlState(), and getDisplayedControlStateWhenFail().

Here is the call graph for this function:

◆ getDisplayedControlState()

int ControlState::getDisplayedControlState ( )

Definition at line 33 of file ControlState.cpp.

References displyed_control_state.

Referenced by copyControlState().

Here is the caller graph for this function:

◆ getDisplayedControlStateString()

string ControlState::getDisplayedControlStateString ( )

◆ getDisplayedControlStateWhenFail()

int ControlState::getDisplayedControlStateWhenFail ( )

Definition at line 31 of file ControlState.cpp.

References displyed_control_state_when_fail.

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

Here is the caller graph for this function:

◆ initiateDisplayedControlState()

◆ performDisplayedControlState()

◆ performValueControl()

void ControlState::performValueControl ( SystemModule &  _th,
double  _control_value 
)

Definition at line 118 of file ControlState.cpp.

References AdsSimErr, SimulationContext::Branch_center, g_sim, SystemModule::getComponentFromSystemMap(), ControlElement::getCorrespondingComponentNameOfControl(), SystemControl::getPtrToCorrespondingInteractiveVariable(), r5pars_, ControlElement::setControlValue(), setDisplayedControlState(), 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 ControlState::readInfoFromFile ( std::ifstream &  )

Definition at line 34 of file ControlState.cpp.

References SimulationContext::Branch_center, sim::State::Close, displyed_control_state_when_fail, g_sim, ControlElement::getDisplayName(), NoKB, sim::None, sim::State::Off, sim::State::On, sim::State::Open, r5pars_, ControlElement::readInfoFromFile(), BranchRecord::setTempESMessage(), and BranchRecord::setTempTypeOfConsequence().

Here is the call graph for this function:

◆ retrieveControlStateFromFile()

void ControlState::retrieveControlStateFromFile ( std::ifstream &  )

Definition at line 294 of file ControlState.cpp.

References displyed_control_state, displyed_control_state_when_fail, and SystemControl::retrieveSystemControlFromFile().

Here is the call graph for this function:

◆ saveControlStateToFile()

void ControlState::saveControlStateToFile ( std::ofstream &  )

Definition at line 290 of file ControlState.cpp.

References displyed_control_state, displyed_control_state_when_fail, and SystemControl::saveSystemControlToFile().

Here is the call graph for this function:

◆ serialize()

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

Definition at line 45 of file ControlState.h.

References displyed_control_state.

◆ setDisplayedControlState()

void ControlState::setDisplayedControlState ( int  n)

Definition at line 32 of file ControlState.cpp.

References displyed_control_state.

Referenced by initiateDisplayedControlState(), performDisplayedControlState(), performValueControl(), and updateDisplayedControlState().

Here is the caller graph for this function:

◆ setDisplayedControlStateWhenFail()

void ControlState::setDisplayedControlStateWhenFail ( int  n)

Definition at line 30 of file ControlState.cpp.

References displyed_control_state_when_fail.

◆ updateDisplayedControlState()

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 42 of file ControlState.h.

Member Data Documentation

◆ displyed_control_state

◆ displyed_control_state_when_fail


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