ifw-fcf
2.0.0
|
#include <actionsStd.hpp>
Public Member Functions | |
ActionsStd (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data, DeviceFacade &device_facade) | |
void | notifyEvent (scxml4cpp::Event *e) |
void | notifyStatus (std::set< scxml4cpp::State * > &status) |
const std::string & | GetStatus () |
ActionsStd. More... | |
void | State (const rad::AnyEvent &last_event) |
void | Status (const rad::AnyEvent &last_event) |
void | DevNames (const rad::AnyEvent &last_event) |
void | Stop (const rad::AnyEvent &last_event) |
void | Init (const rad::AnyEvent &last_event) |
void | Enable (const rad::AnyEvent &last_event) |
void | Disable (const rad::AnyEvent &last_event) |
void | Reset (const rad::AnyEvent &last_event) |
void | Config (const rad::AnyEvent &last_event) |
void | SetLog (const rad::AnyEvent &last_event) |
void | Exit (const rad::AnyEvent &last_event) |
void | ExitNoReply (const rad::AnyEvent &last_event) |
void | Simulate (const rad::AnyEvent &last_event) |
Implementation of the Simulate action. More... | |
void | StopSim (const rad::AnyEvent &last_event) |
Implementation of the StopSim action. More... | |
void | Ignore (const rad::AnyEvent &last_event) |
Implementation of the Ignore action. More... | |
void | StopIgn (const rad::AnyEvent &last_event) |
void | HwReset (rad::AnyEvent const &last_event) |
void | HwInit (rad::AnyEvent const &last_event) |
void | HwEnable (rad::AnyEvent const &last_event) |
void | HwDisable (rad::AnyEvent const &last_event) |
void | BeginAcq (rad::AnyEvent const &last_event) |
void | EndAcq (rad::AnyEvent const &last_event) |
ActionsStd (const ActionsStd &)=delete | |
ActionsStd & | operator= (const ActionsStd &)=delete |
Disable copy constructor. More... | |
This class contains the implementation of the actions dealing with the following "standard" commands:
and the following signals:
In addition it implements the:
fcf::devmgr::common::ActionsStd::ActionsStd | ( | boost::asio::io_service & | ios, |
rad::SMAdapter & | sm, | ||
DataContext & | data, | ||
DeviceFacade & | device_facade | ||
) |
Constructor.
[in] | ios | Reference to the event loop. |
[in] | sm | State machine reference |
[in] | data | Data shared within the application among actions and activities. |
[in] | device_facade | Device facade reference |
|
delete |
void fcf::devmgr::common::ActionsStd::BeginAcq | ( | rad::AnyEvent const & | last_event | ) |
Implementation of the BeginAcq action.
[in] | last_event | Last event received. |
void fcf::devmgr::common::ActionsStd::Config | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Config action. This action:
void fcf::devmgr::common::ActionsStd::DevNames | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the DevNames action. This action:
[in] | last_event | Last event received which should be a DevNames event |
void fcf::devmgr::common::ActionsStd::Disable | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Disable action. This action:
[in] | last_event | Last event received which should be a Stop event (the Disable event is triggered by a ReqDisable request). |
void fcf::devmgr::common::ActionsStd::Enable | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Enable action. This action:
[in] | last_event | Last event received which should be a Stop event (the Enable event is triggered by a ReqEnable request). |
void fcf::devmgr::common::ActionsStd::EndAcq | ( | rad::AnyEvent const & | last_event | ) |
Implementation of the EndAcq action.
[in] | last_event | Last event received. |
void fcf::devmgr::common::ActionsStd::Exit | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Exit action. This action:
[in] | last_event | Last event received which should be an Exit event (the Exit event is triggered by a ReqExit request). |
void fcf::devmgr::common::ActionsStd::ExitNoReply | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the ExitNoReply action. This action:
[in] | last_event | Last event received which should be an ExitNoReply event (the ExitNoReply event is triggered by a SIGTERM, SIGINT signals). |
const std::string & fcf::devmgr::common::ActionsStd::GetStatus | ( | ) |
void fcf::devmgr::common::ActionsStd::HwDisable | ( | rad::AnyEvent const & | last_event | ) |
Implementation of the HwDisable action. This action triggers a disable of a set of controllers.
[in] | last_event | Last event received. |
void fcf::devmgr::common::ActionsStd::HwEnable | ( | rad::AnyEvent const & | last_event | ) |
Implementation of the HwEnable action. This action triggers a enable of a set of controllers.
[in] | last_event | Last event received. |
void fcf::devmgr::common::ActionsStd::HwInit | ( | rad::AnyEvent const & | last_event | ) |
Implementation of the HwInit action. This action triggers a init of a set of controllers.
[in] | last_event | Last event received. |
void fcf::devmgr::common::ActionsStd::HwReset | ( | rad::AnyEvent const & | last_event | ) |
Implementation of the HwReset action. This action triggers a reset of a set of controllers.
[in] | last_event | Last event received. |
void fcf::devmgr::common::ActionsStd::Ignore | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Ignore action.
[in] | last_event | Last event received which should be a Ignore event |
Ignore from the configuration one or more devices managed by the server. When a device is ignored, it will not forward commands to its controller and the server will ignore its state.
void fcf::devmgr::common::ActionsStd::Init | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Init action. This action:
[in] | last_event | Last event received which should be a Init event (the Init event is triggered by a ReqInit request). |
void fcf::devmgr::common::ActionsStd::notifyEvent | ( | scxml4cpp::Event * | e | ) |
Implementation of the scxml4cpp::EventListener interface to know when an event has been rejected/ignored/processed. It can be used to implement the event reject policy.
[in] | e | Received event. |
void fcf::devmgr::common::ActionsStd::notifyStatus | ( | std::set< scxml4cpp::State * > & | status | ) |
Implementation of the scxml4cpp::StatusListener interface to receive the change of state notification.
[in] | status | Current State Machine active states configuration. |
|
delete |
Disable copy constructor.
void fcf::devmgr::common::ActionsStd::Reset | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Reset action. This action:
[in] | last_event | Last event received which should be a Stop event (the Disable event is triggered by a ReqReset request). |
void fcf::devmgr::common::ActionsStd::SetLog | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the SetLog action. This action:
[in] | last_event | Last event received which should be a SetLog event (the SetLog event is triggered by a ReqSetLog request). |
void fcf::devmgr::common::ActionsStd::Simulate | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Simulate action.
[in] | last_event | Last event received which should be a Simulate event |
Simulate one or more devices managed by the server
void fcf::devmgr::common::ActionsStd::State | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the State action. This action:
[in] | last_event | Last event received which should be a State event |
void fcf::devmgr::common::ActionsStd::Status | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Status action. This action:
[in] | last_event | Last event received which should be a Status event |
void fcf::devmgr::common::ActionsStd::Stop | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Stop action. This action:
[in] | last_event | Last event received which should be a Stop event (the Stop event is triggered by a ReqStop request). |
void fcf::devmgr::common::ActionsStd::StopIgn | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the StopIgn action.
[in] | last_event | Last event received which should be a StopIgn event |
void fcf::devmgr::common::ActionsStd::StopSim | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the StopSim action.
[in] | last_event | Last event received which should be a StopSim event |
Stop simulation of one or more devices managed by the server.