|
#include <ArmarXCore/statechart/StatechartManager.h>
Public Types | |
enum | StatechartManagerState { eConstructed, eRunning, eShutDown } |
Public Member Functions | |
bool | addEvent (const EventPtr &newEvent, const StateControllerPtr &receivingState) |
template<typename EventType > | |
bool | addEvent (const StateControllerPtr &receivingState) |
StatechartManagerState | getManagerState () const |
StatePtr | getToplevelState () const |
bool | isRunning () const |
bool | isShutdown () const |
bool | setToplevelState (const armarx::StatePtr &newToplevelState, StringVariantContainerBaseMap startParameters=StringVariantContainerBaseMap()) |
setToplevelState sets the toplevel state of this manager. More... | |
void | shutdown () |
void | start (bool enterToplevelState=true) |
StatechartManager () | |
void | wakeUp () |
wakeUp signals the event processing thread to wake up and check for new events or shutdown conditions More... | |
~StatechartManager () override | |
Public Member Functions inherited from Logging | |
SpamFilterDataPtr | deactivateSpam (float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const |
disables the logging for the current line for the given amount of seconds. More... | |
MessageTypeT | getEffectiveLoggingLevel () const |
Logging () | |
void | setLocalMinimumLoggingLevel (MessageTypeT level) |
With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set. More... | |
void | setTag (const LogTag &tag) |
void | setTag (const std::string &tagName) |
virtual | ~Logging () |
Protected Member Functions | |
virtual void | processEvents () |
Protected Member Functions inherited from Logging | |
bool | checkLogLevel (MessageTypeT level) const |
const LogSenderPtr & | getLogSender () const |
Retrieve log sender. More... | |
LogSenderPtr | loghelper (const char *file, int line, const char *function) const |
Additional Inherited Members | |
Protected Attributes inherited from Logging | |
MessageTypeT | minimumLoggingLevel |
SpamFilterDataPtr | spamFilter |
LogTag | tag |
Definition at line 42 of file StatechartManager.h.
Enumerator | |
---|---|
eConstructed | |
eRunning | |
eShutDown |
Definition at line 65 of file StatechartManager.h.
|
override |
bool addEvent | ( | const EventPtr & | newEvent, |
const StateControllerPtr & | receivingState | ||
) |
|
inline |
StatechartManager::StatechartManagerState getManagerState | ( | ) | const |
Definition at line 165 of file StatechartManager.cpp.
StatePtr getToplevelState | ( | ) | const |
Definition at line 59 of file StatechartManager.cpp.
bool isRunning | ( | ) | const |
bool isShutdown | ( | ) | const |
|
protectedvirtual |
Definition at line 210 of file StatechartManager.cpp.
bool setToplevelState | ( | const armarx::StatePtr & | newToplevelState, |
StringVariantContainerBaseMap | startParameters = StringVariantContainerBaseMap() |
||
) |
setToplevelState sets the toplevel state of this manager.
This state will be started in start().
newToplevelState | Pointer to the toplevel state |
startParameters | Parameters that should be given to the toplevel state on startup. |
Definition at line 47 of file StatechartManager.cpp.
void shutdown | ( | ) |
Definition at line 98 of file StatechartManager.cpp.
void start | ( | bool | enterToplevelState = true | ) |
void wakeUp | ( | ) |
wakeUp signals the event processing thread to wake up and check for new events or shutdown conditions
Definition at line 171 of file StatechartManager.cpp.