![]() |
appkit
1.5.1
RoadNarrows Robotics Application Kit
|
Public Member Functions | |
| StateEvent (int nEventId, const std::string &strEventName="", const std::string &strActionName="") | |
| Initialization constructor. More... | |
| virtual bool | evalGuardExpr (State *pState, int nPrevStateId, int nEventId) |
| Evaluate event guard condition. More... | |
| virtual int | execAction (State *pState, int nPrevStateId, int nEventId) |
| Execute action associated with the event. More... | |
| int | getEventId () const |
| std::string | getEventName () const |
| std::string | getActionName () const |
Protected Attributes | |
| int | m_nEventId |
| std::string | m_strEventName |
| std::string | m_strActionName |
| StateEvent::StateEvent | ( | int | nEventId, |
| const std::string & | strEventName = "", |
||
| const std::string & | strActionName = "" |
||
| ) |
|
inlinevirtual |
Evaluate event guard condition.
| pState | Associated state. |
| nPrevStateId | Previous state id. |
| nEventId | Received event id. |
Definition at line 109 of file State.h.
References execAction().
Referenced by rnr::State::dispatchEvent().
|
virtual |
Execute action associated with the event.
| pState | Associated state. |
| nPrevStateId | Previous state id. |
| nEventId | Received event id. |
Definition at line 107 of file State.cxx.
References rnr::State::m_nStateId.
Referenced by rnr::State::dispatchEvent(), and evalGuardExpr().