Skip to content

Commit fd92b9e

Browse files
committed
Update of RFC 4 after discussion
1 parent f56f6f7 commit fd92b9e

File tree

1 file changed

+33
-29
lines changed

1 file changed

+33
-29
lines changed

rfcs/RFC-004-systems.rst

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,19 @@ with a mapping of system-given module names to actual modules in the node.
5757
Systems can derive from other systems, and contain other systems as subgroups of
5858
their modules.
5959

60-
Preferably, if RFC-002 is implemented, systems will be able to be specified in a
61-
semi-machine-readable manner using YAML definition files, just like other
62-
interface entities.
60+
Systems will be able to be specified in a semi-machine-readable manner using
61+
YAML definition files, just like other interface entities.
6362

6463
Referencing Systems
6564
~~~~~~~~~~~~~~~~~~~
6665

6766
In the SECNode descriptive data, the optional property ``systems`` is
68-
introduced. It is a JSON object with local system names as keys and the
69-
schema name of the system and a mapping of module names as the value. For a
70-
system to be valid, all non-optional modules that are included in the system
71-
definition have to be present.
67+
introduced. It is a JSON object with local system names as keys and the schema
68+
name of the system and a mapping of module names as the value. For a system to
69+
be valid, all non-optional modules that are included in the system definition
70+
have to be present.
71+
72+
Local system names may not clash with module names on the same SEC node.
7273

7374
Example:
7475

@@ -85,36 +86,39 @@ Example:
8586
},
8687
8788
88-
For subsystems, the mapping dictionary can be nested:
89+
For subsystems:
8990

9091
.. code:: json
9192
9293
"systems": {
94+
"mag5t_x": [
95+
"PowerSupply",
96+
{
97+
"current": "magcur_x",
98+
"voltage": "magvolt_x"
99+
}
100+
],
101+
"mag5t_y": [
102+
"PowerSupply",
103+
{
104+
"current": "magcur_y",
105+
"voltage": "magvolt_y"
106+
}
107+
],
108+
"mag5t_z": [
109+
"PowerSupply",
110+
{
111+
"current": "magcur_z",
112+
"voltage": "magvolt_z"
113+
}
114+
],
93115
"mag5t": [
94116
"VectorMagnet",
95117
{
96118
"T": "magtemp",
97-
"X": [
98-
"PowerSupply",
99-
{
100-
"current": "magcur_x",
101-
"voltage": "magvolt_x"
102-
}
103-
],
104-
"Y": [
105-
"PowerSupply",
106-
{
107-
"current": "magcur_y",
108-
"voltage": "magvolt_y"
109-
}
110-
],
111-
"Z": [
112-
"PowerSupply",
113-
{
114-
"current": "magcur_z",
115-
"voltage": "magvolt_z"
116-
}
117-
],
119+
"X": "mag5t_x",
120+
"Y": "mag5t_y",
121+
"Z": "mag5t_z",
118122
},
119123
],
120124
},

0 commit comments

Comments
 (0)