58 lines
1.4 KiB
C++
58 lines
1.4 KiB
C++
/*
|
|
* NullEstimate.hh
|
|
*
|
|
* Created on: 17 èþë. 2020 ã.
|
|
* Author: LeonidTitov
|
|
*/
|
|
|
|
#ifndef UMLIBRARY_APPLICATION_PROCEDURES_NULLESTIMATE_HH_
|
|
#define UMLIBRARY_APPLICATION_PROCEDURES_NULLESTIMATE_HH_
|
|
|
|
#include "../ISetupStep.hh"
|
|
|
|
#include "../../technological/function/NullEstimationByVoltage.hh"
|
|
|
|
#include <memory_resource>
|
|
|
|
namespace application { namespace procedures {
|
|
|
|
struct NullEstimate : public ISetupStep {
|
|
|
|
static const Environment::Id provider = 0;
|
|
|
|
typedef ResourceKeeper< technological::adapter::TieInterface<vector::IStandingVectorSet> > VectorControlResource;
|
|
typedef ResourceKeeper<std::pmr::monotonic_buffer_resource> MemoryResource;
|
|
|
|
VectorControlResource * vector_control = nullptr;
|
|
systemic::ISignal * position = nullptr;
|
|
MemoryResource * buffer = nullptr;
|
|
|
|
systemic::Parameter<technological::function::NullEstimationByVoltage> parameter;
|
|
|
|
bool input( Environment & env );
|
|
void build( Environment & env );
|
|
|
|
struct Links {
|
|
Environment::Id vector_ctrl;
|
|
Environment::SignalId position;
|
|
Environment::Id buffer;
|
|
|
|
Environment::SettingId params;
|
|
|
|
Environment::TechFunctionId procedure;
|
|
|
|
Environment::Id task;
|
|
|
|
};
|
|
|
|
const Links & links;
|
|
const configuration::ProcessConfig & params;
|
|
|
|
NullEstimate( const Links & links, const configuration::ProcessConfig & params );
|
|
|
|
};
|
|
|
|
}}
|
|
|
|
#endif /* UMLIBRARY_APPLICATION_PROCEDURES_NULLESTIMATE_HH_ */
|