← Documentation
ADS-IDAC Engine 5.0.0
InteractiveVariable Class Reference

#include <InteractiveVariable.h>

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

Public Member Functions

 InteractiveVariable ()
 
virtual ~InteractiveVariable ()
 
void setInputValue (double val)
 
double getInputValue ()
 
void setDisplayValue (double val)
 
double getDisplayValue ()
 
void setNeedToInteract (bool flag)
 
bool getNeedToInteract ()
 
void executeInteractiveAction ()
 
void readInfoFromFile (std::ifstream &)
 
void setInteractiveAction (double)
 
void setSequenceInTheArray (int seq)
 
int getSequenceInTheArray ()
 
void copyInteractiveVariable (InteractiveVariable &)
 
void saveInteractiveVariableToFile (std::ofstream &)
 
void retrieveInteractiveVariableFromFile (std::ifstream &)
 
- Public Member Functions inherited from THElement
 THElement ()
 
virtual ~THElement ()
 
std::string getName ()
 
void setName (std::string newName)
 
int getCardNumber ()
 
void setCardNumber (int newCardNumber)
 
void readInfoFromFile (std::ifstream &)
 
Relap5ComponentType getTypeOfCard ()
 
void setTypeOfCard (Relap5ComponentType newTypeOfCard)
 
void copyTHElement (THElement &)
 
void saveTHElementToFile (std::ofstream &)
 
void retrieveTHElementFromFile (std::ifstream &)
 

Private Member Functions

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

Private Attributes

double input_value
 
double display_value
 
bool need_to_interact
 
int sequence_in_the_array
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 16 of file InteractiveVariable.h.

Constructor & Destructor Documentation

◆ InteractiveVariable()

InteractiveVariable::InteractiveVariable ( )

Definition at line 16 of file InteractiveVariable.cpp.

References display_value, input_value, InteractiveVariable, need_to_interact, sequence_in_the_array, and THElement::setTypeOfCard().

Here is the call graph for this function:

◆ ~InteractiveVariable()

InteractiveVariable::~InteractiveVariable ( )
virtual

Definition at line 25 of file InteractiveVariable.cpp.

Member Function Documentation

◆ copyInteractiveVariable()

void InteractiveVariable::copyInteractiveVariable ( InteractiveVariable &  _iv)

Definition at line 78 of file InteractiveVariable.cpp.

References THElement::copyTHElement(), display_value, getDisplayValue(), getInputValue(), getNeedToInteract(), getSequenceInTheArray(), input_value, need_to_interact, and sequence_in_the_array.

Here is the call graph for this function:

◆ executeInteractiveAction()

void InteractiveVariable::executeInteractiveAction ( )

Definition at line 38 of file InteractiveVariable.cpp.

References finteract_(), input_value, need_to_interact, r5pars_, and sequence_in_the_array.

Here is the call graph for this function:

◆ getDisplayValue()

double InteractiveVariable::getDisplayValue ( )

Definition at line 35 of file InteractiveVariable.cpp.

References display_value.

Referenced by copyInteractiveVariable(), SystemDisplay::getCorrespondingSystemParameterValue(), SystemControl::initiateControlValue(), and ControlState::initiateDisplayedControlState().

Here is the caller graph for this function:

◆ getInputValue()

double InteractiveVariable::getInputValue ( )

Definition at line 33 of file InteractiveVariable.cpp.

References input_value.

Referenced by copyInteractiveVariable().

Here is the caller graph for this function:

◆ getNeedToInteract()

bool InteractiveVariable::getNeedToInteract ( )

Definition at line 37 of file InteractiveVariable.cpp.

References need_to_interact.

Referenced by copyInteractiveVariable().

Here is the caller graph for this function:

◆ getSequenceInTheArray()

int InteractiveVariable::getSequenceInTheArray ( )

Definition at line 55 of file InteractiveVariable.cpp.

References sequence_in_the_array.

Referenced by copyInteractiveVariable().

Here is the caller graph for this function:

◆ readInfoFromFile()

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

Definition at line 47 of file InteractiveVariable.cpp.

References THElement::readInfoFromFile().

Here is the call graph for this function:

◆ retrieveInteractiveVariableFromFile()

void InteractiveVariable::retrieveInteractiveVariableFromFile ( std::ifstream &  )

Definition at line 67 of file InteractiveVariable.cpp.

References display_value, input_value, need_to_interact, THElement::retrieveTHElementFromFile(), and sequence_in_the_array.

Here is the call graph for this function:

◆ saveInteractiveVariableToFile()

void InteractiveVariable::saveInteractiveVariableToFile ( std::ofstream &  )

Definition at line 56 of file InteractiveVariable.cpp.

References display_value, input_value, need_to_interact, THElement::saveTHElementToFile(), and sequence_in_the_array.

Here is the call graph for this function:

◆ serialize()

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

◆ setDisplayValue()

void InteractiveVariable::setDisplayValue ( double  val)

Definition at line 34 of file InteractiveVariable.cpp.

References display_value.

◆ setInputValue()

void InteractiveVariable::setInputValue ( double  val)

Definition at line 29 of file InteractiveVariable.cpp.

References input_value, and need_to_interact.

Referenced by ControlValue::performControl(), ControlState::performDisplayedControlState(), ControlState::performValueControl(), ControlState::updateDisplayedControlState(), and ControlValue::updateDisplayedControlValue().

Here is the caller graph for this function:

◆ setInteractiveAction()

void InteractiveVariable::setInteractiveAction ( double  x)

Definition at line 50 of file InteractiveVariable.cpp.

References input_value, and need_to_interact.

◆ setNeedToInteract()

void InteractiveVariable::setNeedToInteract ( bool  flag)

Definition at line 36 of file InteractiveVariable.cpp.

References need_to_interact.

Referenced by ControlValue::performControl(), ControlState::performDisplayedControlState(), and ControlState::performValueControl().

Here is the caller graph for this function:

◆ setSequenceInTheArray()

void InteractiveVariable::setSequenceInTheArray ( int  seq)

Definition at line 54 of file InteractiveVariable.cpp.

References sequence_in_the_array.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 41 of file InteractiveVariable.h.

Member Data Documentation

◆ display_value

◆ input_value

◆ need_to_interact

◆ sequence_in_the_array


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