page11
Design
- specify public interface
- specify internal data
- specify RT actions
Finally we will design the random number generation itself. For this purpose we use a timer-event-source which periodically triggers an action.
First we define the event-source and the logical-event which is used by this source.
Right-click on the root-element “equipment-model” in order to add the element “events”.
All actions which do not interact with the client are called “rt-action”. This is what we need for the number generation. We as well choose to automatically notify all clients which subscribed to our property “GetRandomNumber”.
In order to connect our rt-action with the logical-event, we need to add a “scheduling-unit”.
Again right-click on the root-element in order to add the element “scheduling-units”.
Finally you finished the design-phase! Now re-check if your design is valid by pressing and fix all remaining bugs.
After that, trigger the code generation by pressing the button. This will generate the C++ source code skeleton of your class.