MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/application/schematic/DynamicParameter.hh
2024-06-07 11:12:56 +03:00

45 lines
1.5 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* DynamicParameter.hh
*
* Created on: 28 нояб. 2023 г.
* Author: titov
*/
#ifndef UMLIBRARY_APPLICATION_SCHEMATIC_DYNAMICPARAMETER_HH_
#define UMLIBRARY_APPLICATION_SCHEMATIC_DYNAMICPARAMETER_HH_
#include "../ISetupStep.hh"
#include "../../schematic/SettableValue.hh"
namespace application { namespace schematic {
//!Динамически устанавливаемый параметр, представленный в качестве сигнала, с предварительной установкой.
struct DynamicParameter : public ISetupStep {
static const Environment::Id provider = 0;
typedef ::schematic::SettableValue Settable;
systemic::Parameter<Settable> parameter;
bool input( Environment & env );
void build( Environment & env );
struct Links {
Environment::Id preset; //!<Предзаданное значение (по умолчанию).
Environment::Id set; //!<Интерфейс установки динамического значения.
Environment::Id reset; //!<Интерфейс сброса на предустановленное значение.
Environment::SignalId value; //!<Динамическое значение, отражающее состояние параметра.
};
const Links & links;
DynamicParameter( const Links & links ) : links(links) {}
};
}
}
#endif /* UMLIBRARY_APPLICATION_SCHEMATIC_DYNAMICPARAMETER_HH_ */