ifw-fcf
2.0.0
|
#include <actionsSetup.hpp>
Public Types | |
using | SetupRequest = std::optional< typename EVENT_TYPE::payload_t > |
using | ActivityMap = std::map< std::string, std::shared_ptr< scxml4cpp::Activity >> |
using | RequestMap = std::map< std::string, SetupRequest > |
using | ActivityPair = std::pair< std::string, std::shared_ptr< scxml4cpp::Activity >> |
using | RequestPair = std::pair< std::string, SetupRequest > |
Public Member Functions | |
ActionsSetup (std::string name, boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data_ctx, DeviceFacade &device_facade) | |
virtual void | Start (rad::AnyEvent const &last_event) |
virtual void | Stop (rad::AnyEvent const &last_event) |
virtual void | Done (rad::AnyEvent const &last_event) |
virtual void | Error (rad::AnyEvent const &last_event) |
virtual void | Timeout (rad::AnyEvent const &last_event) |
ActionsSetup (const ActionsSetup &)=delete | |
Disable copy constructor. More... | |
ActionsSetup & | operator= (const ActionsSetup &)=delete |
Disable assignment operator. More... | |
Class grouping the actions related to the Setup event.
using fcf::devmgr::common::ActionsSetup< EVENT_TYPE, EXCEPTION_TYPE >::ActivityMap = std::map<std::string,std::shared_ptr<scxml4cpp::Activity>> |
using fcf::devmgr::common::ActionsSetup< EVENT_TYPE, EXCEPTION_TYPE >::ActivityPair = std::pair<std::string, std::shared_ptr<scxml4cpp::Activity>> |
using fcf::devmgr::common::ActionsSetup< EVENT_TYPE, EXCEPTION_TYPE >::RequestMap = std::map<std::string, SetupRequest> |
using fcf::devmgr::common::ActionsSetup< EVENT_TYPE, EXCEPTION_TYPE >::RequestPair = std::pair<std::string, SetupRequest> |
using fcf::devmgr::common::ActionsSetup< EVENT_TYPE, EXCEPTION_TYPE >::SetupRequest = std::optional<typename EVENT_TYPE::payload_t> |
fcf::devmgr::common::ActionsSetup< EVENT_TYPE, EXCEPTION_TYPE >::ActionsSetup | ( | std::string | name, |
boost::asio::io_service & | ios, | ||
rad::SMAdapter & | sm, | ||
DataContext & | data_ctx, | ||
DeviceFacade & | device_facade | ||
) |
Constructor.
[in] | name | Action group name |
[in] | ios | Reference to the event loop. |
[in] | sm | State machine reference |
[in] | data_ctx | Data shared within the application among actions and activities. |
[in] | device_facade | Facade to all devices handled by the manager. |
|
delete |
Disable copy constructor.
|
virtual |
Implementation of the Done callback. This method implements the actions when the Setup event was finalized.
[in] | last_event | Last event received. |
|
virtual |
Implementation of the Error callback. This method implements the actions when the Setup event was finalized with an error.
[in] | last_event | Last event received. |
|
delete |
Disable assignment operator.
|
virtual |
Implementation of the Start callback.
[in] | last_event | Last event received which should be a Start event (the Start event is triggered by a ReqSetup request). |
|
virtual |
Implementation of the Stop callback. This callback:
[in] | last_event | Last event received which should be a Stop event (the Stop event is triggered by a ReqStop request). |
|
virtual |
Implementation of the Timeout callback. This method implements the actions when the Setup event was finalized unexpectly.
[in] | last_event | Last event received. |