#include <AbstractAction.h>
Classes | |
struct | OnDemandProducerRef |
Public Member Functions | |
AbstractAction (std::string &actionName, std::string &className, const AbstractServiceLocator *serviceLocator, const std::map< std::string, const AbstractServiceLocator * > serviceLocatorRelatedClasses) | |
virtual | ~AbstractAction () |
const std::string & | getName () |
void | triggerOnDemandEventSource (const std::string &sourceName, MultiplexingContext *pCtxt, uint32_t msgPrio=DEFAULT_ON_DEMAND_MESSAGE_PRIO) |
void | triggerOnDemandEventSource (const std::string &sourceName, MultiplexingContext *pCtxt, const char *payload, uint32_t payloadSize, uint32_t msgPrio=DEFAULT_ON_DEMAND_MESSAGE_PRIO) |
void | triggerAllOnDemandEventSources (MultiplexingContext *pCtxt, uint32_t msgPrio=DEFAULT_ON_DEMAND_MESSAGE_PRIO) |
void | triggerAllAutomaticallyTriggeredOnDemandEventSources (MultiplexingContext *pCtxt, uint32_t msgPrio=DEFAULT_ON_DEMAND_MESSAGE_PRIO) |
Static Public Attributes | |
static const uint32_t | DEFAULT_ON_DEMAND_MESSAGE_PRIO = 0 |
Protected Types | |
typedef const std::string | OnDemandEventSourceName |
typedef std::map < OnDemandEventSourceName, OnDemandProducerRef > | OnDemandEventProducerCollection |
Protected Attributes | |
std::string | name_ |
name of the action | |
std::string | className_ |
name of the FESA-class, which controls this action | |
const AbstractServiceLocator * | serviceLocator_ |
const std::map< std::string, const AbstractServiceLocator * > | serviceLocatorRelatedClasses_ |
OnDemandEventProducerCollection | onDemandEventProducerCol_ |
Definition at line 20 of file AbstractAction.h.
typedef std::map< OnDemandEventSourceName,OnDemandProducerRef> fesa::AbstractAction::OnDemandEventProducerCollection [protected] |
Definition at line 62 of file AbstractAction.h.
typedef const std::string fesa::AbstractAction::OnDemandEventSourceName [protected] |
Definition at line 61 of file AbstractAction.h.
fesa::AbstractAction::AbstractAction | ( | std::string & | actionName, | |
std::string & | className, | |||
const AbstractServiceLocator * | serviceLocator, | |||
const std::map< std::string, const AbstractServiceLocator * > | serviceLocatorRelatedClasses | |||
) |
Definition at line 13 of file AbstractAction.cpp.
fesa::AbstractAction::~AbstractAction | ( | ) | [virtual] |
Definition at line 22 of file AbstractAction.cpp.
const std::string & fesa::AbstractAction::getName | ( | ) | [inline] |
Reimplemented in fesa::AbstractServerAction.
Definition at line 68 of file AbstractAction.h.
References name_.
Referenced by fesa::RTController::createAction().
void fesa::AbstractAction::triggerAllAutomaticallyTriggeredOnDemandEventSources | ( | MultiplexingContext * | pCtxt, | |
uint32_t | msgPrio = DEFAULT_ON_DEMAND_MESSAGE_PRIO | |||
) |
Definition at line 62 of file AbstractAction.cpp.
References fesa::FieldSynchroManager::commitModifiedFieldSynchronization(), fesa::MultiplexingContext::getCycleName(), fesa::FieldSynchroManager::getInstance(), and onDemandEventProducerCol_.
Referenced by fesa::ServerAction< DeviceType, DataType, FilterType >::execute(), and fesa::AbstractRTAction::executeAction().
void fesa::AbstractAction::triggerAllOnDemandEventSources | ( | MultiplexingContext * | pCtxt, | |
uint32_t | msgPrio = DEFAULT_ON_DEMAND_MESSAGE_PRIO | |||
) |
Definition at line 49 of file AbstractAction.cpp.
References fesa::FieldSynchroManager::commitModifiedFieldSynchronization(), fesa::MultiplexingContext::getCycleName(), fesa::FieldSynchroManager::getInstance(), and onDemandEventProducerCol_.
void fesa::AbstractAction::triggerOnDemandEventSource | ( | const std::string & | sourceName, | |
MultiplexingContext * | pCtxt, | |||
const char * | payload, | |||
uint32_t | payloadSize, | |||
uint32_t | msgPrio = DEFAULT_ON_DEMAND_MESSAGE_PRIO | |||
) |
Definition at line 32 of file AbstractAction.cpp.
References FesaErrorOnDemandEventProducerNotFound, fesa::MultiplexingContext::getCycleName(), fesa::FieldSynchroManager::getInstance(), and onDemandEventProducerCol_.
void fesa::AbstractAction::triggerOnDemandEventSource | ( | const std::string & | sourceName, | |
MultiplexingContext * | pCtxt, | |||
uint32_t | msgPrio = DEFAULT_ON_DEMAND_MESSAGE_PRIO | |||
) |
Definition at line 27 of file AbstractAction.cpp.
std::string fesa::AbstractAction::className_ [protected] |
name of the FESA-class, which controls this action
Definition at line 55 of file AbstractAction.h.
Referenced by fesa::AbstractRTAction::AbstractRTAction(), and fesa::AbstractRTAction::executeAction().
const uint32_t fesa::AbstractAction::DEFAULT_ON_DEMAND_MESSAGE_PRIO = 0 [static] |
Definition at line 28 of file AbstractAction.h.
std::string fesa::AbstractAction::name_ [protected] |
name of the action
Definition at line 49 of file AbstractAction.h.
Referenced by fesa::ServerAction< DeviceType, DataType, FilterType >::execute(), fesa::AbstractRTAction::executeAction(), fesa::AbstractServerAction::getName(), getName(), fesa::AbstractServerAction::printConfig(), fesa::RTDiagnosticSetting::printConfig(), fesa::RTAction< DeviceType >::printConfig(), fesa::RTDiagnosticSetting::printState(), and fesa::RTAction< DeviceType >::printState().
Definition at line 64 of file AbstractAction.h.
Referenced by triggerAllAutomaticallyTriggeredOnDemandEventSources(), triggerAllOnDemandEventSources(), and triggerOnDemandEventSource().
const AbstractServiceLocator* fesa::AbstractAction::serviceLocator_ [protected] |
Definition at line 57 of file AbstractAction.h.
Referenced by fesa::AbstractRTAction::executeAction().
const std::map<std::string, const AbstractServiceLocator*> fesa::AbstractAction::serviceLocatorRelatedClasses_ [protected] |
Definition at line 59 of file AbstractAction.h.