|
void | init (void const *const e, std::uint_fast8_t const qsId) override |
| Virtual function to take the top-most initial transition in the state machine.
|
|
void | init (std::uint_fast8_t const qsId) override |
| Virtual function to take the top-most initial transition in the state machine (overloaded).
|
|
void | dispatch (QEvt const *const e, std::uint_fast8_t const qsId) override |
| Virtual function to dispatch an event to the state machine.
|
|
bool | isIn (QStateHandler const stateHndl) noexcept override |
| Virtual function to check whether the state machine is in a given state.
|
|
QStateHandler | getStateHandler () noexcept override |
| Virtual method for getting the state handler.
|
|
QMState const * | childStateObj (QMState const *const parent) const noexcept |
|
QStateHandler | childState (QStateHandler const parentHandler) noexcept |
|
void | setAttr (std::uint32_t attr1, void const *attr2=nullptr) |
|
void | start (QPrioSpec const prioSpec, QEvtPtr *const qSto, std::uint_fast16_t const qLen, void *const stkSto, std::uint_fast16_t const stkSize, void const *const par) |
|
void | start (QPrioSpec const prioSpec, QEvtPtr *const qSto, std::uint_fast16_t const qLen, void *const stkSto, std::uint_fast16_t const stkSize) |
|
void | stop () |
|
void | register_ () noexcept |
|
void | unregister_ () noexcept |
|
bool | post_ (QEvt const *const e, std::uint_fast16_t const margin, void const *const sender) noexcept |
|
void | postLIFO (QEvt const *const e) noexcept |
|
QEvt const * | get_ () noexcept |
|
void | subscribe (enum_t const sig) const noexcept |
|
void | unsubscribe (enum_t const sig) const noexcept |
|
void | unsubscribeAll () const noexcept |
|
bool | defer (QEQueue *const eq, QEvt const *const e) const noexcept |
|
bool | recall (QEQueue *const eq) noexcept |
|
std::uint_fast16_t | flushDeferred (QEQueue *const eq, std::uint_fast16_t const num=0xFFFFU) const noexcept |
|
std::uint_fast8_t | getPrio () const noexcept |
|
void | setPrio (QPrioSpec const prio) noexcept |
|
std::uint_fast8_t | getPThre () const noexcept |
|
QACTIVE_EQUEUE_TYPE const & | getEQueue () const noexcept |
|
QACTIVE_OS_OBJ_TYPE const & | getOsObject () const noexcept |
|
QACTIVE_THREAD_TYPE const & | getThread () const noexcept |
|
void | setThread (QACTIVE_THREAD_TYPE const &thr) |
|
virtual bool | postFromISR (QEvt const *const e, std::uint_fast16_t const margin, void *par, void const *const sender) noexcept |
|
virtual | ~QAsm () noexcept |
| Virtual destructor of the QP::QAsm abstract base class.
|
|
QStateHandler | state () const noexcept |
|
QMState const * | stateObj () const noexcept |
|
Active object class (based on QMsm implementation strategy)
- Details
- QMActive represents an active object that uses the QP::QMsm style state machine implementation strategy. This strategy requires the use of the QM modeling tool to generate state machine code automatically, but the code is faster than in the QP::QHsm style implementation strategy and needs less run-time support (smaller event-processor).
- Note
- QMActive is not intended to be instantiated directly, but rather serves as the base class for derivation of active objects in the application.
- Backward Traceability
-
- Usage
- The following example illustrates how to derive an active object from QP::QMActive. Please note the call to the QMActive constructor in the Philo subclass' constructor.
private:
public:
Philo::Philo()
m_timeEvt(this, TIMEOUT_SIG, 0U)
{}
protected:
. . .
};
Active object class (based on QMsm implementation strategy)
QMActive(QStateHandler const initial) noexcept
Constructor of QP::QMActive class.
#define Q_STATE_CAST(handler_)
#define QM_STATE_DECL(state_)
#define QM_ACTION_DECL(action_)
Definition at line 735 of file qp.hpp.