The applicative code of a component is implemented using three functions. They are described
in the following table:
| Function |
Description |
| Initialize function |
This function initializes values or executes any relevant process required
during the start-up phase. |
| Step function |
This function is the main function that contains the main applicative
code. |
| End function |
This function is executed at the end of the execution to clean data or execute
any process required at the shutdown phase. |
Generated API Specifications
Three applicative functions must be created to fulfill the scheduling characteristics for
the init, step, and the end phases. These functions have to be implemented by the component
code associated to a behavior contained in the component.
- Initialize function:
void <Behavior_Name>_init(Rte_Instance
instance)
- Step function:
There are two possible formats for the step function.
- The function is triggered via any kind of execution type except
OperationInvokedExecution.
void <Behavior_Name>(Rte_Instance instance)
- The function implements a sever operation triggered by an
OperationInvokedExecution.
<return_type>
<Behavior_Name>(Rte_Instance instance, <argument_type>* argumentName,
…)
- End function:
void <Behavior_Name>_end(Rte_Instance
instance)