-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work in progress; test XML; error checks
- Loading branch information
Peter Meisrimel
authored and
Peter Meisrimel
committed
Aug 12, 2024
1 parent
a861490
commit 043332e
Showing
13 changed files
with
243 additions
and
23 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
10 changes: 10 additions & 0 deletions
10
...arser_test_xmls/terminals_and_icons/invalid/flipped_coordinateSystem/modelDescription.xml
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,10 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<fmiModelDescription fmiVersion="3.0-alpha" modelName="terminalsAndIcons_testing" instantiationToken=""> | ||
<ModelExchange modelIdentifier="id"/> | ||
|
||
<ModelVariables> | ||
<Float64 name="f64_var" valueReference="1"/> | ||
</ModelVariables> | ||
|
||
<ModelStructure/> | ||
</fmiModelDescription> |
7 changes: 7 additions & 0 deletions
7
...minals_and_icons/invalid/flipped_coordinateSystem/terminalsAndIcons/terminalsAndIcons.xml
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,7 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<fmiTerminalsAndIcons fmiVersion="3.0-alpha"> | ||
<GraphicalRepresentation> | ||
<!-- coordinate system does not fulfill x1 < x2, y1 < y2 --> | ||
<CoordinateSystem x1="100" y1="100" x2="-100" y2="-100" suggestedScalingFactorTo_mm="0.1"/> | ||
</GraphicalRepresentation> | ||
</fmiTerminalsAndIcons> |
10 changes: 10 additions & 0 deletions
10
...er_test_xmls/terminals_and_icons/invalid/incomplete_coordinateSystem/modelDescription.xml
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,10 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<fmiModelDescription fmiVersion="3.0-alpha" modelName="terminalsAndIcons_testing" instantiationToken=""> | ||
<ModelExchange modelIdentifier="id"/> | ||
|
||
<ModelVariables> | ||
<Float64 name="f64_var" valueReference="1"/> | ||
</ModelVariables> | ||
|
||
<ModelStructure/> | ||
</fmiModelDescription> |
6 changes: 6 additions & 0 deletions
6
...als_and_icons/invalid/incomplete_coordinateSystem/terminalsAndIcons/terminalsAndIcons.xml
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,6 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<fmiTerminalsAndIcons fmiVersion="3.0-alpha"> | ||
<GraphicalRepresentation> | ||
<CoordinateSystem x1="200" y1="300" suggestedScalingFactorTo_mm="0.2"/> | ||
</GraphicalRepresentation> | ||
</fmiTerminalsAndIcons> |
10 changes: 10 additions & 0 deletions
10
Test/FMI3/parser_test_xmls/terminals_and_icons/invalid/incomplete_icon/modelDescription.xml
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,10 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<fmiModelDescription fmiVersion="3.0-alpha" modelName="terminalsAndIcons_testing" instantiationToken=""> | ||
<ModelExchange modelIdentifier="id"/> | ||
|
||
<ModelVariables> | ||
<Float64 name="f64_var" valueReference="1"/> | ||
</ModelVariables> | ||
|
||
<ModelStructure/> | ||
</fmiModelDescription> |
7 changes: 7 additions & 0 deletions
7
..._xmls/terminals_and_icons/invalid/incomplete_icon/terminalsAndIcons/terminalsAndIcons.xml
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,7 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<fmiTerminalsAndIcons fmiVersion="3.0-alpha"> | ||
<GraphicalRepresentation> | ||
<!-- Incomplete set of attributes --> | ||
<Icon x1="200" y1="300"/> | ||
</GraphicalRepresentation> | ||
</fmiTerminalsAndIcons> |
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
10 changes: 10 additions & 0 deletions
10
...er_test_xmls/terminals_and_icons/valid/empty_graphicalRepresentation/modelDescription.xml
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,10 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<fmiModelDescription fmiVersion="3.0-alpha" modelName="terminalsAndIcons_testing" instantiationToken=""> | ||
<ModelExchange modelIdentifier="id"/> | ||
|
||
<ModelVariables> | ||
<Float64 name="f64_var" valueReference="1"/> | ||
</ModelVariables> | ||
|
||
<ModelStructure/> | ||
</fmiModelDescription> |
6 changes: 6 additions & 0 deletions
6
...als_and_icons/valid/empty_graphicalRepresentation/terminalsAndIcons/terminalsAndIcons.xml
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,6 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<fmiTerminalsAndIcons fmiVersion="3.0-alpha"> | ||
<GraphicalRepresentation> | ||
<!-- takes default coordinate system --> | ||
</GraphicalRepresentation> | ||
</fmiTerminalsAndIcons> |
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