rad  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
exmalserver::ActionsStd Class Reference

#include <actionsStd.hpp>

Inheritance diagram for exmalserver::ActionsStd:
rad::ActionGroup scxml4cpp::StatusListener scxml4cpp::EventListener rad::ActionGroup scxml4cpp::StatusListener scxml4cpp::EventListener

Public Member Functions

 ActionsStd (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data)
 
void notifyEvent (scxml4cpp::Event *event)
 
void notifyStatus (std::set< scxml4cpp::State * > &status)
 
void Status (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 SetLogLevel (const rad::AnyEvent &last_event)
 
void Exit (const rad::AnyEvent &last_event)
 
void ExitNoReply (const rad::AnyEvent &last_event)
 
 ActionsStd (const ActionsStd &)=delete
 
ActionsStdoperator= (const ActionsStd &)=delete
 Disable copy constructor. More...
 
 ActionsStd (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data)
 
void notifyEvent (scxml4cpp::Event *event)
 
void notifyStatus (std::set< scxml4cpp::State * > &status)
 
void Status (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 SetLogLevel (const rad::AnyEvent &last_event)
 
void Exit (const rad::AnyEvent &last_event)
 
void ExitNoReply (const rad::AnyEvent &last_event)
 
 ActionsStd (const ActionsStd &)=delete
 
ActionsStdoperator= (const ActionsStd &)=delete
 Disable copy constructor. More...
 
- Public Member Functions inherited from rad::ActionGroup
 ActionGroup (const std::string &id)
 
virtual ~ActionGroup ()
 
const std::string & GetId () const
 
void SetId (const std::string &id)
 
 ActionGroup (const ActionGroup &)=delete
 
ActionGroupoperator= (const ActionGroup &)=delete
 Disable copy constructor. More...
 
 ActionGroup (const std::string &id)
 
virtual ~ActionGroup ()
 
const std::string & GetId () const
 
void SetId (const std::string &id)
 
 ActionGroup (const ActionGroup &)=delete
 
ActionGroupoperator= (const ActionGroup &)=delete
 Disable copy constructor. More...
 
- Public Member Functions inherited from scxml4cpp::StatusListener
 StatusListener ()
 
virtual ~StatusListener ()
 
 StatusListener ()
 
virtual ~StatusListener ()
 
 StatusListener ()
 
virtual ~StatusListener ()
 
- Public Member Functions inherited from scxml4cpp::EventListener
 EventListener ()
 
virtual ~EventListener ()
 
 EventListener ()
 
virtual ~EventListener ()
 
 EventListener ()
 
virtual ~EventListener ()
 

Detailed Description

This class contains the implementation of the actions dealing with the following "standard" commands:

and the following signals:

In addition it implements the:

Constructor & Destructor Documentation

exmalserver::ActionsStd::ActionsStd ( boost::asio::io_service &  ios,
rad::SMAdapter sm,
DataContext data 
)

Constructor.

Parameters
[in]iosReference to the event loop.
[in]smReference to the SM Adapter used to inject internal events.
[in]dataData shared within the application among actions and activities.
exmalserver::ActionsStd::ActionsStd ( const ActionsStd )
delete
exmalserver::ActionsStd::ActionsStd ( boost::asio::io_service &  ios,
rad::SMAdapter sm,
DataContext data 
)

Constructor.

Parameters
[in]iosReference to the event loop.
[in]smReference to the SM Adapter used to inject internal events.
[in]dataData shared within the application among actions and activities.
exmalserver::ActionsStd::ActionsStd ( const ActionsStd )
delete

Member Function Documentation

void exmalserver::ActionsStd::Config ( const rad::AnyEvent last_event)

Implementation of the Config action. This action:

  • reload the application configuration file,
  • re-establish connection to the Runtime-DB,
  • replies back for the originator of the ReqConfig request.
Parameters
[in]last_eventLast event received which should be a Config event (the Config event is triggered by a ReqConfig request).
void exmalserver::ActionsStd::Config ( const rad::AnyEvent last_event)

Implementation of the Config action. This action:

  • reload the application configuration file,
  • re-establish connection to the Runtime-DB,
  • replies back for the originator of the ReqConfig request.
Parameters
[in]last_eventLast event received which should be a Config event (the Config event is triggered by a ReqConfig request).
void exmalserver::ActionsStd::Disable ( const rad::AnyEvent last_event)

Implementation of the Disable action. This action:

  • replies back for the originator of the ReqDisable request.
Parameters
[in]last_eventLast event received which should be a Stop event (the Disable event is triggered by a ReqDisable request).
void exmalserver::ActionsStd::Disable ( const rad::AnyEvent last_event)

Implementation of the Disable action. This action:

  • replies back for the originator of the ReqDisable request.
Parameters
[in]last_eventLast event received which should be a Stop event (the Disable event is triggered by a ReqDisable request).
void exmalserver::ActionsStd::Enable ( const rad::AnyEvent last_event)

Implementation of the Enable action. This action:

  • replies back for the originator of the ReqEnable request.
Parameters
[in]last_eventLast event received which should be a Stop event (the Enable event is triggered by a ReqEnable request).
void exmalserver::ActionsStd::Enable ( const rad::AnyEvent last_event)

Implementation of the Enable action. This action:

  • replies back for the originator of the ReqEnable request.
Parameters
[in]last_eventLast event received which should be a Stop event (the Enable event is triggered by a ReqEnable request).
void exmalserver::ActionsStd::Exit ( const rad::AnyEvent last_event)

Implementation of the Exit action. This action:

  • replies back for the originator of the ReqExit request.
  • stops the event loop.
Parameters
[in]last_eventLast event received which should be an Exit event (the Exit event is triggered by a ReqExit request).
void exmalserver::ActionsStd::Exit ( const rad::AnyEvent last_event)

Implementation of the Exit action. This action:

  • replies back for the originator of the ReqExit request.
  • stops the event loop.
Parameters
[in]last_eventLast event received which should be an Exit event (the Exit event is triggered by a ReqExit request).
void exmalserver::ActionsStd::ExitNoReply ( const rad::AnyEvent last_event)

Implementation of the ExitNoReply action. This action:

  • stops the event loop.
Parameters
[in]last_eventLast event received which should be an ExitNoReply event (the ExitNoReply event is triggered by a SIGTERM, SIGINT signals).
void exmalserver::ActionsStd::ExitNoReply ( const rad::AnyEvent last_event)

Implementation of the ExitNoReply action. This action:

  • stops the event loop.
Parameters
[in]last_eventLast event received which should be an ExitNoReply event (the ExitNoReply event is triggered by a SIGTERM, SIGINT signals).
void exmalserver::ActionsStd::Init ( const rad::AnyEvent last_event)

Implementation of the Init action. This action:

  • re-initialize the application run-time data,
  • replies back for the originator of the ReqInit request.
Parameters
[in]last_eventLast event received which should be a Init event (the Init event is triggered by a ReqInit request).
void exmalserver::ActionsStd::Init ( const rad::AnyEvent last_event)

Implementation of the Init action. This action:

  • re-initialize the application run-time data,
  • replies back for the originator of the ReqInit request.
Parameters
[in]last_eventLast event received which should be a Init event (the Init event is triggered by a ReqInit request).
void exmalserver::ActionsStd::notifyEvent ( scxml4cpp::Event event)
virtual

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.

Parameters
[in]eventReceived event.

Implements scxml4cpp::EventListener.

void exmalserver::ActionsStd::notifyEvent ( scxml4cpp::Event event)
virtual

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.

Parameters
[in]eventReceived event.

Implements scxml4cpp::EventListener.

void exmalserver::ActionsStd::notifyStatus ( std::set< scxml4cpp::State * > &  status)
virtual

Implementation of the scxml4cpp::StatusListener interface to receive the change of state notification.

Parameters
[in]statusCurrent State Machine active states configuration.

Implements scxml4cpp::StatusListener.

void exmalserver::ActionsStd::notifyStatus ( std::set< scxml4cpp::State * > &  status)
virtual

Implementation of the scxml4cpp::StatusListener interface to receive the change of state notification.

Parameters
[in]statusCurrent State Machine active states configuration.

Implements scxml4cpp::StatusListener.

ActionsStd& exmalserver::ActionsStd::operator= ( const ActionsStd )
delete

Disable copy constructor.

ActionsStd& exmalserver::ActionsStd::operator= ( const ActionsStd )
delete

Disable copy constructor.

void exmalserver::ActionsStd::Reset ( const rad::AnyEvent last_event)

Implementation of the Reset action. This action:

  • replies back for the originator of the ReqReset request.
Parameters
[in]last_eventLast event received which should be a Stop event (the Disable event is triggered by a ReqReset request).
void exmalserver::ActionsStd::Reset ( const rad::AnyEvent last_event)

Implementation of the Reset action. This action:

  • replies back for the originator of the ReqReset request.
Parameters
[in]last_eventLast event received which should be a Stop event (the Disable event is triggered by a ReqReset request).
void exmalserver::ActionsStd::SetLogLevel ( const rad::AnyEvent last_event)

Implementation of the SetLogLevel action. This action:

  • changes the log level,
  • replies back for the originator of the ReqSetLogLevel request.
Parameters
[in]last_eventLast event received which should be a SetLogLevel event (the SetLogLevel event is triggered by a ReqSetLogLevel request).
void exmalserver::ActionsStd::SetLogLevel ( const rad::AnyEvent last_event)

Implementation of the SetLogLevel action. This action:

  • changes the log level,
  • replies back for the originator of the ReqSetLogLevel request.
Parameters
[in]last_eventLast event received which should be a SetLogLevel event (the SetLogLevel event is triggered by a ReqSetLogLevel request).
void exmalserver::ActionsStd::Status ( const rad::AnyEvent last_event)

Implementation of the Status action. This action:

  • replies back for the originator of the ReqStatus request with the current State Machine active state configuration.
Parameters
[in]last_eventLast event received which should be a Status event (the Status event is triggered by a ReqStatus request).
void exmalserver::ActionsStd::Status ( const rad::AnyEvent last_event)

Implementation of the Status action. This action:

  • replies back for the originator of the ReqStatus request with the current State Machine active state configuration.
Parameters
[in]last_eventLast event received which should be a Status event (the Status event is triggered by a ReqStatus request).
void exmalserver::ActionsStd::Stop ( const rad::AnyEvent last_event)

Implementation of the Stop action. This action:

  • replies back for the originator of the ReqStop request.
Parameters
[in]last_eventLast event received which should be a Stop event (the Stop event is triggered by a ReqStop request).
void exmalserver::ActionsStd::Stop ( const rad::AnyEvent last_event)

Implementation of the Stop action. This action:

  • replies back for the originator of the ReqStop request.
Parameters
[in]last_eventLast event received which should be a Stop event (the Stop event is triggered by a ReqStop request).

The documentation for this class was generated from the following files: