/
CollectionID.py
56 lines (48 loc) · 1.98 KB
/
CollectionID.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
53
54
55
56
# -*- coding: utf-8 -*-
"""
The CollectionIDType definition.
"""
from .base import DEFAULT_STRICT
# noinspection PyProtectedMember
from ...complex.sicd_elements.base import _StringDescriptor
from ...complex.sicd_elements.CollectionInfo import CollectionInfoType
__classification__ = "UNCLASSIFIED"
__author__ = "Thomas McCullough"
class CollectionIDType(CollectionInfoType):
"""
The CollectionID type definition.
"""
_fields = (
'CollectorName', 'IlluminatorName', 'CoreName', 'CollectType',
'RadarMode', 'Classification', 'ReleaseInfo', 'Parameters', 'CountryCodes')
_required = ('CollectorName', 'CoreName', 'RadarMode', 'Classification', 'ReleaseInfo')
# descriptors
ReleaseInfo = _StringDescriptor(
'ReleaseInfo', _required, strict=DEFAULT_STRICT, default_value='UNRESTRICTED',
docstring='The product release information.') # type: str
def __init__(self, CollectorName=None, IlluminatorName=None, CoreName=None, CollectType=None,
RadarMode=None, Classification="UNCLASSIFIED", ReleaseInfo='UNRESTRICTED',
CountryCodes=None, Parameters=None, **kwargs):
"""
Parameters
----------
CollectorName : str
IlluminatorName : str
CoreName : str
CollectType : str
RadarMode : RadarModeType
Classification : str
ReleaseInfo : str
CountryCodes : list|str
Parameters : ParametersCollection|dict
kwargs : dict
"""
if '_xml_ns' in kwargs:
self._xml_ns = kwargs['_xml_ns']
if '_xml_ns_key' in kwargs:
self._xml_ns_key = kwargs['_xml_ns_key']
self.ReleaseInfo = ReleaseInfo
super(CollectionIDType, self).__init__(
CollectorName=CollectorName, IlluminatorName=IlluminatorName, CoreName=CoreName,
CollectType=CollectType, RadarMode=RadarMode, Classification=Classification,
CountryCodes=CountryCodes, Parameters=Parameters, **kwargs)