forked from MichaelClerx/cellml-validation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3.4.6.4.map_variables_talking_cousins.cellml
More file actions
50 lines (50 loc) · 1.67 KB
/
3.4.6.4.map_variables_talking_cousins.cellml
File metadata and controls
50 lines (50 loc) · 1.67 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- CellML Test Suite. https://github.com/MichaelClerx/cellml-validation -->
<!-- CellML 1.0, 3.4.6.4: Parent-child relationships are defined by
the parent's private interface, and
the child's public interface. -->
<!--
A - - > B
^ |
| v
AA BB
-->
<model name="map_variables_talking_cousins"
xmlns="http://www.cellml.org/cellml/1.0#">
<component name="AA">
<variable name="p" units="newton" public_interface="out" initial_value="1" />
</component>
<component name="A">
<variable name="q" units="newton" private_interface="in" public_interface="out" />
</component>
<component name="B">
<variable name="r" units="newton" public_interface="in" private_interface="out" />
</component>
<component name="BB">
<variable name="s" units="newton" public_interface="in" />
</component>
<group>
<relationship_ref relationship="encapsulation" />
<component_ref component="A" >
<component_ref component="AA" />
</component_ref>
</group>
<group>
<relationship_ref relationship="encapsulation" />
<component_ref component="B" >
<component_ref component="BB" />
</component_ref>
</group>
<connection>
<map_components component_1="AA" component_2="A" />
<map_variables variable_1="p" variable_2="q" />
</connection>
<connection>
<map_components component_1="A" component_2="B" />
<map_variables variable_1="q" variable_2="r" />
</connection>
<connection>
<map_components component_1="B" component_2="BB" />
<map_variables variable_1="r" variable_2="s" />
</connection>
</model>