forked from ES-DOC/esdoc-cim-v1-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmisc_classes.py
52 lines (44 loc) · 1.67 KB
/
misc_classes.py
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
# -*- coding: utf-8 -*-
"""
.. module:: misc_classes.py
:license: GPL/CeCIL
:platform: Unix, Windows
:synopsis: Set of CIM v1 miscellaneous package class definitions.
.. moduleauthor:: Mark Conway-Greenslade <[email protected]>
"""
def document_set():
"""Represents a bundled set of documents.
"""
return {
'type' : 'class',
'base' : None,
'is_abstract' : False,
'is_document': True,
'properties' : [
('data', 'data.data_object', '0.N'),
('ensembles', 'activity.ensemble', '0.N'),
('experiment', 'activity.numerical_experiment', '0.1'),
('grids', 'grids.grid_spec', '0.N'),
('model', 'software.model_component', '0.1'),
('platform', 'shared.platform', '0.1'),
('simulation', 'activity.simulation_run', '0.1')
],
'doc_strings': {
'data': 'Associated input/output data.',
'ensembles': 'Associated ensemble runs.',
'experiment': 'Associated numerical experiment.',
'grids': 'Associated grid-spec.',
'model': 'Associated model component.',
'platform': 'Associated simulation execution platform.',
'simulation': 'Associated simulation run.'
},
'decodings' : [
('data', 'child::cim:dataObject'),
('ensembles', 'child::cim:ensemble'),
('experiment', 'child::cim:numericalExperiment'),
('model', 'child::cim:modelComponent'),
('grids', 'child::cim:gridSpec'),
('platform', 'child::cim:platform'),
('simulation', 'child::cim:simulationRun'),
]
}