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

46 lines
1.3 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.

/*
* FailureDiagnosticsSetup.h
*
* Created on: 8 окт. 2019 г.
* Author: titov
*/
#ifndef SOURCE_APPLICATION_SAFETY_FAILUREDIAGNOSTICSSETUP_H_
#define SOURCE_APPLICATION_SAFETY_FAILUREDIAGNOSTICSSETUP_H_
#include "../ISetupStep.hh"
#include "../../processing/failure/FailureManagerInterface.hh"
#include <memory_resource>
namespace application { namespace safety {
struct FailureDiagnosticsSetup : public ISetupStep {
typedef processing::failure::FailureManagerInterface FMI;
FMI * manager = nullptr;
std::pmr::memory_resource * memory = nullptr;
struct Links {
Environment::Id memory_id; //!<Указатель на память, которая будет использованна для динамических структур данных.
Environment::Id manager_id; //!<Менеджер отказов.
Environment::Id diagnoster_id; //!<Процесс диагностики отказов.
};
bool input( Environment & env );
void build( Environment & env );
const Links & links;
const configuration::ProcessConfig & params;
FailureDiagnosticsSetup( const Links & links, const configuration::ProcessConfig & params ) : links(links), params(params) {}
};
}
}
#endif /* SOURCE_APPLICATION_SAFETY_FAILUREDIAGNOSTICSSETUP_H_ */