← Documentation
ADS-IDAC Engine 5.0.0
DisplayParameterValueRate Class Reference

#include <DisplayParameterValueRate.h>

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

Public Member Functions

 DisplayParameterValueRate ()
 
virtual ~DisplayParameterValueRate ()
 
void readInfoFromFile (std::ifstream &)
 
void readInfoFromFileWithoutDisplayName (std::ifstream &)
 
void copyDisplayParameterValueRate (DisplayParameterValueRate &)
 
void calculateRateOfChange ()
 
double getRateOfChange ()
 
void setRateOfChange (double)
 
int getNumOfItemForCalRate ()
 
void setNumOfItemForCalRate (int)
 
void addAValueIntoParHistory ()
 
void clear ()
 
void saveDisplayParameterValueRateToFile (std::ofstream &)
 
void retrieveDisplayParameterValueRateFromFile (std::ifstream &)
 
- Public Member Functions inherited from DisplayParameterValue
 DisplayParameterValue ()
 
virtual ~DisplayParameterValue ()
 
void setDisplayedParameterValue (double)
 
void setDisplayedParameterValueWhenFail (double)
 
double getDisplayedParameterValue ()
 
double getDisplayedParameterValueWhenFail ()
 
void updateDisplayedParameterValue ()
 
void readInfoFromFile (std::ifstream &)
 
void readInfoFromFileWithoutDisplayName (std::ifstream &)
 
void copyDisplayParameterValue (DisplayParameterValue &)
 
void saveDisplayParameterValueToFile (std::ofstream &)
 
void retrieveDisplayParameterValueFromFile (std::ifstream &)
 
- 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)
 

Public Attributes

std::deque< double > par_history
 
std::deque< double > time
 

Private Member Functions

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

Private Attributes

double rate_of_change
 
int num_of_item_for_cal_rate
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 14 of file DisplayParameterValueRate.h.

Constructor & Destructor Documentation

◆ DisplayParameterValueRate()

DisplayParameterValueRate::DisplayParameterValueRate ( )

Definition at line 17 of file DisplayParameterValueRate.cpp.

References num_of_item_for_cal_rate, ParameterTrend, rate_of_change, and SystemDisplay::setTypeOfDisplay().

Here is the call graph for this function:

◆ ~DisplayParameterValueRate()

DisplayParameterValueRate::~DisplayParameterValueRate ( )
virtual

Definition at line 24 of file DisplayParameterValueRate.cpp.

Member Function Documentation

◆ addAValueIntoParHistory()

void DisplayParameterValueRate::addAValueIntoParHistory ( )

Definition at line 86 of file DisplayParameterValueRate.cpp.

References DisplayParameterValue::displayed_parameter_value, SystemDisplay::getCorrespondingSystemParameterValue(), DisplayParameterValue::getDisplayedParameterValueWhenFail(), SystemDisplay::getFunctionalState(), num_of_item_for_cal_rate, par_history, r5pars_, sim::State::Succeed, and time.

Here is the call graph for this function:

◆ calculateRateOfChange()

void DisplayParameterValueRate::calculateRateOfChange ( )

Definition at line 48 of file DisplayParameterValueRate.cpp.

References num_of_item_for_cal_rate, par_history, rate_of_change, DisplayParameterValue::setDisplayedParameterValue(), and time.

Here is the call graph for this function:

◆ clear()

void DisplayParameterValueRate::clear ( )

Definition at line 116 of file DisplayParameterValueRate.cpp.

References par_history, and time.

◆ copyDisplayParameterValueRate()

void DisplayParameterValueRate::copyDisplayParameterValueRate ( DisplayParameterValueRate &  dpv)

Definition at line 34 of file DisplayParameterValueRate.cpp.

References DisplayParameterValue::copyDisplayParameterValue(), getNumOfItemForCalRate(), getRateOfChange(), num_of_item_for_cal_rate, par_history, rate_of_change, and time.

Here is the call graph for this function:

◆ getNumOfItemForCalRate()

int DisplayParameterValueRate::getNumOfItemForCalRate ( )

Definition at line 84 of file DisplayParameterValueRate.cpp.

References num_of_item_for_cal_rate.

Referenced by copyDisplayParameterValueRate().

Here is the caller graph for this function:

◆ getRateOfChange()

double DisplayParameterValueRate::getRateOfChange ( )

Definition at line 82 of file DisplayParameterValueRate.cpp.

References rate_of_change.

Referenced by copyDisplayParameterValueRate(), ControlPanel::executeRequestToPlant(), and ReasonMachine::GetAParameterValueImediately().

Here is the caller graph for this function:

◆ readInfoFromFile()

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

Definition at line 28 of file DisplayParameterValueRate.cpp.

References DisplayParameterValue::readInfoFromFile().

Here is the call graph for this function:

◆ readInfoFromFileWithoutDisplayName()

void DisplayParameterValueRate::readInfoFromFileWithoutDisplayName ( std::ifstream &  )

Definition at line 31 of file DisplayParameterValueRate.cpp.

References DisplayParameterValue::readInfoFromFileWithoutDisplayName().

Here is the call graph for this function:

◆ retrieveDisplayParameterValueRateFromFile()

void DisplayParameterValueRate::retrieveDisplayParameterValueRateFromFile ( std::ifstream &  )

Definition at line 144 of file DisplayParameterValueRate.cpp.

References num_of_item_for_cal_rate, par_history, rate_of_change, DisplayParameterValue::retrieveDisplayParameterValueFromFile(), and time.

Here is the call graph for this function:

◆ saveDisplayParameterValueRateToFile()

void DisplayParameterValueRate::saveDisplayParameterValueRateToFile ( std::ofstream &  )

Definition at line 120 of file DisplayParameterValueRate.cpp.

References e, num_of_item_for_cal_rate, par_history, rate_of_change, DisplayParameterValue::saveDisplayParameterValueToFile(), and time.

Here is the call graph for this function:

◆ serialize()

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

Definition at line 36 of file DisplayParameterValueRate.h.

References par_history, rate_of_change, and time.

◆ setNumOfItemForCalRate()

void DisplayParameterValueRate::setNumOfItemForCalRate ( int  n)

Definition at line 85 of file DisplayParameterValueRate.cpp.

References num_of_item_for_cal_rate.

◆ setRateOfChange()

void DisplayParameterValueRate::setRateOfChange ( double  x)

Definition at line 83 of file DisplayParameterValueRate.cpp.

References rate_of_change.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 34 of file DisplayParameterValueRate.h.

Member Data Documentation

◆ num_of_item_for_cal_rate

◆ par_history

◆ rate_of_change

◆ time


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