-
Notifications
You must be signed in to change notification settings - Fork 1
/
Simulation.xml
207 lines (147 loc) · 6.64 KB
/
Simulation.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<Lems xmlns="http://www.neuroml.org/lems/0.7.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.neuroml.org/lems/0.7.1 ../../LEMS/Schemas/LEMS/LEMS_v0.7.1.xsd">
<!-- A number of Simulation types for use in NeuroML 2 documents -->
<!-- Including standard unit definitions for NeuroML v2.0 -->
<Include file="NeuroMLCoreDimensions.xml"/>
<ComponentType name="Display">
<Parameter name="xmin" dimension="none"/>
<Parameter name="xmax" dimension="none"/>
<Parameter name="ymin" dimension="none"/>
<Parameter name="ymax" dimension="none"/>
<Parameter name="timeScale" dimension="time"/>
<Children name="lines" type="Line"/>
<Text name="title"/>
<Simulation>
<DataDisplay title="title" dataRegion="xmin,xmax,ymin,ymax"/>
</Simulation>
</ComponentType>
<ComponentType name="Line">
<Parameter name="scale" dimension="*"/>
<Parameter name="timeScale" dimension="*"/>
<Path name="quantity"/>
<Text name="color"/>
<Simulation>
<Record quantity="quantity" timeScale="timeScale" scale="scale" color="color"/>
</Simulation>
</ComponentType>
<ComponentType name="Simulation">
<Parameter name="length" dimension="time"/>
<Parameter name="step" dimension="time"/>
<Children name="displays" type="Display"/>
<Children name="outputs" type="OutputFile"/>
<ComponentReference name="target" type="Component"/>
<Dynamics>
<StateVariable name="t" dimension="time"/>
</Dynamics>
<Simulation>
<Run component="target" variable="t" increment="step" total="length"/>
</Simulation>
</ComponentType>
<ComponentType name="OutputFile">
<Children name="outputColumn" type="OutputColumn"/>
<Text name="path"/>
<Text name="fileName"/>
<Simulation>
<DataWriter path="path" fileName="fileName"/>
</Simulation>
</ComponentType>
<ComponentType name="OutputColumn">
<Path name="quantity"/>
<Simulation>
<Record quantity="quantity"/>
</Simulation>
</ComponentType>
<!--
<ComponentType name="DisplayList">
<Parameter name="timeScale" dimension="time"/>
<Children name="lines" type="LineElement"/>
<Text name="title"/>
<Text name="display"/>
</ComponentType>
<ComponentType name="LineElement">
<Parameter name="scale" dimension="*"/>
<Parameter name="timeScale" dimension="*"/>
<Text name="color"/>
<Text name="save"/>
<Path name="quantity"/>
<Simulation>
<Record quantity="quantity" timeScale="timeScale" scale="scale" color="color" display="display"/>
</Simulation>
</ComponentType>
<ComponentType name="DisplayElement">
<Parameter name="xmin" dimension="none"/>
<Parameter name="xmax" dimension="none"/>
<Parameter name="ymin" dimension="none"/>
<Parameter name="ymax" dimension="none"/>
<Text name="title"/>
<Simulation>
<DataDisplay title="title" dataRegion="xmin,xmax,ymin,ymax"/>
</Simulation>
</ComponentType>
<ComponentType name="SimulationElement">
<Parameter name="length" dimension="time"/>
<Parameter name="step" dimension="time"/>
<ComponentReference name="target" type="Component"/>
<Link name="display" type="DisplayElement"/>
<Children name="outputs" type="DisplayList"/>
<Dynamics>
<StateVariable name="t" dimension="time"/>
</Dynamics>
<Simulation>
<Run component="target" variable="t" increment="step" total="length"/>
</Simulation>
</ComponentType>
<ComponentType name="SimulationSet">
<Children name="simulations" type="SimulationElement"/>
<Children name="displays" type="DisplayElement"/>
</ComponentType>
-->
<!-- In development... *Might* lead to SED-ML descriptions being natively used by LEMS...
<ComponentType name="listOfSimulations">
<Children name="uniformTimeCourse" type="uniformTimeCourse"/>
</ComponentType>
<ComponentType name="uniformTimeCourse">
<Parameter name="initialTime" dimension="time"/>
<Parameter name="outputStartTime" dimension="time"/>
<Parameter name="outputEndTime" dimension="time"/>
<Parameter name="numberOfPoints" dimension="none"/>
<Dynamics>
<DerivedVariable name="length" dimension="time" value="outputEndTime - initialTime"/>
<DerivedVariable name="step" dimension="time" value="length/numberOfPoints"/>
</Dynamics>
</ComponentType>
<ComponentType name="Simulation2">
<Parameter name="length" dimension="time"/>
<Parameter name="step" dimension="time"/>
<Constant name="l2" dimension="time" value="400ms"/>
<ComponentReference name="target" type="network"/>
<Children name="displays" type="Display"/>
<Child name="uniformTimeCourse" type="uniformTimeCourse"/>
<Dynamics>
<StateVariable name="t" dimension="time"/>
<DerivedVariable name="length2" dimension="time" select="uniformTimeCourse/outputEndTime"/>
<Run component="target" variable="t" increment="step" total="length"/>
<Show src="displays"/>
</Dynamics>
</ComponentType>
<ComponentType name="sedML">
<Child name="listOfSimulations" type="listOfSimulations"/>
<Children name="uniformTimeCourse" type="uniformTimeCourse"/>
<Children name="displays" type="Display"/>
<ComponentReference name="target" type="network"/>
<Text name="version"/>
<Text name="level"/>
<Parameter name="length" dimension="time"/>
<Parameter name="step" dimension="time"/>
<Dynamics>
<StateVariable name="t" dimension="time"/>-->
<!--<ExternalVariable name="length" dimension="time" select="uniformTimeCourse/outputEndTime"/>-->
<!--<ExternalVariable name="length" dimension="time" select="listOfSimulations/uniformTimeCourse/outputEndTime"/>-->
<!--<DerivedVariable name="length" value="listOfSimulations/uniformTimeCourse/outputEndTime"/>-->
<!--<Run component="target" variable="t" increment="step" total="length"/>-->
<!--<Run component="target" variable="t" increment="0.01" total="300"/>
<Show src="displays"/>
</Dynamics>
</ComponentType>-->
</Lems>