|
1 | 1 | = Sensor view input configuration |
2 | 2 |
|
3 | | -Sensor-view input configurations are present in sensor models. |
4 | | - |
5 | 3 | For each notional sensor view input variable with the base prefix `OSMPSensorViewIn`, a corresponding calculated parameter with the base prefix `OSMPSensorViewInConfigRequest` and a parameter with the base prefix `OSMPSensorViewInConfig` can exist. |
6 | 4 |
|
7 | 5 | During FMI initialization mode, the simulation environment queries the value of `OSMPSensorViewInConfigRequest`. |
8 | | -Taking this value into account, a suitable and supported sensor-view input configuration is determined. |
| 6 | +Taking this value into account, a suitable and supported sensor view input configuration is determined. |
9 | 7 | Before exiting initialization mode, the simulation environment then sets this configuration using the corresponding `OSMPSensorViewInConfig` parameter. |
10 | 8 |
|
11 | | - |
12 | 9 | **Prefix** |
13 | 10 |
|
14 | | -Sensor-view input configurations shall be named with the following prefix: |
| 11 | +Sensor view input configurations shall be named with the following prefix: |
15 | 12 |
|
16 | 13 | [source] |
17 | 14 | ---- |
18 | 15 | OSMPSensorViewInConfig |
19 | 16 | ---- |
20 | 17 |
|
21 | | -Sensor-view input-configuration requests shall be named with the following prefix: |
| 18 | +Sensor view input-configuration requests shall be named with the following prefix: |
22 | 19 |
|
23 | 20 | [source] |
24 | 21 | ---- |
25 | 22 | OSMPSensorViewInConfigRequest |
26 | 23 | ---- |
27 | 24 |
|
28 | | - |
29 | 25 | **Rules** |
30 | 26 |
|
| 27 | +* If more than one sensor view input is to be configured, the prefix shall be extended by an array index, for example, `OSMPSensorViewInConfigRequest[1]`, `OSMPSensorViewInConfig[1]`, `OSMPSensorViewInConfigRequest[2]`, and `OSMPSensorViewInConfig[2]`. |
| 28 | +* Array indices shall start at 1, shall be consecutive, and shall correspond between sensor view inputs and sensor view configuration parameters. |
31 | 29 | * If the calculated parameter `OSMPSensorViewInConfigRequest` exists, then the corresponding parameter `OSMPSensorViewInConfig` shall exist. |
32 | | -* The variable values shall be encoded as `osi3::SensorViewConfiguration`. |
33 | 30 | * `OSMPSensorViewInConfigRequest` shall have a `@causality = "calculatedParameter"` and a `@variability = "fixed"` or `@variability = "tunable"`. |
34 | 31 | * `OSMPSensorViewInConfig` shall have a `@causality = "parameter"` and a `@variability = "fixed"` or `@variability = "tunable"`. |
35 | 32 | * The `@variability` values of `OSMPSensorViewInConfigRequest` and `OSMPSensorViewInConfig` shall match. |
36 | | -* The MIME type of both variables shall specify `@type="SensorViewConfiguration"`. |
| 33 | +* The MIME type of both variables shall specify `type="SensorViewConfiguration"` as part of the MIME type parameters. |
| 34 | +* The variable values shall be encoded as `osi3::SensorViewConfiguration`. |
37 | 35 | * As long as no non-zero value has been assigned to `OSMPSensorViewInConfig`, the value of the corresponding `OSMPSensorViewInConfigRequest` shall be the desired sensor view configuration for the corresponding variable `OSMPSensorViewIn`. |
38 | 36 | This configuration is based on model-internal requirements or any other parameters on which this calculated parameter depends. |
39 | 37 | * Once a non-zero value has been assigned to `OSMPSensorViewInConfig`, the value of the corresponding `OSMPSensorViewInConfigRequest` shall be an encoded OSI protocol buffer containing the same data as the `OSMPSensorViewInConfig`. |
40 | | -* During FMI initialization mode, the simulation environment should query the value of `OSMPSensorViewInConfigRequest` and determine a suitable sensor-view input configuration. |
41 | | -* Before exiting initialization mode, the simulation environment shall set the sensor-view input configuration using the corresponding `OSMPSensorViewInConfig` parameter. |
| 38 | +* During FMI initialization mode, the simulation environment should query the value of `OSMPSensorViewInConfigRequest` and determine a suitable sensor view input configuration. |
| 39 | +* Before exiting initialization mode, the simulation environment shall set the sensor view input configuration using the corresponding `OSMPSensorViewInConfig` parameter. |
| 40 | +* The guaranteed lifetime of the sensor view configuration protocol-buffer pointers shall be from the time of the call to `fmi2SetInteger` that provides those values until the end of the FMI initialization mode, indicating by the return of the `fmi2ExitInitializationMode` call. |
0 commit comments