Active ObjectsState Machines
Requirements
[SRS_QP_REQ_100]
QP/C++ Framework shall provide Event abstraction to QP/C++ Application
Description
The QP/C++ Framework shall define a common Event abstraction, so that it can be instantiated, exchanged, and correctly interpreted by both the QP/C++ Application and QP/C++ Framework.
Forward Traceability
- [SRS_QP_REQ_120] QP/C++ Framework event instances shall contain the event Signal.
- [SRS_QP_REQ_130] QP/C++ Framework shall allow Application to create event instances with Parameters defined by the Application
- [SRS_QP_REQ_131] QP/C++ Framework events may contain other data items for internal event management inside the framework.
- [SRS_QP_REQ_140] QP/C++ Framework may be compile-time configurable to allow customized initialization on event instances.
- [SRS_QP_REQ_350] QP/C++ Framework shall support immutable events.
- [SRS_QP_REQ_360] QP/C++ Framework shall support mutable events.
- [SRS_QP_REQ_381] QP/C++ Framework shall keep the Signal and Parameters of an event unchanged throughout the event's lifetime.
- [SAS_QP_TECH_30] Architectural view: Application framework software architecture for QP/C++ Framework component.
- [SAS_QP_LAY_01] Architectural view: QP/C++ Framework component layer.
- [SAS_QP_IFC_01A] Architectural view: QP/C++ Framework component base classes.
- [TUN_QP_qf_act] Unit test for qf_act: QEvt creation, management, integrity checking.
- [TIN_QP_evt] Integration test suite for events and event memory management.
- [QP::QEvt] Event class
[SRS_QP_REQ_120]
QP/C++ Framework event instances shall contain the event Signal.
Description
The event Signal carries the information about the occurrence that generated the given event instance. The Signal needs to be easily accessible to the QP/C++ Application to determine how to handle a given event.
Backward Traceability
- [SRS_QP_REQ_100] QP/C++ Framework shall provide Event abstraction to QP/C++ Application
Forward Traceability
- [SRS_QP_REQ_121] QP/C++ Framework shall allow up to 64K (65536) event signals.
- [SRS_QP_REQ_122] QP/C++ Framework may reserve some signals for its internal use
- [SRS_QP_REQ_123] QP/C++ Framework shall define the lowest numerical value of signals allowed in the Application.
- [TUN_QP_qf_act] Unit test for qf_act: QEvt creation, management, integrity checking.
- [TIN_QP_evt] Integration test suite for events and event memory management.
- [QP::QEvt] Event class
[SRS_QP_REQ_121]
QP/C++ Framework shall allow up to 64K (65536) event signals.
Description
QP/C++ Framework shall provide 64K signals (2 bytes of memory per event signal).
Backward Traceability
- [SRS_QP_REQ_120] QP/C++ Framework event instances shall contain the event Signal.
Forward Traceability
- [TUN_QP_qf_act] Unit test for qf_act: QEvt creation, management, integrity checking.
- [TIN_QP_evt] Integration test suite for events and event memory management.
[SRS_QP_REQ_122]
QP/C++ Framework may reserve some signals for its internal use
Description
QP/C++ Framework may need some reserved signals to implement features inside hierarchical state machines. The reserved signals shall have the lowest numerical values.
Backward Traceability
- [SRS_QP_REQ_120] QP/C++ Framework event instances shall contain the event Signal.
Forward Traceability
- [TUN_QP_qf_act] Unit test for qf_act: QEvt creation, management, integrity checking.
[SRS_QP_REQ_123]
QP/C++ Framework shall define the lowest numerical value of signals allowed in the Application.
Description
To avoid conflicts around any reserved event signals, QP/C++ Framework shall provide the lowest numerical limit for Application-level signals. In other words, the reserved signals will have numerical values 0 .. (SIGNAL_OFFSET - 1), and the Application-level signals will have values SIGNAL_OFFSET .. SIGNAL_DYNAMIC_RANGE.
Backward Traceability
- [SRS_QP_REQ_120] QP/C++ Framework event instances shall contain the event Signal.
Forward Traceability
- [TUN_QP_qf_act] Unit test for qf_act: QEvt creation, management, integrity checking.
- [TIN_QP_evt] Integration test suite for events and event memory management.
- [QP::QEvt] Event class
[SRS_QP_REQ_130]
QP/C++ Framework shall allow Application to create event instances with Parameters defined by the Application
Description
The Event abstraction shall provide a mechanism for QP/C++ Application to define event parameters useful for the QP/C++ Application, and then to create event instances with these parameters.
Backward Traceability
- [SRS_QP_REQ_100] QP/C++ Framework shall provide Event abstraction to QP/C++ Application
Forward Traceability
- [TUN_QP_qf_act] Unit test for qf_act: QEvt creation, management, integrity checking.
- [TIN_QP_evt] Integration test suite for events and event memory management.
- [QP::QEvt::QEvt()] Event constexpr constructor applicable to immutable and mutable event instances
[SRS_QP_REQ_131]
QP/C++ Framework events may contain other data items for internal event management inside the framework.
Description
Event management in the QP/C++ Framework might require additional information to be stored inside each event instance. Please see Event Memory Management for requirements related to event management inside the QP/C++ Framework.
Backward Traceability
- [SRS_QP_REQ_100] QP/C++ Framework shall provide Event abstraction to QP/C++ Application
Forward Traceability
- [TUN_QP_qf_act] Unit test for qf_act: QEvt creation, management, integrity checking.
- [TIN_QP_evt] Integration test suite for events and event memory management.
[SRS_QP_REQ_140]
QP/C++ Framework may be compile-time configurable to allow customized initialization on event instances.
Description
When such initialization is configured, QP/C++ Framework shall invoke the custom initialization upon instantiation of a dynamic event.
Backward Traceability
- [SRS_QP_REQ_100] QP/C++ Framework shall provide Event abstraction to QP/C++ Application
Forward Traceability
- [TUN_QP_qf_act] Unit test for qf_act: QEvt creation, management, integrity checking.
- [TIN_QP_evt] Integration test suite for events and event memory management.
- [QP::QEvt::init()] Event initialization for dynamic events
Active ObjectsState Machines