13#ifndef RTCTK_RTCSUPERVISOR_SUPERVISORYCMDSIMPL_HPP
14#define RTCTK_RTCSUPERVISOR_SUPERVISORYCMDSIMPL_HPP
22#include <rtctk/rtcSupervisor/supervisoryEvents.rad.hpp>
41 std::shared_ptr<elt::mal::rr::RrEntity>
rr_service = std::make_shared<ModeCmdsImpl>(
engine);
46 : m_logger(GetLogger(
"rtctk")), m_engine(
engine) {
49 ::elt::mal::future<std::string>
SetModes(
const std::string&
args)
override {
56 "Received command 'SetDeferredModes' with payload '" +
args +
"'");
76 log4cplus::Logger& m_logger;
88 std::shared_ptr<elt::mal::rr::RrEntity>
rr_service =
89 std::make_shared<WriteBackCmdsImpl>(
engine);
90 replier.RegisterService<rtctkif::AsyncWriteBackCmds>(
"WriteBackCmds",
rr_service);
94 : m_logger(GetLogger(
"rtctk")), m_engine(
engine) {
97 ::elt::mal::future<std::string>
WriteBack(
const std::string&
args)
override {
103 log4cplus::Logger& m_logger;
Class that handles reception of commands using MAL.
Definition commandReplier.hpp:30
Definition stateMachineEngine.hpp:35
Class that handles reception of mode-related commands using MAL.
Definition supervisoryCmdsImpl.hpp:38
::elt::mal::future< std::string > GetAvailableModes() override
Definition supervisoryCmdsImpl.hpp:65
::elt::mal::future< std::string > GetDeferredModes() override
Definition supervisoryCmdsImpl.hpp:60
::elt::mal::future< std::string > SetDeferredModes(const std::string &args) override
Definition supervisoryCmdsImpl.hpp:54
::elt::mal::future< std::string > SetModes(const std::string &args) override
Definition supervisoryCmdsImpl.hpp:49
ModeCmdsImpl(StateMachineEngine &engine)
Definition supervisoryCmdsImpl.hpp:45
::elt::mal::future< std::string > GetActiveModes() override
Definition supervisoryCmdsImpl.hpp:70
static void Register(CommandReplier &replier, StateMachineEngine &engine)
Definition supervisoryCmdsImpl.hpp:40
Class that handles reception of writeback-related commands using MAL.
Definition supervisoryCmdsImpl.hpp:85
WriteBackCmdsImpl(StateMachineEngine &engine)
Definition supervisoryCmdsImpl.hpp:93
static void Register(CommandReplier &replier, StateMachineEngine &engine)
Definition supervisoryCmdsImpl.hpp:87
::elt::mal::future< std::string > WriteBack(const std::string &args) override
Definition supervisoryCmdsImpl.hpp:97
Receive commands via MAL.
Logging Support Library based on log4cplus.
Provides core functionality of an RTC Component.
Definition commandReplier.cpp:22
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:23
Definition rtcSupervisor.cpp:24
Wrapper around the SCXML State Machine Engine.