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.
Files changed (96) hide show
  1. armodel/cli/arxml_dump_cli.py +13 -13
  2. armodel/cli/memory_section_cli.py +76 -0
  3. armodel/cli/system_signal_cli.py +74 -0
  4. armodel/data_models/sw_connector.py +3 -3
  5. armodel/lib/__init__.py +2 -1
  6. armodel/lib/system_signal.py +37 -0
  7. armodel/models/__init__.py +9 -4
  8. armodel/models/annotation.py +27 -3
  9. armodel/models/ar_object.py +18 -6
  10. armodel/models/ar_package.py +271 -127
  11. armodel/models/ar_ref.py +11 -166
  12. armodel/models/bsw_module_template.py +37 -14
  13. armodel/models/common_structure.py +91 -174
  14. armodel/models/communication.py +2 -2
  15. armodel/models/data_prototype.py +41 -6
  16. armodel/models/datatype.py +16 -74
  17. armodel/models/end_to_end_protection.py +1 -1
  18. armodel/models/fibex/can_communication.py +119 -3
  19. armodel/models/fibex/fibex_4_can/__init__.py +0 -0
  20. armodel/models/fibex/fibex_4_lin/__init__.py +0 -0
  21. armodel/models/fibex/fibex_4_multiplatform.py +81 -88
  22. armodel/models/fibex/fibex_core/__init__.py +0 -0
  23. armodel/models/fibex/fibex_core/core_communication.py +627 -0
  24. armodel/models/fibex/fibex_core/core_topology.py +180 -0
  25. armodel/models/fibex/lin_communication.py +24 -3
  26. armodel/models/general_structure.py +110 -11
  27. armodel/models/internal_behavior.py +1 -1
  28. armodel/models/m2/__init__.py +0 -0
  29. armodel/models/m2/autosar_templates/__init__.py +0 -0
  30. armodel/models/m2/autosar_templates/common_structure/__init__.py +188 -0
  31. armodel/models/m2/autosar_templates/common_structure/constants.py +0 -0
  32. armodel/models/m2/autosar_templates/common_structure/implementation.py +21 -0
  33. armodel/models/m2/autosar_templates/common_structure/implementation_data_types.py +148 -0
  34. armodel/models/m2/autosar_templates/ecuc_description_template.py +269 -0
  35. armodel/models/m2/autosar_templates/generic_structure/__init__.py +0 -0
  36. armodel/models/m2/autosar_templates/generic_structure/abstract_structure.py +69 -0
  37. armodel/models/m2/autosar_templates/sw_component_template/__init__.py +0 -0
  38. armodel/models/m2/autosar_templates/sw_component_template/communication.py +360 -0
  39. armodel/models/m2/autosar_templates/sw_component_template/components/__init__.py +246 -0
  40. armodel/models/m2/autosar_templates/sw_component_template/components/instance_refs.py +181 -0
  41. armodel/models/m2/autosar_templates/sw_component_template/composition/__init__.py +154 -0
  42. armodel/models/m2/autosar_templates/sw_component_template/composition/instance_refs.py +157 -0
  43. armodel/models/m2/autosar_templates/sw_component_template/data_type/__init__.py +0 -0
  44. armodel/models/m2/autosar_templates/sw_component_template/data_type/data_prototypes.py +104 -0
  45. armodel/models/m2/autosar_templates/sw_component_template/port_interface/__init__.py +243 -0
  46. armodel/models/m2/autosar_templates/sw_component_template/port_interface/instance_refs.py +39 -0
  47. armodel/models/m2/autosar_templates/sw_component_template/port_interface.py +236 -0
  48. armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/__init__.py +203 -0
  49. armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/access_count.py +13 -0
  50. armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/data_elements.py +46 -0
  51. armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/instance_refs_usage.py +169 -0
  52. armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/mode_declaration_group.py +38 -0
  53. armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/server_call.py +27 -0
  54. armodel/models/m2/autosar_templates/sw_component_template/swc_internal_behavior/trigger.py +10 -0
  55. armodel/models/m2/autosar_templates/system_template/__init__.py +321 -0
  56. armodel/models/m2/autosar_templates/system_template/data_mapping.py +88 -0
  57. armodel/models/m2/autosar_templates/system_template/instance_refs.py +48 -0
  58. armodel/models/m2/autosar_templates/system_template/network_management.py +554 -0
  59. armodel/models/m2/autosar_templates/system_template/transport_protocols.py +7 -0
  60. armodel/models/m2/msr/__init__.py +0 -0
  61. armodel/models/m2/msr/asam_hdo/__init__.py +0 -0
  62. armodel/models/m2/msr/asam_hdo/units.py +105 -0
  63. armodel/models/m2/msr/data_dictionary/__init__.py +0 -0
  64. armodel/models/m2/msr/data_dictionary/auxillary_objects.py +42 -0
  65. armodel/models/m2/msr/data_dictionary/data_def_properties.py +295 -0
  66. armodel/models/m2/msr/documentation/__init__.py +0 -0
  67. armodel/models/m2/msr/documentation/block_elements.py +18 -0
  68. armodel/models/m2_msr.py +1 -0
  69. armodel/models/multilanguage_data.py +15 -0
  70. armodel/models/per_instance_memory.py +34 -6
  71. armodel/models/port_prototype.py +2 -253
  72. armodel/models/service_needs.py +3 -1
  73. armodel/models/sw_component.py +19 -358
  74. armodel/parser/__init__.py +2 -1
  75. armodel/parser/abstract_arxml_parser.py +10 -1
  76. armodel/parser/arxml_parser.py +912 -229
  77. armodel/parser/file_parser.py +43 -0
  78. armodel/tests/test_armodel/models/test_ar_package.py +6 -3
  79. armodel/tests/test_armodel/models/test_ar_ref.py +18 -16
  80. armodel/tests/test_armodel/models/test_bsw_module_template.py +5 -5
  81. armodel/tests/test_armodel/models/test_common_structure.py +8 -7
  82. armodel/tests/test_armodel/models/test_data_dictionary.py +5 -5
  83. armodel/tests/test_armodel/models/test_data_prototype.py +2 -2
  84. armodel/tests/test_armodel/models/test_datatype.py +9 -9
  85. armodel/tests/test_armodel/models/test_port_interface.py +2 -2
  86. armodel/tests/test_armodel/parser/test_parse_bswmd.py +3 -3
  87. armodel/tests/test_armodel/parser/test_sw_components.py +3 -3
  88. armodel/writer/abstract_arxml_writer.py +5 -1
  89. armodel/writer/arxml_writer.py +870 -224
  90. {armodel-1.5.0.dist-info → armodel-1.6.1.dist-info}/METADATA +28 -1
  91. armodel-1.6.1.dist-info/RECORD +140 -0
  92. {armodel-1.5.0.dist-info → armodel-1.6.1.dist-info}/entry_points.txt +3 -1
  93. armodel-1.5.0.dist-info/RECORD +0 -91
  94. {armodel-1.5.0.dist-info → armodel-1.6.1.dist-info}/LICENSE +0 -0
  95. {armodel-1.5.0.dist-info → armodel-1.6.1.dist-info}/WHEEL +0 -0
  96. {armodel-1.5.0.dist-info → armodel-1.6.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,203 @@
1
+
2
+ from typing import Dict, List
3
+
4
+ from .data_elements import ParameterAccess, VariableAccess
5
+ from .server_call import ServerCallPoint
6
+ from .mode_declaration_group import ModeAccessPoint, ModeSwitchPoint
7
+ from .trigger import InternalTriggeringPoint
8
+
9
+ from .....ar_ref import RefType
10
+ from .....ar_object import ARBoolean, ARLiteral
11
+ from .....common_structure import ExecutableEntity
12
+ from .....ar_object import ARObject
13
+
14
+
15
+ class RunnableEntityArgument(ARObject):
16
+ def __init__(self):
17
+ super().__init__()
18
+
19
+ self.symbol = None # type: ARLiteral
20
+
21
+ def getSymbol(self):
22
+ return self.symbol
23
+
24
+ def setSymbol(self, value):
25
+ self.symbol = value
26
+ return self
27
+
28
+ class AsynchronousServerCallPoint(ServerCallPoint):
29
+ def __init__(self, parent: ARObject, short_name: str):
30
+ super().__init__(parent, short_name)
31
+
32
+ class AsynchronousServerCallResultPoint(ServerCallPoint):
33
+ def __init__(self, parent: ARObject, short_name: str):
34
+ super().__init__(parent, short_name)
35
+
36
+ self.asynchronousServerCallPointRef = None # type: RefType
37
+
38
+ def getAsynchronousServerCallPointRef(self):
39
+ return self.asynchronousServerCallPointRef
40
+
41
+ def setAsynchronousServerCallPointRef(self, value):
42
+ self.asynchronousServerCallPointRef = value
43
+ return self
44
+
45
+ class SynchronousServerCallPoint(ServerCallPoint):
46
+ def __init__(self, parent: ARObject, short_name: str):
47
+ super().__init__(parent, short_name)
48
+
49
+ self.calledFromWithinExclusiveAreaRef = None # type: RefType
50
+
51
+ def getCalledFromWithinExclusiveAreaRef(self):
52
+ return self.calledFromWithinExclusiveAreaRef
53
+
54
+ def setCalledFromWithinExclusiveAreaRef(self, value):
55
+ self.calledFromWithinExclusiveAreaRef = value
56
+ return self
57
+
58
+ class RunnableEntity(ExecutableEntity):
59
+ def __init__(self, parent: ARObject, short_name: str):
60
+ super().__init__(parent, short_name)
61
+
62
+ self.arguments = [] # type: List[RunnableEntityArgument]
63
+ self.canBeInvokedConcurrently = None # type: ARBoolean
64
+ self.dataReadAccesses = {} # type: Dict[str, VariableAccess]
65
+ self.dataReceivePointByArguments = {} # type: Dict[str, VariableAccess]
66
+ self.dataReceivePointByValues = {} # type: Dict[str, VariableAccess]
67
+ self.dataSendPoints = {} # type: Dict[str, VariableAccess]
68
+ self.dataWriteAccesses = {} # type: Dict[str, VariableAccess]
69
+ self.externalTriggeringPoints = {} # type: Dict[str, ExternalTriggeringPoint]
70
+ self.internalTriggeringPoints = {} # type: Dict[str, InternalTriggeringPoint]
71
+ self.modeAccessPoints = [] # type: List[ModeAccessPoint]
72
+ self.modeSwitchPoints = [] # type: List[ModeSwitchPoint]
73
+ self.parameterAccesses = {} # type: Dict[str, ParameterAccess]
74
+ self.readLocalVariables = {} # type: Dict[str, VariableAccess]
75
+ self.serverCallPoints = {} # type: Dict[str, ServerCallPoint]
76
+ self.symbol = None # type: ARLiteral
77
+ self.waitPoints = {} # type: Dict[str, WaitPoint]
78
+ self.writtenLocalVariables = {} # type: Dict[str, VariableAccess]
79
+
80
+ def _createVariableAccess(self, short_name, variable_accesses: Dict[str, VariableAccess]):
81
+ if (short_name not in self.elements):
82
+ variable_access = VariableAccess(self, short_name)
83
+ variable_accesses[short_name] = variable_access
84
+ return variable_accesses[short_name]
85
+
86
+ def getArguments(self):
87
+ return self.arguments
88
+
89
+ def addArgument(self, value):
90
+ self.arguments.append(value)
91
+ return self
92
+
93
+ def getCanBeInvokedConcurrently(self):
94
+ return self.canBeInvokedConcurrently
95
+
96
+ def setCanBeInvokedConcurrently(self, value):
97
+ self.canBeInvokedConcurrently = value
98
+ return self
99
+
100
+ def createDataReadAccess(self, short_name: str) -> VariableAccess:
101
+ return self._createVariableAccess(short_name, self.dataReadAccesses)
102
+
103
+ def getDataReadAccesses(self) -> List[VariableAccess]:
104
+ return sorted(self.dataReadAccesses.values(), key=lambda v: v.short_name)
105
+
106
+ def createDataWriteAccess(self, short_name: str) -> VariableAccess:
107
+ return self._createVariableAccess(short_name, self.dataWriteAccesses)
108
+
109
+ def getDataWriteAccesses(self) -> List[VariableAccess]:
110
+ return sorted(self.dataWriteAccesses.values(), key=lambda v: v.short_name)
111
+
112
+ def createDataReceivePointByArgument(self, short_name: str) -> VariableAccess:
113
+ return self._createVariableAccess(short_name, self.dataReceivePointByArguments)
114
+
115
+ def getDataReceivePointByArguments(self) -> List[VariableAccess]:
116
+ return sorted(self.dataReceivePointByArguments.values(), key=lambda v: v.short_name)
117
+
118
+ def createDataReceivePointByValue(self, short_name: str) -> VariableAccess:
119
+ return self._createVariableAccess(short_name, self.dataReceivePointByValues)
120
+
121
+ def getDataReceivePointByValues(self) -> List[VariableAccess]:
122
+ return sorted(self.dataReceivePointByValues.values(), key=lambda v: v.short_name)
123
+
124
+ def createDataSendPoint(self, short_name: str) -> VariableAccess:
125
+ return self._createVariableAccess(short_name, self.dataSendPoints)
126
+
127
+ def getDataSendPoints(self) -> List[VariableAccess]:
128
+ return sorted(self.dataSendPoints.values(), key=lambda v: v.short_name)
129
+
130
+ def createReadLocalVariable(self, short_name: str) -> VariableAccess:
131
+ return self._createVariableAccess(short_name, self.readLocalVariables)
132
+
133
+ def getReadLocalVariables(self) -> List[VariableAccess]:
134
+ return sorted(self.readLocalVariables.values(), key=lambda v: v.short_name)
135
+
136
+ def createWrittenLocalVariable(self, short_name: str) -> VariableAccess:
137
+ return self._createVariableAccess(short_name, self.writtenLocalVariables)
138
+
139
+ def getWrittenLocalVariables(self) -> List[VariableAccess]:
140
+ return sorted(self.writtenLocalVariables.values(), key=lambda v: v.short_name)
141
+
142
+ def getParameterAccesses(self) -> List[ParameterAccess]:
143
+ return list(sorted(filter(lambda a: isinstance(a, ParameterAccess), self.elements.values()), key= lambda o:o.short_name))
144
+
145
+ def createParameterAccess(self, short_name: str) -> ParameterAccess:
146
+ if (short_name not in self.elements):
147
+ access = ParameterAccess(self, short_name)
148
+ self.elements[short_name] = access
149
+ return self.elements[short_name]
150
+
151
+ def createSynchronousServerCallPoint(self, short_name: str) -> SynchronousServerCallPoint:
152
+ if (short_name not in self.serverCallPoints):
153
+ server_call_point = SynchronousServerCallPoint(self, short_name)
154
+ self.serverCallPoints[short_name] = server_call_point
155
+ return self.serverCallPoints[short_name]
156
+
157
+ def createAsynchronousServerCallPoint(self, short_name: str) -> AsynchronousServerCallPoint:
158
+ if (short_name not in self.serverCallPoints):
159
+ server_call_point = AsynchronousServerCallPoint(self, short_name)
160
+ self.serverCallPoints[short_name] = server_call_point
161
+ return self.serverCallPoints[short_name]
162
+
163
+ def getSynchronousServerCallPoint(self) -> List[ServerCallPoint]:
164
+ return filter(lambda o: isinstance(o, SynchronousServerCallPoint), self.getServerCallPoints())
165
+
166
+ def getAsynchronousServerCallPoint(self) -> List[ServerCallPoint]:
167
+ return filter(lambda o: isinstance(o, AsynchronousServerCallPoint), self.getServerCallPoints())
168
+
169
+ def getServerCallPoints(self) -> List[ServerCallPoint]:
170
+ return sorted(self.serverCallPoints.values(), key=lambda v: v.short_name)
171
+
172
+ def createInternalTriggeringPoint(self, short_name: str) -> InternalTriggeringPoint:
173
+ if (short_name not in self.elements):
174
+ point = InternalTriggeringPoint(self, short_name)
175
+ self.elements[point.short_name] = point
176
+ return self.elements[point.short_name]
177
+
178
+ def getInternalTriggeringPoints(self) -> List[InternalTriggeringPoint]:
179
+ return filter(lambda o: isinstance(o, InternalTriggeringPoint), self.elements)
180
+
181
+ def getModeAccessPoints(self) -> List[ModeAccessPoint]:
182
+ return self.modeAccessPoints
183
+
184
+ def addModeAccessPoint(self, value):
185
+ self.modeAccessPoints.append(value)
186
+
187
+ def getModeSwitchPoints(self) -> List[ModeSwitchPoint]:
188
+ return list(sorted(filter(lambda a: isinstance(a, ModeSwitchPoint), self.elements.values()), key= lambda o:o.short_name))
189
+
190
+ def createModeSwitchPoint(self, short_name: str) -> ModeSwitchPoint:
191
+ if (short_name not in self.elements):
192
+ access = ModeSwitchPoint(self, short_name)
193
+ self.elements[short_name] = access
194
+ self.modeSwitchPoints.append(access)
195
+ return self.elements[short_name]
196
+
197
+ def getSymbol(self):
198
+ return self.symbol
199
+
200
+ def setSymbol(self, value):
201
+ self.symbol = value
202
+ return self
203
+
@@ -0,0 +1,13 @@
1
+ from abc import ABCMeta
2
+
3
+ from .....general_structure import Identifiable
4
+ from .....ar_object import ARObject
5
+
6
+ class AbstractAccessPoint(Identifiable, metaclass = ABCMeta):
7
+ def __init__(self, parent: ARObject, short_name: str):
8
+ if type(self) == AbstractAccessPoint:
9
+ raise NotImplementedError("ARObject is an abstract class.")
10
+
11
+ super().__init__(parent, short_name)
12
+
13
+ self.return_value_provision = None
@@ -0,0 +1,46 @@
1
+ from .....general_structure import Identifiable
2
+ from .....ar_object import ARLiteral, ARObject
3
+ from ....msr.data_dictionary.data_def_properties import SwDataDefProps
4
+ from ..swc_internal_behavior.instance_refs_usage import AutosarParameterRef, AutosarVariableRef
5
+ from .access_count import AbstractAccessPoint
6
+ class ParameterAccess(AbstractAccessPoint):
7
+ def __init__(self, parent: ARObject, short_name: str):
8
+ super().__init__(parent, short_name)
9
+
10
+ self.accessedParameter = None # type: AutosarParameterRef
11
+ self.swDataDefProps = None # type: SwDataDefProps
12
+
13
+ def getAccessedParameter(self):
14
+ return self.accessedParameter
15
+
16
+ def setAccessedParameter(self, value):
17
+ self.accessedParameter = value
18
+ return self
19
+
20
+ def getSwDataDefProps(self):
21
+ return self.swDataDefProps
22
+
23
+ def setSwDataDefProps(self, value):
24
+ self.swDataDefProps = value
25
+ return self
26
+
27
+ class VariableAccess(Identifiable):
28
+ def __init__(self, parent: ARObject, short_name):
29
+ super().__init__(parent, short_name)
30
+
31
+ self.accessedVariableRef = None # type: AutosarVariableRef
32
+ self.scope = None # type: ARLiteral
33
+
34
+ def getAccessedVariableRef(self):
35
+ return self.accessedVariableRef
36
+
37
+ def setAccessedVariableRef(self, value):
38
+ self.accessedVariableRef = value
39
+ return self
40
+
41
+ def getScope(self):
42
+ return self.scope
43
+
44
+ def setScope(self, value):
45
+ self.scope = value
46
+ return self
@@ -0,0 +1,169 @@
1
+ from typing import List
2
+
3
+ from .....ar_object import ARObject
4
+ from .....ar_ref import RefType
5
+ from ...generic_structure.abstract_structure import AtpInstanceRef
6
+
7
+ class ArVariableInImplementationDataInstanceRef(AtpInstanceRef):
8
+ def __init__(self):
9
+ super().__init__()
10
+
11
+ self.contextDataPrototypeRefs = [] # type: List[RefType]
12
+ self.portPrototypeRef = None # type: RefType
13
+ self.rootVariableDataPrototypeRef = None # type: RefType
14
+ self.targetDataPrototypeRef = None # type: RefType
15
+
16
+ def getContextDataPrototypeRefs(self):
17
+ return self.contextDataPrototypeRefs
18
+
19
+ def setContextDataPrototypeRefs(self, value):
20
+ self.contextDataPrototypeRefs = value
21
+ return self
22
+
23
+ def getPortPrototypeRef(self):
24
+ return self.portPrototypeRef
25
+
26
+ def setPortPrototypeRef(self, value):
27
+ self.portPrototypeRef = value
28
+ return self
29
+
30
+ def getRootVariableDataPrototypeRef(self):
31
+ return self.rootVariableDataPrototypeRef
32
+
33
+ def setRootVariableDataPrototypeRef(self, value):
34
+ self.rootVariableDataPrototypeRef = value
35
+ return self
36
+
37
+ def getTargetDataPrototypeRef(self):
38
+ return self.targetDataPrototypeRef
39
+
40
+ def setTargetDataPrototypeRef(self, value):
41
+ self.targetDataPrototypeRef = value
42
+ return self
43
+
44
+ class VariableInAtomicSWCTypeInstanceRef(AtpInstanceRef):
45
+ def __init__(self):
46
+ super().__init__()
47
+
48
+ self.baseRef = None # type: RefType
49
+ self.contextDataPrototypeRefs = [] # type: List[RefType]
50
+ self.portPrototypeRef = None # type: RefType
51
+ self.rootVariableDataPrototypeRef = None # type: RefType
52
+ self.targetDataPrototypeRef = None # type: RefType
53
+
54
+ def getBaseRef(self):
55
+ return self.baseRef
56
+
57
+ def setBaseRef(self, value):
58
+ self.baseRef = value
59
+ return self
60
+
61
+ def getContextDataPrototypeRefs(self):
62
+ return self.contextDataPrototypeRefs
63
+
64
+ def addContextDataPrototypeRef(self, value):
65
+ self.contextDataPrototypeRefs.append(value)
66
+ return self
67
+
68
+ def getPortPrototypeRef(self):
69
+ return self.portPrototypeRef
70
+
71
+ def setPortPrototypeRef(self, value):
72
+ self.portPrototypeRef = value
73
+ return self
74
+
75
+ def getRootVariableDataPrototypeRef(self):
76
+ return self.rootVariableDataPrototypeRef
77
+
78
+ def setRootVariableDataPrototypeRef(self, value):
79
+ self.rootVariableDataPrototypeRef = value
80
+ return self
81
+
82
+ def getTargetDataPrototypeRef(self):
83
+ return self.targetDataPrototypeRef
84
+
85
+ def setTargetDataPrototypeRef(self, value):
86
+ self.targetDataPrototypeRef = value
87
+ return self
88
+
89
+ class AutosarVariableRef(ARObject):
90
+ def __init__(self):
91
+ super().__init__()
92
+
93
+ self.autosarVariableIRef = None # type: VariableInAtomicSWCTypeInstanceRef
94
+ self.autosarVariableInImplDatatype = None # type: ArVariableInImplementationDataInstanceRef
95
+ self.localVariableRef = None
96
+
97
+ def getAutosarVariableIRef(self):
98
+ return self.autosarVariableIRef
99
+
100
+ def setAutosarVariableIRef(self, value):
101
+ self.autosarVariableIRef = value
102
+ return self
103
+
104
+ def getAutosarVariableInImplDatatype(self):
105
+ return self.autosarVariableInImplDatatype
106
+
107
+ def setAutosarVariableInImplDatatype(self, value):
108
+ self.autosarVariableInImplDatatype = value
109
+ return self
110
+
111
+ def getLocalVariableRef(self):
112
+ return self.localVariableRef
113
+
114
+ def setLocalVariableRef(self, value):
115
+ self.localVariableRef = value
116
+ return self
117
+
118
+
119
+ class ParameterInAtomicSWCTypeInstanceRef(AtpInstanceRef):
120
+ def __init__(self):
121
+ super().__init__()
122
+
123
+ self.baseRef = None # type: RefType
124
+ self.contextDataPrototypeRef = None # type: RefType
125
+ self.portPrototypeRef = None # type: RefType
126
+ self.rootParameterDataPrototypeRef = None # type: RefType
127
+ self.targetDataPrototypeRef = None # type: RefType
128
+
129
+ def getBaseRef(self):
130
+ return self.baseRef
131
+
132
+ def setBaseRef(self, value):
133
+ self.baseRef = value
134
+ return self
135
+
136
+ def getContextDataPrototypeRef(self):
137
+ return self.contextDataPrototypeRef
138
+
139
+ def setContextDataPrototypeRef(self, value):
140
+ self.contextDataPrototypeRef = value
141
+ return self
142
+
143
+ def getPortPrototypeRef(self):
144
+ return self.portPrototypeRef
145
+
146
+ def setPortPrototypeRef(self, value):
147
+ self.portPrototypeRef = value
148
+ return self
149
+
150
+ def getRootParameterDataPrototypeRef(self):
151
+ return self.rootParameterDataPrototypeRef
152
+
153
+ def setRootParameterDataPrototypeRef(self, value):
154
+ self.rootParameterDataPrototypeRef = value
155
+ return self
156
+
157
+ def getTargetDataPrototypeRef(self):
158
+ return self.targetDataPrototypeRef
159
+
160
+ def setTargetDataPrototypeRef(self, value):
161
+ self.targetDataPrototypeRef = value
162
+ return self
163
+
164
+ class AutosarParameterRef(ARObject):
165
+ def __init__(self):
166
+ super().__init__()
167
+
168
+ self.autosar_parameter_iref = None # type: ParameterInAtomicSWCTypeInstanceRef
169
+ self.local_parameter_ref = None # type: RefType
@@ -0,0 +1,38 @@
1
+ from .access_count import AbstractAccessPoint
2
+ from ..components.instance_refs import PModeGroupInAtomicSwcInstanceRef, RModeGroupInAtomicSWCInstanceRef
3
+ from .....rpt_scenario import ModeAccessPointIdent
4
+ from .....ar_object import ARObject
5
+
6
+ class ModeAccessPoint(ARObject):
7
+ def __init__(self):
8
+ super().__init__()
9
+
10
+ self.ident = None # type: ModeAccessPointIdent
11
+ self.modeGroupIRef = None # type: RModeGroupInAtomicSWCInstanceRef
12
+
13
+ def getIdent(self):
14
+ return self.ident
15
+
16
+ def setIdent(self, value):
17
+ self.ident = value
18
+ return self
19
+
20
+ def getModeGroupIRef(self):
21
+ return self.modeGroupIRef
22
+
23
+ def setModeGroupIRef(self, value):
24
+ self.modeGroupIRef = value
25
+ return self
26
+
27
+ class ModeSwitchPoint(AbstractAccessPoint):
28
+ def __init__(self, parent: ARObject, short_name: str):
29
+ super().__init__(parent, short_name)
30
+
31
+ self.modeGroupIRef = None # type: PModeGroupInAtomicSwcInstanceRef
32
+
33
+ def getModeGroupIRef(self):
34
+ return self.modeGroupIRef
35
+
36
+ def setModeGroupIRef(self, value):
37
+ self.modeGroupIRef = value
38
+ return self
@@ -0,0 +1,27 @@
1
+ from abc import ABCMeta
2
+ from .....ar_object import ARObject
3
+ from ..composition.instance_refs import ROperationInAtomicSwcInstanceRef
4
+ from .access_count import AbstractAccessPoint
5
+
6
+
7
+ class ServerCallPoint(AbstractAccessPoint, metaclass = ABCMeta):
8
+
9
+ def __init__(self, parent: ARObject, short_name: str):
10
+ super().__init__(parent, short_name)
11
+
12
+ self.operationIRef = None # type: ROperationInAtomicSwcInstanceRef
13
+ self.timeout = None # type: float
14
+
15
+ def getOperationIRef(self):
16
+ return self.operationIRef
17
+
18
+ def setOperationIRef(self, value):
19
+ self.operationIRef = value
20
+ return self
21
+
22
+ def getTimeout(self):
23
+ return self.timeout
24
+
25
+ def setTimeout(self, value):
26
+ self.timeout = value
27
+ return self
@@ -0,0 +1,10 @@
1
+
2
+ from .access_count import AbstractAccessPoint
3
+ from .....ar_object import ARObject
4
+
5
+
6
+ class InternalTriggeringPoint(AbstractAccessPoint):
7
+ def __init__(self, parent: ARObject, short_name: str):
8
+ super().__init__(parent, short_name)
9
+
10
+ self.sw_impl_policy = None