-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #253 from andlaus/writing_fixes
Writing fixes
- Loading branch information
Showing
11 changed files
with
142 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
odxtools/templates/macros/printEcuVariantPattern.xml.jinja2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{#- -*- mode: sgml; tab-width: 1; indent-tabs-mode: nil -*- | ||
# | ||
# SPDX-License-Identifier: MIT | ||
-#} | ||
|
||
{%- import('macros/printElementId.xml.jinja2') as peid %} | ||
{%- import('macros/printState.xml.jinja2') as ps %} | ||
{%- import('macros/printStateTransition.xml.jinja2') as pst %} | ||
|
||
{%- macro printMatchingParameter(mp) -%} | ||
<MATCHING-PARAMETER> | ||
<EXPECTED-VALUE>{{mp.expected_value}}</EXPECTED-VALUE> | ||
<DIAG-COMM-SNREF SHORT-NAME="{{mp.diag_comm_snref}}" /> | ||
{#- TODO: OUT-PARAM-IF-SNPATHREF #} | ||
<OUT-PARAM-IF-SNREF SHORT-NAME="{{mp.out_param_if}}" /> | ||
</MATCHING-PARAMETER> | ||
{%- endmacro -%} | ||
|
||
{%- macro printEcuVariantPattern(vp) -%} | ||
<ECU-VARIANT-PATTERN> | ||
<MATCHING-PARAMETERS> | ||
{%- for mp in vp.matching_parameters %} | ||
{{ printMatchingParameter(mp) | indent(2) }} | ||
{%- endfor %} | ||
</MATCHING-PARAMETERS> | ||
</ECU-VARIANT-PATTERN> | ||
{%- endmacro -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters