Skip to content

Commit 242ebad

Browse files
authored
Merge pull request #131 from LEMS/experimental
Formatting xml - remove whitespaces
2 parents 3cbb679 + 1172ab9 commit 242ebad

2 files changed

Lines changed: 26 additions & 26 deletions

File tree

src/test/resources/MultiRunSimulation.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<ComponentType name="DisplayList">
55
<Parameter name="timeScale" dimension="time"/>
66
<Children name="lines" type="Line"/>
7-
8-
<Text name="title"/>
7+
8+
<Text name="title"/>
99
<Text name="display"/>
1010
</ComponentType>
1111

1212

1313

1414
<ComponentType name="Display">
15-
<Text name="title"/>
15+
<Text name="title"/>
1616
<Parameter name="xmin" dimension="none"/>
1717
<Parameter name="xmax" dimension="none"/>
1818
<Parameter name="ymin" dimension="none"/>
@@ -45,7 +45,7 @@
4545
<Dynamics>
4646
<StateVariable name="t" dimension="time"/>
4747
</Dynamics>
48-
48+
4949
<Simulation>
5050
<Run component="target" variable="t" increment="step" total="length"/>
5151
</Simulation>
@@ -56,8 +56,8 @@
5656
<ComponentType name="SimulationSet">
5757
<Children name="simulations" type="Simulation"/>
5858
<Children name="displays" type="Display"/>
59-
60-
59+
60+
6161
</ComponentType>
6262

63-
</Lems>
63+
</Lems>
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Lems>
22

3-
<Target component="sim"/>
4-
3+
<Target component="sim"/>
4+
55
<Dimension name="length" l="1" />
66
<Dimension name="time" t="1" />
77
<Dimension name="speed" l="1" t="-1"/>
88
<Dimension name="acceleration" l="1" t="-2"/>
9-
9+
1010
<Unit symbol="s" dimension="time"/>
1111
<Unit symbol="m" dimension="length"/>
1212
<Unit symbol="m_per_s" dimension="speed"/>
@@ -20,18 +20,18 @@
2020
<Parameter name="t1" dimension="time"/>
2121
<Parameter name="t2" dimension="time"/>
2222
<Exposure name="height" dimension="time"/>
23-
23+
2424
<Constant name="AccG" dimension="acceleration" value="9.8m_per_s2"/>
25-
25+
2626
<Dynamics>
2727
<StateVariable name="height" exposure="height" dimension="length"/>
2828
<StateVariable name="vel" dimension="speed"/>
29-
29+
3030
<OnStart>
3131
<StateAssignment variable="height" value="y0"/>
3232
<StateAssignment variable="vel" value="0"/>
3333
</OnStart>
34-
34+
3535
<ConditionalDerivedVariable name="effacc" dimension="acceleration">
3636
<Case condition="t .lt. t1" value="-1 * AccG"/>
3737
<Case condition="t .lt. t2" value="-0.1 * AccG"/>
@@ -48,25 +48,25 @@
4848
</OnCondition>
4949
</Dynamics>
5050
</ComponentType>
51-
52-
5351

54-
52+
53+
54+
5555
<ball id="ball" fbounce="0.9" y0="5m" t1="5s" t2="10s"/>
56-
57-
56+
57+
5858
<Include file="SingleSimulation.xml" />
59-
59+
6060

6161

6262
<Simulation id="sim" length="20s" step="0.01s" target="ball">
6363
<Display id="disp1" title="Net1" xmin="0" xmax="30" ymin="-1" ymax="6" timeScale="1s">
6464
<Line id="g0" timeScale="1s" quantity="height" scale="1m" color="#0000f0"/>
65-
66-
</Display>
67-
68-
69-
65+
66+
</Display>
67+
68+
69+
7070
</Simulation>
7171

72-
</Lems>
72+
</Lems>

0 commit comments

Comments
 (0)