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

44 lines
1.1 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.

/*
* SignalCompare.hh
*
* Created on: 14 мая 2020 г.
* Author: LeonidTitov
*/
#ifndef UMLIBRARY_APPLICATION_SCHEMATIC_SIGNALCOMPARE_HH_
#define UMLIBRARY_APPLICATION_SCHEMATIC_SIGNALCOMPARE_HH_
#include "../ISetupStep.hh"
namespace application { namespace schematic {
//!Компоратор сравнения сигналов между собой. Реализует логику "a > b".
struct SignalCompare: public ISetupStep {
typedef systemic::ISignal ISignal;
ISignal * a = nullptr;
ISignal * b = nullptr;
bool input( Environment & env );
void build( Environment & env );
struct Links {
Environment::SignalId a; //!<Сигнал "а".
Environment::SignalId b; //!<Сигнал "b".
Environment::StatusId a_more_b; //!<Сигнал "a" строго больше сигнала "b".
};
const Links & links;
SignalCompare( const Links & links ) : links(links) {}
};
} /* namespace schematic */
} /* namespace application */
#endif /* UMLIBRARY_APPLICATION_SCHEMATIC_SIGNALCOMPARE_HH_ */