← Documentation
ADS-IDAC Engine 5.0.0
ControlElement.cpp
Go to the documentation of this file.
1// ControlElement.cpp: implementation of the ControlElement class.
2//
4
5#include "ControlElement.h"
6#include "../Global/fmodule.h"
7#include <boost/serialization/export.hpp>
8#include <boost/archive/binary_oarchive.hpp>
9#include <boost/archive/binary_iarchive.hpp>
10BOOST_CLASS_EXPORT_IMPLEMENT(ControlElement)
11using namespace std;
12
14// Construction/Destruction
16
18{
19 display_name = "NOT_SPECIFIED";
26 control_value = 0.0;
28}
29
31{
32
33}
49}
62}
69}
74}
75
77 bool matched = true;
79 || fabs(control_value - _ce.getControlValue()) > 0.01){
80 matched = false;
81 }
82 return matched;
83}
std::string corresponding_component_name_of_control
void setValueForOnOrFullyOpen(double)
double value_for_neutral_state
void setTimeRatioForAction(double)
std::string getDisplayName()
double time_ratio_for_action
double time_at_which_this_control_is_activated
void setNominalTimeRequiredToActOnThisControl(double)
void setControlValue(double)
double value_for_off_or_fully_close
void saveControlElementToFile(std::ofstream &)
double getValueForNeutralState()
void setValueForNeutralState(double)
void retrieveControlElementFromFile(std::ifstream &)
std::string getCorrespondingComponentNameOfControl()
double control_value
double getNominalTimeRequiredToActOnThisControl()
double nominal_time_required_to_act_on_this_control
double getControlValue()
double getAdjustedTimeRequiredToPerformTheAction()
std::string display_name
double value_for_on_or_fully_open
double getTimeRatioForAction()
void copyControlElement(ControlElement &)
void setValueForOffOrFullyClose(double)
void setDisplayName(std::string)
bool checkIfIsIdenticalControlElement(ControlElement &)
double getValueForOnOrFullyOpen()
virtual ~ControlElement()
void setCorrespondingComponentNameOfControl(std::string)
void setTimeAtWhichThisControlIsActivated(double)
double getValueForOffOrFullyClose()
double getTimeAtWhichThisControlIsActivated()
void readInfoFromFile(std::ifstream &)
struct @0 r5pars_