rad  3.0.0
Public Member Functions | List of all members
hello::ActionsStd Class Reference

#include <actionsStd.hpp>

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

Public Member Functions

 ActionsStd (boost::asio::io_service &ios, rad::SMAdapter &sm, rad::MsgReplier &msgR_replier, DataContext &data)
 
void notifyEvent (scxml4cpp::Event *event)
 
void notifyStatus (std::set< scxml4cpp::State * > &status)
 
void Status (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 SetLogLevel (scxml4cpp::Context *c)
 
void Exit (scxml4cpp::Context *c)
 
void ExitNoReply (scxml4cpp::Context *c)
 
 ActionsStd (const ActionsStd &)=delete
 
ActionsStdoperator= (const ActionsStd &)=delete
 Disable copy constructor. More...
 
 ActionsStd (boost::asio::io_service &ios, rad::SMAdapter &sm, rad::MsgReplier &msgR_replier, DataContext &data)
 
void notifyEvent (scxml4cpp::Event *event)
 
void notifyStatus (std::set< scxml4cpp::State * > &status)
 
void Status (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 SetLogLevel (scxml4cpp::Context *c)
 
void Exit (scxml4cpp::Context *c)
 
void ExitNoReply (scxml4cpp::Context *c)
 
 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

◆ ActionsStd() [1/4]

hello::ActionsStd::ActionsStd ( boost::asio::io_service &  ios,
rad::SMAdapter sm,
rad::MsgReplier msg_replier,
DataContext data 
)

Constructor.

Parameters
[in]iosReference to the event loop.
[in]dispatcherReference to the event dispatcher.
[in]msg_replierHelper class to reply to incoming requests.
[in]dataData shared within the application among actions and activities.

◆ ActionsStd() [2/4]

hello::ActionsStd::ActionsStd ( const ActionsStd )
delete

◆ ActionsStd() [3/4]

hello::ActionsStd::ActionsStd ( boost::asio::io_service &  ios,
rad::SMAdapter sm,
rad::MsgReplier msgR_replier,
DataContext data 
)

◆ ActionsStd() [4/4]

hello::ActionsStd::ActionsStd ( const ActionsStd )
delete

Member Function Documentation

◆ Config() [1/2]

void hello::ActionsStd::Config ( scxml4cpp::Context c)

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]cContext containing the last event received by the State Machine.

◆ Config() [2/2]

void hello::ActionsStd::Config ( scxml4cpp::Context c)

◆ Disable() [1/2]

void hello::ActionsStd::Disable ( scxml4cpp::Context c)

Implementation of the Disable action. This action:

  • replies back for the originator of the ReqDisable request.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ Disable() [2/2]

void hello::ActionsStd::Disable ( scxml4cpp::Context c)

◆ Enable() [1/2]

void hello::ActionsStd::Enable ( scxml4cpp::Context c)

Implementation of the Enable action. This action:

  • replies back for the originator of the ReqEnable request.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ Enable() [2/2]

void hello::ActionsStd::Enable ( scxml4cpp::Context c)

◆ Exit() [1/2]

void hello::ActionsStd::Exit ( scxml4cpp::Context c)

Implementation of the Exit action. This action:

  • replies back for the originator of the ReqExit request.
  • stops the event loop.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ Exit() [2/2]

void hello::ActionsStd::Exit ( scxml4cpp::Context c)

◆ ExitNoReply() [1/2]

void hello::ActionsStd::ExitNoReply ( scxml4cpp::Context c)

Implementation of the ExitNoReply action. This action:

  • stops the event loop.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ ExitNoReply() [2/2]

void hello::ActionsStd::ExitNoReply ( scxml4cpp::Context c)

◆ Init() [1/2]

void hello::ActionsStd::Init ( scxml4cpp::Context c)

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]cContext containing the last event received by the State Machine.

◆ Init() [2/2]

void hello::ActionsStd::Init ( scxml4cpp::Context c)

◆ notifyEvent() [1/2]

void hello::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]eventRejected event.

Implements scxml4cpp::EventListener.

◆ notifyEvent() [2/2]

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

◆ notifyStatus() [1/2]

void hello::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.

◆ notifyStatus() [2/2]

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

◆ operator=() [1/2]

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

Disable copy constructor.

◆ operator=() [2/2]

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

Disable copy constructor.

◆ Reset() [1/2]

void hello::ActionsStd::Reset ( scxml4cpp::Context c)

Implementation of the Reset action. This action:

  • replies back for the originator of the ReqReset request.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ Reset() [2/2]

void hello::ActionsStd::Reset ( scxml4cpp::Context c)

◆ SetLogLevel() [1/2]

void hello::ActionsStd::SetLogLevel ( scxml4cpp::Context c)

Implementation of the SetLogLevel action. This action:

  • changes the log level,
  • replies back for the originator of the ReqSetLogLevel request.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ SetLogLevel() [2/2]

void hello::ActionsStd::SetLogLevel ( scxml4cpp::Context c)

◆ Status() [1/2]

void hello::ActionsStd::Status ( scxml4cpp::Context c)

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]cContext containing the last event received by the State Machine.

◆ Status() [2/2]

void hello::ActionsStd::Status ( scxml4cpp::Context c)

◆ Stop() [1/2]

void hello::ActionsStd::Stop ( scxml4cpp::Context c)

Implementation of the Stop action. This action:

  • replies back for the originator of the ReqStop request.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ Stop() [2/2]

void hello::ActionsStd::Stop ( scxml4cpp::Context c)

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