AUTOSAR Tab (Scalar Elements)
The AUTOSAR tab is only available for elements in AUTOSAR components. It contains the following elements.
Policy combo box
The combo box is used to set the AUTOSAR <SW-IMPL-POLICY> element of the <DATA-DEF-PROPS>.
The following
settings are available.
Note |
|---|
See the ASCET AUTOSAR user guide or the publications on the AUTOSAR web site for more information on <SW-IMPL-POLICY> and <DATA-DEF-PROPS>. |
Several
restrictions apply.
With AUTOSAR, you can specify if a value may become invalid (e.g., due to a broken sensor).
The following selections are available:
replace
A received invalid value is replaced with the init value.
don't invalidate
Invalidation is switched off.
keep
A received invalid value is kept and dealt with.
external Replacement
The actual value is replaced by the value taken from the replaceWith attribute.
If you select a value other than don't invalidate, an invalidation policy entry is written to the interface description <SWC_name>_interfaces.arxml. The following code extract shows examples.
| EXAMPLE |
|---|
<INVALIDATION-POLICYS> <INVALIDATION-POLICY> <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/ASCET_Interfaces/Impl/SR_interface_name/element1</DATA-ELEMENT-REF> <HANDLE-INVALID>EXTERNAL-REPLACEMENT</HANDLE-INVALID> </INVALIDATION-POLICY> <INVALIDATION-POLICY> <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/ASCET_Interfaces/Impl/SR_interface/element2</DATA-ELEMENT-REF> <HANDLE-INVALID>REPLACE</HANDLE-INVALID> </INVALIDATION-POLICY> <INVALIDATION-POLICY> <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/ASCET_Interfaces/Impl/SR_interface/element3</DATA-ELEMENT-REF> <HANDLE-INVALID>KEEP</HANDLE-INVALID> </INVALIDATION-POLICY> </INVALIDATION-POLICYS> |
See also