armodel 1.5.0__py3-none-any.whl → 1.6.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- armodel/cli/arxml_dump_cli.py +13 -13
- armodel/cli/memory_section_cli.py +76 -0
- armodel/cli/system_signal_cli.py +74 -0
- armodel/data_models/sw_connector.py +3 -3
- armodel/lib/__init__.py +2 -1
- armodel/lib/system_signal.py +37 -0
- armodel/models/__init__.py +9 -4
- armodel/models/annotation.py +27 -3
- armodel/models/ar_object.py +18 -6
- armodel/models/ar_package.py +271 -127
- armodel/models/ar_ref.py +11 -166
- armodel/models/bsw_module_template.py +37 -14
- armodel/models/common_structure.py +91 -174
- armodel/models/communication.py +2 -2
- armodel/models/data_prototype.py +41 -6
- armodel/models/datatype.py +16 -74
- armodel/models/end_to_end_protection.py +1 -1
- armodel/models/fibex/can_communication.py +119 -3
- armodel/models/fibex/fibex_4_can/__init__.py +0 -0
- armodel/models/fibex/fibex_4_lin/__init__.py +0 -0
- armodel/models/fibex/fibex_4_multiplatform.py +81 -88
- armodel/models/fibex/fibex_core/__init__.py +0 -0
- armodel/models/fibex/fibex_core/core_communication.py +627 -0
- armodel/models/fibex/fibex_core/core_topology.py +180 -0
- armodel/models/fibex/lin_communication.py +24 -3
- armodel/models/general_structure.py +110 -11
- armodel/models/internal_behavior.py +1 -1
- armodel/models/m2/__init__.py +0 -0
- armodel/models/m2/autosar_templates/__init__.py +0 -0
- armodel/models/m2/autosar_templates/common_structure/__init__.py +188 -0
- armodel/models/m2/autosar_templates/common_structure/constants.py +0 -0
- armodel/models/m2/autosar_templates/common_structure/implementation.py +21 -0
- armodel/models/m2/autosar_templates/common_structure/implementation_data_types.py +148 -0
- armodel/models/m2/autosar_templates/ecuc_description_template.py +269 -0
- armodel/models/m2/autosar_templates/generic_structure/__init__.py +0 -0
- armodel/models/m2/autosar_templates/generic_structure/abstract_structure.py +69 -0
- armodel/models/m2/autosar_templates/sw_component_template/__init__.py +0 -0
- armodel/models/m2/autosar_templates/sw_component_template/communication.py +360 -0
- armodel/models/m2/autosar_templates/sw_component_template/components/__init__.py +246 -0
- armodel/models/m2/autosar_templates/sw_component_template/components/instance_refs.py +181 -0
- armodel/models/m2/autosar_templates/sw_component_template/composition/__init__.py +154 -0
- armodel/models/m2/autosar_templates/sw_component_template/composition/instance_refs.py +157 -0
- armodel/models/m2/autosar_templates/sw_component_template/data_type/__init__.py +0 -0
- armodel/models/m2/autosar_templates/sw_component_template/data_type/data_prototypes.py +104 -0
- armodel/models/m2/autosar_templates/sw_component_template/port_interface/__init__.py +243 -0
- armodel/models/m2/autosar_templates/sw_component_template/port_interface/instance_refs.py +39 -0
- armodel/models/m2/autosar_templates/sw_component_template/port_interface.py +236 -0
- armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/__init__.py +203 -0
- armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/access_count.py +13 -0
- armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/data_elements.py +46 -0
- armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/instance_refs_usage.py +169 -0
- armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/mode_declaration_group.py +38 -0
- armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/server_call.py +27 -0
- armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/trigger.py +10 -0
- armodel/models/m2/autosar_templates/system_template/__init__.py +321 -0
- armodel/models/m2/autosar_templates/system_template/data_mapping.py +88 -0
- armodel/models/m2/autosar_templates/system_template/instance_refs.py +48 -0
- armodel/models/m2/autosar_templates/system_template/network_management.py +554 -0
- armodel/models/m2/autosar_templates/system_template/transport_protocols.py +7 -0
- armodel/models/m2/msr/__init__.py +0 -0
- armodel/models/m2/msr/asam_hdo/__init__.py +0 -0
- armodel/models/m2/msr/asam_hdo/units.py +105 -0
- armodel/models/m2/msr/data_dictionary/__init__.py +0 -0
- armodel/models/m2/msr/data_dictionary/auxillary_objects.py +42 -0
- armodel/models/m2/msr/data_dictionary/data_def_properties.py +295 -0
- armodel/models/m2/msr/documentation/__init__.py +0 -0
- armodel/models/m2/msr/documentation/block_elements.py +18 -0
- armodel/models/m2_msr.py +1 -0
- armodel/models/multilanguage_data.py +15 -0
- armodel/models/per_instance_memory.py +34 -6
- armodel/models/port_prototype.py +2 -253
- armodel/models/service_needs.py +3 -1
- armodel/models/sw_component.py +19 -358
- armodel/parser/__init__.py +2 -1
- armodel/parser/abstract_arxml_parser.py +10 -1
- armodel/parser/arxml_parser.py +912 -229
- armodel/parser/file_parser.py +43 -0
- armodel/tests/test_armodel/models/test_ar_package.py +6 -3
- armodel/tests/test_armodel/models/test_ar_ref.py +18 -16
- armodel/tests/test_armodel/models/test_bsw_module_template.py +5 -5
- armodel/tests/test_armodel/models/test_common_structure.py +8 -7
- armodel/tests/test_armodel/models/test_data_dictionary.py +5 -5
- armodel/tests/test_armodel/models/test_data_prototype.py +2 -2
- armodel/tests/test_armodel/models/test_datatype.py +9 -9
- armodel/tests/test_armodel/models/test_port_interface.py +2 -2
- armodel/tests/test_armodel/parser/test_parse_bswmd.py +3 -3
- armodel/tests/test_armodel/parser/test_sw_components.py +3 -3
- armodel/writer/abstract_arxml_writer.py +5 -1
- armodel/writer/arxml_writer.py +870 -224
- {armodel-1.5.0.dist-info → armodel-1.6.1.dist-info}/METADATA +28 -1
- armodel-1.6.1.dist-info/RECORD +140 -0
- {armodel-1.5.0.dist-info → armodel-1.6.1.dist-info}/entry_points.txt +3 -1
- armodel-1.5.0.dist-info/RECORD +0 -91
- {armodel-1.5.0.dist-info → armodel-1.6.1.dist-info}/LICENSE +0 -0
- {armodel-1.5.0.dist-info → armodel-1.6.1.dist-info}/WHEEL +0 -0
- {armodel-1.5.0.dist-info → armodel-1.6.1.dist-info}/top_level.txt +0 -0
armodel/models/datatype.py
CHANGED
|
@@ -3,23 +3,9 @@ from typing import List
|
|
|
3
3
|
|
|
4
4
|
from .ar_object import ARLiteral, ARNumerical
|
|
5
5
|
from .ar_ref import RefType
|
|
6
|
-
from .
|
|
7
|
-
from .
|
|
8
|
-
from .
|
|
9
|
-
from .data_dictionary import SwDataDefProps
|
|
10
|
-
from .common_structure import ImplementationDataTypeElement, ModeRequestTypeMap
|
|
11
|
-
|
|
12
|
-
class ImplementationProps(Referrable, metaclass=ABCMeta):
|
|
13
|
-
def __init__(self, parent: ARObject, short_name: str):
|
|
14
|
-
if type(self) == ImplementationProps:
|
|
15
|
-
raise NotImplementedError("ImplementationProps is an abstract class.")
|
|
16
|
-
|
|
17
|
-
super().__init__(parent, short_name)
|
|
18
|
-
self.symbol = ""
|
|
19
|
-
|
|
20
|
-
class SymbolProps(ImplementationProps):
|
|
21
|
-
def __init__(self, parent: ARObject, short_name: str):
|
|
22
|
-
super().__init__(parent, short_name)
|
|
6
|
+
from .general_structure import ARElement, ARObject
|
|
7
|
+
from .m2.autosar_templates.sw_component_template.data_type.data_prototypes import ApplicationCompositeElementDataPrototype, ApplicationRecordElement
|
|
8
|
+
from .common_structure import ModeRequestTypeMap
|
|
23
9
|
|
|
24
10
|
class BaseTypeDefinition(ARObject):
|
|
25
11
|
def __init__(self):
|
|
@@ -30,9 +16,9 @@ class BaseTypeDirectDefinition(BaseTypeDefinition):
|
|
|
30
16
|
super().__init__()
|
|
31
17
|
|
|
32
18
|
self.base_type_encoding = None
|
|
33
|
-
self.base_type_size = None
|
|
34
|
-
self.byteOrder = None
|
|
35
|
-
self.mem_alignment = None
|
|
19
|
+
self.base_type_size = None # type: ARNumerical
|
|
20
|
+
self.byteOrder = None # type: str
|
|
21
|
+
self.mem_alignment = None # type: ARNumerical
|
|
36
22
|
self.native_declaration = None
|
|
37
23
|
|
|
38
24
|
class BaseType(ARElement, metaclass=ABCMeta):
|
|
@@ -56,16 +42,23 @@ class AtpType(ARElement, metaclass=ABCMeta):
|
|
|
56
42
|
super().__init__(parent, short_name)
|
|
57
43
|
|
|
58
44
|
|
|
59
|
-
class AutosarDataType(AtpType, metaclass=ABCMeta):
|
|
45
|
+
class AutosarDataType(AtpType, metaclass = ABCMeta):
|
|
60
46
|
def __init__(self, parent: ARObject, short_name: str):
|
|
61
47
|
if type(self) == AutosarDataType:
|
|
62
48
|
raise NotImplementedError("AutosarDataType is an abstract class.")
|
|
63
49
|
|
|
64
50
|
super().__init__(parent, short_name)
|
|
65
|
-
self.sw_data_def_props = None # type: SwDataDefProps
|
|
66
51
|
|
|
52
|
+
self.swDataDefProps = None # type: SwDataDefProps
|
|
53
|
+
|
|
54
|
+
def getSwDataDefProps(self):
|
|
55
|
+
return self.swDataDefProps
|
|
67
56
|
|
|
68
|
-
|
|
57
|
+
def setSwDataDefProps(self, value):
|
|
58
|
+
self.swDataDefProps = value
|
|
59
|
+
return self
|
|
60
|
+
|
|
61
|
+
class ApplicationDataType(AutosarDataType, metaclass = ABCMeta):
|
|
69
62
|
def __init__(self, parent: ARObject, short_name: str):
|
|
70
63
|
if type(self) == ApplicationDataType:
|
|
71
64
|
raise NotImplementedError("ApplicationDataType is an abstract class.")
|
|
@@ -140,58 +133,7 @@ class ApplicationRecordDataType(ApplicationCompositeDataType):
|
|
|
140
133
|
def getApplicationRecordElements(self) -> List[ApplicationRecordElement]:
|
|
141
134
|
return self.record_elements
|
|
142
135
|
|
|
143
|
-
class AbstractImplementationDataType(AutosarDataType, metaclass=ABCMeta):
|
|
144
|
-
def __init__(self, parent: ARObject, short_name: str):
|
|
145
|
-
if type(self) == AbstractImplementationDataType:
|
|
146
|
-
raise NotImplementedError("AbstractImplementationDataType is an abstract class.")
|
|
147
|
-
|
|
148
|
-
super().__init__(parent, short_name)
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
class ImplementationDataType(AbstractImplementationDataType):
|
|
152
|
-
CATEGORY_TYPE_REFERENCE = "TYPE_REFERENCE"
|
|
153
|
-
CATEGORY_TYPE_VALUE = "VALUE"
|
|
154
|
-
CATEGORY_TYPE_STRUCTURE = "STRUCTURE"
|
|
155
|
-
CATEGORY_DATA_REFERENCE = "DATA_REFERENCE"
|
|
156
|
-
CATEGORY_ARRAY = "ARRAY"
|
|
157
136
|
|
|
158
|
-
def __init__(self, parent: ARObject, short_name: str):
|
|
159
|
-
super().__init__(parent, short_name)
|
|
160
|
-
|
|
161
|
-
self.sub_elements = [] # type: List[str]
|
|
162
|
-
self.symbol_props = None # type: ARLiteral
|
|
163
|
-
self._type_emitter = None # type: ARLiteral
|
|
164
|
-
|
|
165
|
-
self._array_type = None # ImplementationDataType
|
|
166
|
-
|
|
167
|
-
#type: ImplementationDataTypeElement
|
|
168
|
-
def createImplementationDataTypeElement(self, short_name: str):
|
|
169
|
-
self.sub_elements.append(short_name)
|
|
170
|
-
if (short_name not in self.elements):
|
|
171
|
-
event = ImplementationDataTypeElement(self, short_name)
|
|
172
|
-
self.elements[short_name] = event
|
|
173
|
-
return self.elements[short_name]
|
|
174
|
-
|
|
175
|
-
def getImplementationDataTypeElements(self) -> List[ImplementationDataTypeElement]:
|
|
176
|
-
elements = []
|
|
177
|
-
for sub_element in self.sub_elements:
|
|
178
|
-
elements.append(self.elements[sub_element])
|
|
179
|
-
return elements
|
|
180
|
-
# return filter(lambda c: isinstance(c, ImplementationDataTypeElement), self.elements.values())
|
|
181
|
-
|
|
182
|
-
def getArrayElementType(self) -> str:
|
|
183
|
-
return self._array_type
|
|
184
|
-
|
|
185
|
-
def setArrayElementType(self, type: str):
|
|
186
|
-
self._array_type = type
|
|
187
|
-
return self
|
|
188
|
-
|
|
189
|
-
def setTypeEmitter(self, emitter: str):
|
|
190
|
-
self._type_emitter = emitter
|
|
191
|
-
return self
|
|
192
|
-
|
|
193
|
-
def getTypeEmitter(self) -> str:
|
|
194
|
-
return self._type_emitter
|
|
195
137
|
|
|
196
138
|
|
|
197
139
|
class DataTypeMap(ARObject):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from typing import List
|
|
2
2
|
|
|
3
|
-
from .
|
|
3
|
+
from .m2.autosar_templates.system_template.instance_refs import VariableDataPrototypeInSystemInstanceRef
|
|
4
4
|
from .ar_object import ARNumerical, ARObject
|
|
5
5
|
from .general_structure import Identifiable
|
|
6
6
|
|
|
@@ -1,6 +1,122 @@
|
|
|
1
|
-
from ..
|
|
2
|
-
from
|
|
1
|
+
from ..general_structure import Identifiable
|
|
2
|
+
from ..ar_object import ARObject, ARPositiveInteger
|
|
3
|
+
from .fibex_core.core_communication import Frame, FrameTriggering
|
|
4
|
+
|
|
5
|
+
class RxIdentifierRange(ARObject):
|
|
6
|
+
def __init__(self):
|
|
7
|
+
super().__init__()
|
|
8
|
+
|
|
9
|
+
self.lowerCanId = None # type: ARPositiveInteger
|
|
10
|
+
self.upperCanId = None # type: ARPositiveInteger
|
|
11
|
+
|
|
12
|
+
def getLowerCanId(self) -> ARPositiveInteger:
|
|
13
|
+
return self.lowerCanId
|
|
14
|
+
|
|
15
|
+
def setLowerCanId(self, value: ARPositiveInteger):
|
|
16
|
+
self.lowerCanId = value
|
|
17
|
+
return self
|
|
18
|
+
|
|
19
|
+
def getUpperCanId(self) -> ARPositiveInteger:
|
|
20
|
+
return self.upperCanId
|
|
21
|
+
|
|
22
|
+
def setUpperCanId(self, value: ARPositiveInteger):
|
|
23
|
+
self.upperCanId = value
|
|
24
|
+
return self
|
|
3
25
|
|
|
4
26
|
class CanFrame(Frame):
|
|
5
27
|
def __init__(self, parent: ARObject, short_name: str):
|
|
6
|
-
super().__init__(parent, short_name)
|
|
28
|
+
super().__init__(parent, short_name)
|
|
29
|
+
|
|
30
|
+
class CanFrameTriggering(FrameTriggering):
|
|
31
|
+
def __init__(self, parent, short_name):
|
|
32
|
+
super().__init__(parent, short_name)
|
|
33
|
+
|
|
34
|
+
self.absolutelyScheduledTimings = []
|
|
35
|
+
self.canAddressingMode = None
|
|
36
|
+
self.canFdFrameSupport = None
|
|
37
|
+
self.canFrameRxBehavior = None
|
|
38
|
+
self.canFrameTxBehavior = None
|
|
39
|
+
self.canXlFrameTriggeringProps = None
|
|
40
|
+
self.identifier = None
|
|
41
|
+
self.j1939requestable = None
|
|
42
|
+
self.rxIdentifierRange = None # type: RxIdentifierRange
|
|
43
|
+
self.rxMask = None
|
|
44
|
+
self.txMask = None
|
|
45
|
+
|
|
46
|
+
def getAbsolutelyScheduledTimings(self):
|
|
47
|
+
return self.absolutelyScheduledTimings
|
|
48
|
+
|
|
49
|
+
def setAbsolutelyScheduledTimings(self, value):
|
|
50
|
+
self.absolutelyScheduledTimings = value
|
|
51
|
+
return self
|
|
52
|
+
|
|
53
|
+
def getCanAddressingMode(self):
|
|
54
|
+
return self.canAddressingMode
|
|
55
|
+
|
|
56
|
+
def setCanAddressingMode(self, value):
|
|
57
|
+
self.canAddressingMode = value
|
|
58
|
+
return self
|
|
59
|
+
|
|
60
|
+
def getCanFdFrameSupport(self):
|
|
61
|
+
return self.canFdFrameSupport
|
|
62
|
+
|
|
63
|
+
def setCanFdFrameSupport(self, value):
|
|
64
|
+
self.canFdFrameSupport = value
|
|
65
|
+
return self
|
|
66
|
+
|
|
67
|
+
def getCanFrameRxBehavior(self):
|
|
68
|
+
return self.canFrameRxBehavior
|
|
69
|
+
|
|
70
|
+
def setCanFrameRxBehavior(self, value):
|
|
71
|
+
self.canFrameRxBehavior = value
|
|
72
|
+
return self
|
|
73
|
+
|
|
74
|
+
def getCanFrameTxBehavior(self):
|
|
75
|
+
return self.canFrameTxBehavior
|
|
76
|
+
|
|
77
|
+
def setCanFrameTxBehavior(self, value):
|
|
78
|
+
self.canFrameTxBehavior = value
|
|
79
|
+
return self
|
|
80
|
+
|
|
81
|
+
def getCanXlFrameTriggeringProps(self):
|
|
82
|
+
return self.canXlFrameTriggeringProps
|
|
83
|
+
|
|
84
|
+
def setCanXlFrameTriggeringProps(self, value):
|
|
85
|
+
self.canXlFrameTriggeringProps = value
|
|
86
|
+
return self
|
|
87
|
+
|
|
88
|
+
def getIdentifier(self):
|
|
89
|
+
return self.identifier
|
|
90
|
+
|
|
91
|
+
def setIdentifier(self, value):
|
|
92
|
+
self.identifier = value
|
|
93
|
+
return self
|
|
94
|
+
|
|
95
|
+
def getJ1939requestable(self):
|
|
96
|
+
return self.j1939requestable
|
|
97
|
+
|
|
98
|
+
def setJ1939requestable(self, value):
|
|
99
|
+
self.j1939requestable = value
|
|
100
|
+
return self
|
|
101
|
+
|
|
102
|
+
def getRxIdentifierRange(self) -> RxIdentifierRange:
|
|
103
|
+
return self.rxIdentifierRange
|
|
104
|
+
|
|
105
|
+
def setRxIdentifierRange(self, value: RxIdentifierRange):
|
|
106
|
+
self.rxIdentifierRange = value
|
|
107
|
+
return self
|
|
108
|
+
|
|
109
|
+
def getRxMask(self):
|
|
110
|
+
return self.rxMask
|
|
111
|
+
|
|
112
|
+
def setRxMask(self, value):
|
|
113
|
+
self.rxMask = value
|
|
114
|
+
return self
|
|
115
|
+
|
|
116
|
+
def getTxMask(self):
|
|
117
|
+
return self.txMask
|
|
118
|
+
|
|
119
|
+
def setTxMask(self, value):
|
|
120
|
+
self.txMask = value
|
|
121
|
+
return self
|
|
122
|
+
|
|
File without changes
|
|
File without changes
|
|
@@ -1,145 +1,138 @@
|
|
|
1
1
|
from typing import List
|
|
2
2
|
|
|
3
|
+
from ..m2.msr.documentation.block_elements import DocumentationBlock
|
|
3
4
|
from ..ar_ref import RefType
|
|
4
5
|
from ..ar_object import ARObject, ARPositiveInteger
|
|
5
|
-
from .fibex_core import FibexElement
|
|
6
|
+
from .fibex_core.core_communication import FibexElement
|
|
6
7
|
|
|
7
8
|
class FrameMapping(ARObject):
|
|
8
9
|
def __init__(self):
|
|
9
10
|
super().__init__()
|
|
10
11
|
|
|
11
|
-
self.
|
|
12
|
-
self.
|
|
13
|
-
self.
|
|
12
|
+
self.introduction = None # type: DocumentationBlock
|
|
13
|
+
self.sourceFrameRef = None # type: RefType
|
|
14
|
+
self.targetFrameRef = None # type: RefType
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return self._introduction
|
|
16
|
+
def getIntroduction(self):
|
|
17
|
+
return self.introduction
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
self
|
|
19
|
+
def setIntroduction(self, value):
|
|
20
|
+
self.introduction = value
|
|
21
|
+
return self
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return self._source_frame_ref
|
|
23
|
+
def getSourceFrameRef(self):
|
|
24
|
+
return self.sourceFrameRef
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
self
|
|
26
|
+
def setSourceFrameRef(self, value):
|
|
27
|
+
self.sourceFrameRef = value
|
|
28
|
+
return self
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return self._target_frame_ref
|
|
30
|
+
def getTargetFrameRef(self):
|
|
31
|
+
return self.targetFrameRef
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
self
|
|
33
|
+
def setTargetFrameRef(self, value):
|
|
34
|
+
self.targetFrameRef = value
|
|
35
|
+
return self
|
|
38
36
|
|
|
39
37
|
class ISignalMapping(ARObject):
|
|
40
38
|
def __init__(self):
|
|
41
39
|
super().__init__()
|
|
42
40
|
|
|
43
|
-
self.
|
|
44
|
-
self.
|
|
45
|
-
self.
|
|
41
|
+
self.introduction = None # type: DocumentationBlock
|
|
42
|
+
self.sourceSignalRef = None # type: RefType
|
|
43
|
+
self.targetSignalRef = None # type: RefType
|
|
46
44
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return self._introduction
|
|
45
|
+
def getIntroduction(self):
|
|
46
|
+
return self.introduction
|
|
50
47
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
self
|
|
48
|
+
def setIntroduction(self, value):
|
|
49
|
+
self.introduction = value
|
|
50
|
+
return self
|
|
54
51
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return self._source_signal_ref
|
|
52
|
+
def getSourceSignalRef(self):
|
|
53
|
+
return self.sourceSignalRef
|
|
58
54
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
self
|
|
55
|
+
def setSourceSignalRef(self, value):
|
|
56
|
+
self.sourceSignalRef = value
|
|
57
|
+
return self
|
|
62
58
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return self._target_signal_ref
|
|
59
|
+
def getTargetSignalRef(self):
|
|
60
|
+
return self.targetSignalRef
|
|
66
61
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
self
|
|
62
|
+
def setTargetSignalRef(self, value):
|
|
63
|
+
self.targetSignalRef = value
|
|
64
|
+
return self
|
|
70
65
|
|
|
71
66
|
class IPduMapping(ARObject):
|
|
72
67
|
def __init__(self):
|
|
73
68
|
super().__init__()
|
|
74
69
|
|
|
75
|
-
self.
|
|
76
|
-
self.
|
|
77
|
-
self.
|
|
78
|
-
self.
|
|
70
|
+
self.introduction = None # type: DocumentationBlock
|
|
71
|
+
self.pdurTpChunkSize = None # type: ARPositiveInteger
|
|
72
|
+
self.sourceIpduRef = None # type: RefType
|
|
73
|
+
self.targetIpduRef = None # type: RefType
|
|
79
74
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
return self._introduction
|
|
75
|
+
def getIntroduction(self):
|
|
76
|
+
return self.introduction
|
|
83
77
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
self
|
|
78
|
+
def setIntroduction(self, value):
|
|
79
|
+
self.introduction = value
|
|
80
|
+
return self
|
|
87
81
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return self._pdur_tp_chunk_size
|
|
82
|
+
def getPdurTpChunkSize(self):
|
|
83
|
+
return self.pdurTpChunkSize
|
|
91
84
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
self
|
|
85
|
+
def setPdurTpChunkSize(self, value):
|
|
86
|
+
self.pdurTpChunkSize = value
|
|
87
|
+
return self
|
|
95
88
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
return self._source_ipdu_ref
|
|
89
|
+
def getSourceIpduRef(self):
|
|
90
|
+
return self.sourceIpduRef
|
|
99
91
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
self
|
|
92
|
+
def setSourceIpduRef(self, value):
|
|
93
|
+
self.sourceIpduRef = value
|
|
94
|
+
return self
|
|
103
95
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return self._target_ipdu_ref
|
|
96
|
+
def getTargetIpduRef(self):
|
|
97
|
+
return self.targetIpduRef
|
|
107
98
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
self
|
|
99
|
+
def setTargetIpduRef(self, value):
|
|
100
|
+
self.targetIpduRef = value
|
|
101
|
+
return self
|
|
111
102
|
|
|
112
103
|
class Gateway(FibexElement):
|
|
113
104
|
def __init__(self, parent: ARObject, short_name: str):
|
|
114
105
|
super().__init__(parent, short_name)
|
|
115
106
|
|
|
116
|
-
self.
|
|
117
|
-
self.
|
|
118
|
-
self.
|
|
119
|
-
self.
|
|
107
|
+
self.ecuRef = None # type: RefType
|
|
108
|
+
self.frameMappings = [] # type: List[FrameMapping]
|
|
109
|
+
self.iPduMappings = [] # type: List[IPduMapping]
|
|
110
|
+
self.signalMappings = [] # type: List[ISignalMapping]
|
|
111
|
+
|
|
112
|
+
def getEcuRef(self):
|
|
113
|
+
return self.ecuRef
|
|
120
114
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
return self
|
|
124
|
-
|
|
125
|
-
@ecuRef.setter
|
|
126
|
-
def ecuRef(self, value: RefType):
|
|
127
|
-
self._ecu_ref = value
|
|
115
|
+
def setEcuRef(self, value):
|
|
116
|
+
self.ecuRef = value
|
|
117
|
+
return self
|
|
128
118
|
|
|
129
119
|
def getFrameMappings(self) -> List[FrameMapping]:
|
|
130
|
-
return self.
|
|
120
|
+
return self.frameMappings
|
|
131
121
|
|
|
132
122
|
def addFrameMapping(self, mapping: FrameMapping):
|
|
133
|
-
self.
|
|
123
|
+
self.frameMappings.append(mapping)
|
|
124
|
+
return self
|
|
134
125
|
|
|
135
126
|
def getIPduMappings(self) -> List[FrameMapping]:
|
|
136
|
-
return self.
|
|
127
|
+
return self.iPduMappings
|
|
137
128
|
|
|
138
129
|
def addIPduMappings(self, mapping: FrameMapping):
|
|
139
|
-
self.
|
|
130
|
+
self.iPduMappings.append(mapping)
|
|
131
|
+
return self
|
|
140
132
|
|
|
141
133
|
def getSignalMappings(self) -> List[FrameMapping]:
|
|
142
|
-
return self.
|
|
134
|
+
return self.signalMappings
|
|
143
135
|
|
|
144
136
|
def addSignalMapping(self, mapping: FrameMapping):
|
|
145
|
-
self.
|
|
137
|
+
self.signalMappings.append(mapping)
|
|
138
|
+
return self
|
|
File without changes
|