ifw-fcf
5.0.0-pre2
|
#include <actionsStd.hpp>
Public Member Functions | |
ActionsStd (boost::asio::io_service &ios, mal::Mal &mal, rad::SMAdapter &sm, DataContext &data, DeviceFacade &device_facade) | |
void | notifyEvent (scxml4cpp::Event *e) |
void | notifyStatus (std::list< scxml4cpp::State * > &status) |
void | GetStatus (scxml4cpp::Context *c) |
ActionsStd. More... | |
void | GetVersion (scxml4cpp::Context *c) |
Get server version. More... | |
void | GetState (scxml4cpp::Context *c) |
void | DevStatus (scxml4cpp::Context *c) |
void | DevNames (scxml4cpp::Context *c) |
void | DevInfo (scxml4cpp::Context *c) |
void | DevConfig (scxml4cpp::Context *c) |
void | Stop (scxml4cpp::Context *c) |
void | Init (scxml4cpp::Context *c) |
void | Enable (scxml4cpp::Context *c) |
void | Disable (scxml4cpp::Context *c) |
void | Reset (scxml4cpp::Context *c) |
void | Config (scxml4cpp::Context *c) |
void | GetConfig (scxml4cpp::Context *c) |
void | SetLogLevel (scxml4cpp::Context *c) |
void | Exit (scxml4cpp::Context *c) |
void | ExitNoReply (scxml4cpp::Context *c) |
void | Simulate (scxml4cpp::Context *c) |
Implementation of the Simulate action. More... | |
void | StopSim (scxml4cpp::Context *c) |
Implementation of the StopSim action. More... | |
void | Ignore (scxml4cpp::Context *c) |
Implementation of the Ignore action. More... | |
void | StopIgn (scxml4cpp::Context *c) |
void | HwReset (scxml4cpp::Context *c) |
void | HwInit (scxml4cpp::Context *c) |
void | HwEnable (scxml4cpp::Context *c) |
void | HwDisable (scxml4cpp::Context *c) |
void | StartDaq (scxml4cpp::Context *c) |
void | StopDaq (scxml4cpp::Context *c) |
void | AbortDaq (scxml4cpp::Context *c) |
void | GetDaqStatus (scxml4cpp::Context *c) |
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, |
mal::Mal & | mal, | ||
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::AbortDaq | ( | scxml4cpp::Context * | c | ) |
Implementation of the AbortDaq action.
[in] | c | Last event received. |
void fcf::devmgr::common::ActionsStd::Config | ( | scxml4cpp::Context * | c | ) |
Implementation of the Config action. This action:
void fcf::devmgr::common::ActionsStd::DevConfig | ( | scxml4cpp::Context * | c | ) |
Implementation of the DevConfig action. This action:
[in] | c | Last event received which should be a DevConfig event |
void fcf::devmgr::common::ActionsStd::DevInfo | ( | scxml4cpp::Context * | c | ) |
Implementation of the DevInfo action. This action:
[in] | c | Last event received which should be a DevInfo event |
void fcf::devmgr::common::ActionsStd::DevNames | ( | scxml4cpp::Context * | c | ) |
Implementation of the DevNames action. This action:
[in] | c | Last event received which should be a DevNames event |
void fcf::devmgr::common::ActionsStd::DevStatus | ( | scxml4cpp::Context * | c | ) |
Implementation of the Status action. This action:
[in] | c | Last event received which should be a Status event |
void fcf::devmgr::common::ActionsStd::Disable | ( | scxml4cpp::Context * | c | ) |
Implementation of the Disable action. This action:
[in] | c | Last event received which should be a Stop event (the Disable event is triggered by a ReqDisable request). |
void fcf::devmgr::common::ActionsStd::Enable | ( | scxml4cpp::Context * | c | ) |
Implementation of the Enable action. This action:
[in] | c | Last event received which should be a Stop event (the Enable event is triggered by a ReqEnable request). |
void fcf::devmgr::common::ActionsStd::Exit | ( | scxml4cpp::Context * | c | ) |
Implementation of the Exit action. This action:
[in] | c | Last event received which should be an Exit event (the Exit event is triggered by a ReqExit request). |
void fcf::devmgr::common::ActionsStd::ExitNoReply | ( | scxml4cpp::Context * | c | ) |
Implementation of the ExitNoReply action. This action:
[in] | c | Last event received which should be an ExitNoReply event (the ExitNoReply event is triggered by a SIGTERM, SIGINT signals). |
void fcf::devmgr::common::ActionsStd::GetConfig | ( | scxml4cpp::Context * | c | ) |
void fcf::devmgr::common::ActionsStd::GetDaqStatus | ( | scxml4cpp::Context * | c | ) |
Implementation of the GetDaqStatus action.
[in] | c | Last event received. |
void fcf::devmgr::common::ActionsStd::GetState | ( | scxml4cpp::Context * | c | ) |
Implementation of the State action. This action:
[in] | c | Last event received which should be a State event |
void fcf::devmgr::common::ActionsStd::GetStatus | ( | scxml4cpp::Context * | c | ) |
void fcf::devmgr::common::ActionsStd::GetVersion | ( | scxml4cpp::Context * | c | ) |
Get server version.
void fcf::devmgr::common::ActionsStd::HwDisable | ( | scxml4cpp::Context * | c | ) |
Implementation of the HwDisable action. This action triggers a disable of a set of controllers.
[in] | c | Last event received. |
void fcf::devmgr::common::ActionsStd::HwEnable | ( | scxml4cpp::Context * | c | ) |
Implementation of the HwEnable action. This action triggers a enable of a set of controllers.
[in] | c | Last event received. |
void fcf::devmgr::common::ActionsStd::HwInit | ( | scxml4cpp::Context * | c | ) |
Implementation of the HwInit action. This action triggers a init of a set of controllers.
[in] | c | Last event received. |
void fcf::devmgr::common::ActionsStd::HwReset | ( | scxml4cpp::Context * | c | ) |
Implementation of the HwReset action. This action triggers a reset of a set of controllers.
[in] | c | Last event received. |
void fcf::devmgr::common::ActionsStd::Ignore | ( | scxml4cpp::Context * | c | ) |
Implementation of the Ignore action.
[in] | c | 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 | ( | scxml4cpp::Context * | c | ) |
Implementation of the Init action. This action:
[in] | c | 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::list< 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 | ( | scxml4cpp::Context * | c | ) |
Implementation of the Reset action. This action:
[in] | c | Last event received which should be a Stop event (the Disable event is triggered by a ReqReset request). |
void fcf::devmgr::common::ActionsStd::SetLogLevel | ( | scxml4cpp::Context * | c | ) |
Implementation of the SetLog action. This action:
[in] | c | Last event received which should be a SetLog event (the SetLog event is triggered by a ReqSetLog request). |
void fcf::devmgr::common::ActionsStd::Simulate | ( | scxml4cpp::Context * | c | ) |
Implementation of the Simulate action.
[in] | c | Last event received which should be a Simulate event |
Simulate one or more devices managed by the server
void fcf::devmgr::common::ActionsStd::StartDaq | ( | scxml4cpp::Context * | c | ) |
Implementation of the StartDaq action.
[in] | c | Last event received. |
void fcf::devmgr::common::ActionsStd::Stop | ( | scxml4cpp::Context * | c | ) |
Implementation of the Stop action. This action:
[in] | c | Last event received which should be a Stop event (the Stop event is triggered by a ReqStop request). |
void fcf::devmgr::common::ActionsStd::StopDaq | ( | scxml4cpp::Context * | c | ) |
Implementation of the StopDaq action.
[in] | c | Last event received. |
void fcf::devmgr::common::ActionsStd::StopIgn | ( | scxml4cpp::Context * | c | ) |
Implementation of the StopIgn action.
[in] | c | Last event received which should be a StopIgn event |
void fcf::devmgr::common::ActionsStd::StopSim | ( | scxml4cpp::Context * | c | ) |
Implementation of the StopSim action.
[in] | c | Last event received which should be a StopSim event |
Stop simulation of one or more devices managed by the server.