MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/application/schematic/SequenceAction.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.

/*
* SequenceAction.hh
*
* Created on: 9 июл. 2020 г.
* Author: LeonidTitov
*/
#ifndef UMLIBRARY_APPLICATION_SCHEMATIC_SEQUENCEACTION_HH_
#define UMLIBRARY_APPLICATION_SCHEMATIC_SEQUENCEACTION_HH_
#include "../ISetupStep.hh"
#include "../../schematic/action/SequenceAction.hh"
namespace application { namespace schematic {
//!Последовательность действий.
struct SequenceAction : public ISetupStep {
typedef systemic::IFunctor<void> Action;
Action * action_first = nullptr;
Action * action_second = nullptr;
bool input( Environment & env );
void build( Environment & env );
struct Links {
Environment::Id first; //!<Первое действие.
Environment::Id second; //!<Второе действие.
Environment::SignalId sequence; //!<Последовательность действий.
};
const Links & links;
SequenceAction( const Links & links ) : links(links) {}
};
}}
#endif /* UMLIBRARY_APPLICATION_SCHEMATIC_SEQUENCEACTION_HH_ */