← Documentation
ADS-IDAC Engine 5.0.0
DisplaySupportSystemState Class Reference

#include <DisplaySupportSystemState.h>

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

Public Member Functions

 DisplaySupportSystemState ()
 
virtual ~DisplaySupportSystemState ()
 
int getDisplayedSupportSystemOperationalState () const
 
void setDisplayedSupportSystemOperationalState (int displayed_support_system_operational_state)
 
int getDisplayedSupportSystemOperationalStateWhenFail () const
 
void setDisplayedSupportSystemOperationalStateWhenFail (int displayed_support_system_operational_state_when_fail)
 
void readInfoFromFile (std::ifstream &fin)
 
void updateDisplayedSupportSystemOperationalState (double failure_probability)
 
void copyDisplaySupportSystemState (DisplaySupportSystemState &)
 
void saveDisplaySupportSystemStateToFile (std::ofstream &)
 
void retrieveDisplaySupportSystemStateFromFile (std::ifstream &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from SystemDisplay
 SystemDisplay ()
 
virtual ~SystemDisplay ()
 
void setTypeOfDisplay (DisplayType type)
 
void setFunctionalState (int state)
 
void readInfoFromFile (std::ifstream &)
 
void readInfoFromFileWithoutDisplayName (std::ifstream &)
 
DisplayType getTypeOfDisplay ()
 
int getFunctionalState ()
 
double getCorrespondingSystemParameterValue ()
 
double getCorrespondingHeatStructureValue (int)
 
void setPtrToCorrespondingTHElement (THElement *ptr)
 
THElement * getPtrToCorrespondingTHElement ()
 
void setCorrespondingSystemParameterUnit ()
 
void copySystemDisplay (SystemDisplay &)
 
void setCorrespondingSystemParameterNameInNumber (int name)
 
int getCorrespondingSystemParameterNameInNumber ()
 
void saveSystemDisplayToFile (std::ofstream &)
 
void retrieveSystemDisplayFromFile (std::ifstream &)
 
- Public Member Functions inherited from DisplayElement
 DisplayElement ()
 
virtual ~DisplayElement ()
 
void setDisplayName (std::string)
 
void setCorrespondingSystemName (std::string)
 
void setCorrespondingSystemParameterName (std::string)
 
void setTimeRequiredForCheckingThisDisplay (double)
 
void setCorrespondingSystemParameterUnit (std::string)
 
std::string getCorrespondingSystemName ()
 
std::string getCorrespondingSystemParameterName ()
 
double getTimeRequiredForCheckingThisDisplay ()
 
std::string getCorrespondingSystemParameterUnit ()
 
std::string getDisplayName ()
 
void readInfoFromFile (std::ifstream &)
 
void readInfoFromFileWithoutDisplayName (std::ifstream &)
 
void copyDisplayElement (DisplayElement &)
 
void saveDisplayElementToFile (std::ofstream &)
 
void retrieveDisplayElementFromFile (std::ifstream &)
 
bool checkIfIsIdenticalDisplayElement (DisplayElement &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

int displayed_support_system_operational_state
 
int displayed_support_system_operational_state_when_fail
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 13 of file DisplaySupportSystemState.h.

Constructor & Destructor Documentation

◆ DisplaySupportSystemState()

DisplaySupportSystemState::DisplaySupportSystemState ( )

Definition at line 10 of file DisplaySupportSystemState.cpp.

References displayed_support_system_operational_state, displayed_support_system_operational_state_when_fail, DisplayElement::setCorrespondingSystemParameterUnit(), SystemDisplay::setTypeOfDisplay(), and SupportSystemState.

Here is the call graph for this function:

◆ ~DisplaySupportSystemState()

DisplaySupportSystemState::~DisplaySupportSystemState ( )
virtual

Definition at line 18 of file DisplaySupportSystemState.cpp.

Member Function Documentation

◆ copyDisplaySupportSystemState()

void DisplaySupportSystemState::copyDisplaySupportSystemState ( DisplaySupportSystemState &  _dsss)

Definition at line 73 of file DisplaySupportSystemState.cpp.

References SystemDisplay::copySystemDisplay(), displayed_support_system_operational_state, displayed_support_system_operational_state_when_fail, getDisplayedSupportSystemOperationalState(), and getDisplayedSupportSystemOperationalStateWhenFail().

Here is the call graph for this function:

◆ getDisplayedSupportSystemOperationalState()

int DisplaySupportSystemState::getDisplayedSupportSystemOperationalState ( ) const

Definition at line 21 of file DisplaySupportSystemState.cpp.

References displayed_support_system_operational_state.

Referenced by SupportSystemReliabilityUnit::checkAndActivateSupportSystemFailure(), copyDisplaySupportSystemState(), ControlPanel::executeRequestToPlant(), and ReasonMachine::GetASupportSystemStateImediately().

Here is the caller graph for this function:

◆ getDisplayedSupportSystemOperationalStateWhenFail()

int DisplaySupportSystemState::getDisplayedSupportSystemOperationalStateWhenFail ( ) const

Definition at line 27 of file DisplaySupportSystemState.cpp.

References displayed_support_system_operational_state_when_fail.

Referenced by copyDisplaySupportSystemState().

Here is the caller graph for this function:

◆ readInfoFromFile()

void DisplaySupportSystemState::readInfoFromFile ( std::ifstream &  fin)

Definition at line 34 of file DisplaySupportSystemState.cpp.

References sim::State::Close, DisplayElement::display_name, displayed_support_system_operational_state, displayed_support_system_operational_state_when_fail, sim::State::Off, sim::State::On, sim::State::Open, and DisplayElement::setDisplayName().

Here is the call graph for this function:

◆ retrieveDisplaySupportSystemStateFromFile()

void DisplaySupportSystemState::retrieveDisplaySupportSystemStateFromFile ( std::ifstream &  )

Definition at line 83 of file DisplaySupportSystemState.cpp.

References displayed_support_system_operational_state, displayed_support_system_operational_state_when_fail, and SystemDisplay::retrieveSystemDisplayFromFile().

Here is the call graph for this function:

◆ saveDisplaySupportSystemStateToFile()

void DisplaySupportSystemState::saveDisplaySupportSystemStateToFile ( std::ofstream &  )

Definition at line 78 of file DisplaySupportSystemState.cpp.

References displayed_support_system_operational_state, displayed_support_system_operational_state_when_fail, and SystemDisplay::saveSystemDisplayToFile().

Here is the call graph for this function:

◆ serialize()

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

◆ setDisplayedSupportSystemOperationalState()

void DisplaySupportSystemState::setDisplayedSupportSystemOperationalState ( int  displayed_support_system_operational_state)

◆ setDisplayedSupportSystemOperationalStateWhenFail()

void DisplaySupportSystemState::setDisplayedSupportSystemOperationalStateWhenFail ( int  displayed_support_system_operational_state_when_fail)

◆ updateDisplayedSupportSystemOperationalState()

void DisplaySupportSystemState::updateDisplayedSupportSystemOperationalState ( double  failure_probability)

Definition at line 52 of file DisplaySupportSystemState.cpp.

References sim::State::Close, displayed_support_system_operational_state, displayed_support_system_operational_state_when_fail, SystemDisplay::getFunctionalState(), sim::State::Off, sim::State::On, sim::State::Open, and sim::State::Succeed.

Referenced by SupportSystemReliabilityUnit::updateDisplayState().

Here is the call graph for this function:
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 26 of file DisplaySupportSystemState.h.

Member Data Documentation

◆ displayed_support_system_operational_state

◆ displayed_support_system_operational_state_when_fail


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