armodel 1.9.1__py3-none-any.whl → 1.9.2__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/__init__.py +7 -8
- armodel/cli/connector2xlsx_cli.py +0 -2
- armodel/cli/connector_update_cli.py +0 -2
- armodel/cli/memory_section_cli.py +0 -2
- armodel/cli/swc_list_cli.py +0 -2
- armodel/cli/system_signal_cli.py +0 -2
- armodel/lib/__init__.py +0 -1
- armodel/models/M2/AUTOSARTemplates/AbstractPlatform/ApplicationDeferredDataType.py +21 -0
- armodel/models/M2/AUTOSARTemplates/AbstractPlatform/ApplicationInterface.py +79 -0
- armodel/models/M2/AUTOSARTemplates/AbstractPlatform/__init__.py +2 -0
- armodel/models/M2/AUTOSARTemplates/AdaptivePlatform/ApplicationDesign/PortInterface/Field.py +52 -0
- armodel/models/M2/AUTOSARTemplates/AdaptivePlatform/ApplicationDesign/PortInterface/__init__.py +1 -0
- armodel/models/M2/AUTOSARTemplates/AdaptivePlatform/PlatformModuleDeployment/AdaptiveModule/PlatformModuleEthernetEndpointConfiguration.py +63 -0
- armodel/models/M2/AUTOSARTemplates/AdaptivePlatform/PlatformModuleDeployment/AdaptiveModule/__init__.py +3 -0
- armodel/models/M2/AUTOSARTemplates/AdaptivePlatform/PlatformModuleDeployment/CryptoDeployment/CryptoKeySlot.py +128 -0
- armodel/models/M2/AUTOSARTemplates/AdaptivePlatform/PlatformModuleDeployment/CryptoDeployment/CryptoKeySlotContent.py +19 -0
- armodel/models/M2/AUTOSARTemplates/AdaptivePlatform/PlatformModuleDeployment/CryptoDeployment/__init__.py +4 -0
- armodel/models/M2/AUTOSARTemplates/AdaptivePlatform/PlatformModuleDeployment/Firewall/__init__.py +3 -3
- armodel/models/M2/AUTOSARTemplates/AdaptivePlatform/PlatformModuleDeployment/IntrusionDetectionSystem/IdsPlatformInstantiation.py +52 -0
- armodel/models/M2/AUTOSARTemplates/AdaptivePlatform/PlatformModuleDeployment/IntrusionDetectionSystem/IdsmModuleInstantiation.py +19 -0
- armodel/models/M2/AUTOSARTemplates/AdaptivePlatform/PlatformModuleDeployment/IntrusionDetectionSystem/__init__.py +4 -0
- armodel/models/M2/AUTOSARTemplates/AdaptivePlatform/PlatformModuleDeployment/__init__.py +24 -2
- armodel/models/M2/AUTOSARTemplates/AdaptivePlatform/__init__.py +1 -1
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswBehavior/BswAsynchronousServerCallReturnsEvent.py +1 -1
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswBehavior/BswInterruptEvent.py +1 -1
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswBehavior/BswModeManagerErrorEvent.py +1 -1
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswOverview/InstanceRefs/ModeInBswModuleDescriptionInstanceRef.py +61 -0
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswOverview/InstanceRefs/__init__.py +3 -0
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/{BswOverview.py → BswOverview/__init__.py} +62 -62
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Communication.py +8 -10
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/RTEEvents.py +1 -1
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/__init__.py +15 -30
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/DataMapping.py +1 -1
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/Fibex/Fibex4Ethernet/ServiceInstances.py +15 -15
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/NetworkManagement.py +2 -2
- armodel/models/__init__.py +69 -0
- armodel/parser/arxml_parser.py +1 -1
- {armodel-1.9.1.dist-info → armodel-1.9.2.dist-info}/METADATA +1 -1
- {armodel-1.9.1.dist-info → armodel-1.9.2.dist-info}/RECORD +43 -30
- armodel/models/M2/AUTOSARTemplates/AutosarTopLevelStructure.py +0 -315
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswOverview/ModeInBswModuleDescriptionInstanceRef.py +0 -17
- {armodel-1.9.1.dist-info → armodel-1.9.2.dist-info}/WHEEL +0 -0
- {armodel-1.9.1.dist-info → armodel-1.9.2.dist-info}/entry_points.txt +0 -0
- {armodel-1.9.1.dist-info → armodel-1.9.2.dist-info}/licenses/LICENSE +0 -0
- {armodel-1.9.1.dist-info → armodel-1.9.2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
from armodel.models.M2.AUTOSARTemplates.BswModuleTemplate.BswOverview import (
|
|
2
|
+
BswModuleDescription,
|
|
3
|
+
)
|
|
4
|
+
from armodel.models.M2.AUTOSARTemplates.CommonStructure.ModeDeclaration import (
|
|
5
|
+
ModeDeclaration,
|
|
6
|
+
)
|
|
7
|
+
from armodel.models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import (
|
|
8
|
+
ARObject,
|
|
9
|
+
)
|
|
10
|
+
from armodel.models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import (
|
|
11
|
+
RefType,
|
|
12
|
+
)
|
|
13
|
+
from typing import Optional
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class ModeInBswModuleDescriptionInstanceRef(ARObject):
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
Sources:
|
|
20
|
+
- AUTOSAR_CP_TPS_DiagnosticExtractTemplate.pdf (Page 323, Classic Platform
|
|
21
|
+
R23-11)
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
def __init__(self):
|
|
25
|
+
super().__init__()
|
|
26
|
+
|
|
27
|
+
# Stereotypes: atpDerived.
|
|
28
|
+
self.bases: Optional[BswModuleDescription] = None
|
|
29
|
+
# Tags: xml.
|
|
30
|
+
# sequenceOffset=20.
|
|
31
|
+
self.contextModes: RefType = None
|
|
32
|
+
# Tags: xml.
|
|
33
|
+
# sequenceOffset=30.
|
|
34
|
+
self.targetModes: Optional[ModeDeclaration] = None
|
|
35
|
+
|
|
36
|
+
def getBases(self) -> BswModuleDescription:
|
|
37
|
+
return self.bases
|
|
38
|
+
|
|
39
|
+
def setBases(
|
|
40
|
+
self, value: BswModuleDescription
|
|
41
|
+
) -> "ModeInBswModuleDescriptionInstanceRef":
|
|
42
|
+
self.bases = value
|
|
43
|
+
return self
|
|
44
|
+
|
|
45
|
+
def getContextModes(self) -> RefType:
|
|
46
|
+
return self.contextModes
|
|
47
|
+
|
|
48
|
+
def setContextModes(
|
|
49
|
+
self, value: RefType
|
|
50
|
+
) -> "ModeInBswModuleDescriptionInstanceRef":
|
|
51
|
+
self.contextModes = value
|
|
52
|
+
return self
|
|
53
|
+
|
|
54
|
+
def getTargetModes(self) -> ModeDeclaration:
|
|
55
|
+
return self.targetModes
|
|
56
|
+
|
|
57
|
+
def setTargetModes(
|
|
58
|
+
self, value: ModeDeclaration
|
|
59
|
+
) -> "ModeInBswModuleDescriptionInstanceRef":
|
|
60
|
+
self.targetModes = value
|
|
61
|
+
return self
|
armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/{BswOverview.py → BswOverview/__init__.py}
RENAMED
|
@@ -22,11 +22,11 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
22
22
|
In case it describes a BSW module, the short name of this element equals the name of the BSW module.
|
|
23
23
|
This is the root element for describing BSW module structure, interfaces, and behavior.
|
|
24
24
|
"""
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
def __init__(self, parent: ARObject, short_name: str):
|
|
27
27
|
"""
|
|
28
28
|
Initializes the BSW module description with a parent and short name.
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
Args:
|
|
31
31
|
parent: The parent ARObject that contains this BSW module description
|
|
32
32
|
short_name: The unique short name of this BSW module (equals the module name)
|
|
@@ -34,38 +34,38 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
34
34
|
super().__init__(parent, short_name)
|
|
35
35
|
|
|
36
36
|
# List of dependencies this BSW module has on other modules
|
|
37
|
-
self.bswModuleDependencies: List[BswModuleDependency] = []
|
|
37
|
+
self.bswModuleDependencies: List[BswModuleDependency] = []
|
|
38
38
|
# Documentation for this BSW module
|
|
39
|
-
self.bswModuleDocumentation: SwComponentDocumentation = None
|
|
39
|
+
self.bswModuleDocumentation: SwComponentDocumentation = None
|
|
40
40
|
# List of expected entry references that this module expects to be available
|
|
41
|
-
self.expectedEntryRefs: List[RefType] = []
|
|
41
|
+
self.expectedEntryRefs: List[RefType] = []
|
|
42
42
|
# List of implemented entry references that this module provides
|
|
43
|
-
self.implementedEntryRefs: List[RefType] = []
|
|
43
|
+
self.implementedEntryRefs: List[RefType] = []
|
|
44
44
|
# List of internal behaviors of this BSW module
|
|
45
|
-
self.internalBehaviors: List[BswInternalBehavior] = []
|
|
45
|
+
self.internalBehaviors: List[BswInternalBehavior] = []
|
|
46
46
|
# Unique module identifier for this BSW module
|
|
47
|
-
self.moduleId: PositiveInteger = None
|
|
47
|
+
self.moduleId: PositiveInteger = None
|
|
48
48
|
# List of client-server entries that this module provides to others
|
|
49
|
-
self.providedClientServerEntries: List[BswModuleClientServerEntry] = []
|
|
49
|
+
self.providedClientServerEntries: List[BswModuleClientServerEntry] = []
|
|
50
50
|
# List of data prototypes that this module provides to others
|
|
51
|
-
self.providedDatas: List[VariableDataPrototype] = []
|
|
51
|
+
self.providedDatas: List[VariableDataPrototype] = []
|
|
52
52
|
# List of mode group prototypes that this module provides to others
|
|
53
|
-
self.providedModeGroups: List[ModeDeclarationGroupPrototype] = []
|
|
53
|
+
self.providedModeGroups: List[ModeDeclarationGroupPrototype] = []
|
|
54
54
|
# List of triggers that this module releases to others
|
|
55
|
-
self.releasedTriggers: List[Trigger] = []
|
|
55
|
+
self.releasedTriggers: List[Trigger] = []
|
|
56
56
|
# List of client-server entries that this module requires from others
|
|
57
|
-
self.requiredClientServerEntries: List[BswModuleClientServerEntry] = []
|
|
57
|
+
self.requiredClientServerEntries: List[BswModuleClientServerEntry] = []
|
|
58
58
|
# List of data prototypes that this module requires from others
|
|
59
|
-
self.requiredDatas: List[VariableDataPrototype] = []
|
|
59
|
+
self.requiredDatas: List[VariableDataPrototype] = []
|
|
60
60
|
# List of mode group prototypes that this module requires from others
|
|
61
|
-
self.requiredModeGroups: List[ModeDeclarationGroupPrototype] = []
|
|
61
|
+
self.requiredModeGroups: List[ModeDeclarationGroupPrototype] = []
|
|
62
62
|
# List of triggers that this module requires from others
|
|
63
|
-
self.requiredTriggers: List[Trigger] = []
|
|
63
|
+
self.requiredTriggers: List[Trigger] = []
|
|
64
64
|
|
|
65
65
|
def getBswModuleDependencies(self):
|
|
66
66
|
"""
|
|
67
67
|
Gets the list of dependencies this BSW module has on other modules.
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
Returns:
|
|
70
70
|
List of BswModuleDependency instances
|
|
71
71
|
"""
|
|
@@ -75,10 +75,10 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
75
75
|
"""
|
|
76
76
|
Sets the list of dependencies this BSW module has on other modules.
|
|
77
77
|
Only sets the value if it is not None.
|
|
78
|
-
|
|
78
|
+
|
|
79
79
|
Args:
|
|
80
80
|
value: List of BswModuleDependency instances to set
|
|
81
|
-
|
|
81
|
+
|
|
82
82
|
Returns:
|
|
83
83
|
self for method chaining
|
|
84
84
|
"""
|
|
@@ -89,7 +89,7 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
89
89
|
def getBswModuleDocumentation(self):
|
|
90
90
|
"""
|
|
91
91
|
Gets the documentation for this BSW module.
|
|
92
|
-
|
|
92
|
+
|
|
93
93
|
Returns:
|
|
94
94
|
SwComponentDocumentation instance containing module documentation
|
|
95
95
|
"""
|
|
@@ -99,10 +99,10 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
99
99
|
"""
|
|
100
100
|
Sets the documentation for this BSW module.
|
|
101
101
|
Only sets the value if it is not None.
|
|
102
|
-
|
|
102
|
+
|
|
103
103
|
Args:
|
|
104
104
|
value: SwComponentDocumentation instance to set
|
|
105
|
-
|
|
105
|
+
|
|
106
106
|
Returns:
|
|
107
107
|
self for method chaining
|
|
108
108
|
"""
|
|
@@ -114,7 +114,7 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
114
114
|
"""
|
|
115
115
|
Gets the list of expected entry references that this module expects to be available.
|
|
116
116
|
These are entries that the module expects to exist in the system but doesn't implement itself.
|
|
117
|
-
|
|
117
|
+
|
|
118
118
|
Returns:
|
|
119
119
|
List of RefType to expected entries
|
|
120
120
|
"""
|
|
@@ -124,10 +124,10 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
124
124
|
"""
|
|
125
125
|
Sets the list of expected entry references that this module expects to be available.
|
|
126
126
|
Only sets the value if it is not None.
|
|
127
|
-
|
|
127
|
+
|
|
128
128
|
Args:
|
|
129
129
|
value: List of RefType to expected entries to set
|
|
130
|
-
|
|
130
|
+
|
|
131
131
|
Returns:
|
|
132
132
|
self for method chaining
|
|
133
133
|
"""
|
|
@@ -139,7 +139,7 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
139
139
|
"""
|
|
140
140
|
Gets the list of implemented entry references that this module provides.
|
|
141
141
|
These are the entries that this module actually implements and makes available to others.
|
|
142
|
-
|
|
142
|
+
|
|
143
143
|
Returns:
|
|
144
144
|
List of RefType to implemented entries
|
|
145
145
|
"""
|
|
@@ -150,10 +150,10 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
150
150
|
Adds an implemented entry reference to this module's list.
|
|
151
151
|
These are entries that this module implements and makes available to others.
|
|
152
152
|
Only adds the value if it is not None.
|
|
153
|
-
|
|
153
|
+
|
|
154
154
|
Args:
|
|
155
155
|
value: RefType to an implemented entry to add
|
|
156
|
-
|
|
156
|
+
|
|
157
157
|
Returns:
|
|
158
158
|
self for method chaining
|
|
159
159
|
"""
|
|
@@ -165,7 +165,7 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
165
165
|
"""
|
|
166
166
|
Gets the list of internal behaviors of this BSW module.
|
|
167
167
|
These define how the module behaves internally, including its events and entities.
|
|
168
|
-
|
|
168
|
+
|
|
169
169
|
Returns:
|
|
170
170
|
List of BswInternalBehavior instances
|
|
171
171
|
"""
|
|
@@ -176,25 +176,25 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
176
176
|
Sets the list of internal behaviors of this BSW module.
|
|
177
177
|
These define how the module behaves internally, including its events and entities.
|
|
178
178
|
Only sets the value if it is not None.
|
|
179
|
-
|
|
179
|
+
|
|
180
180
|
Args:
|
|
181
181
|
value: List of BswInternalBehavior instances to set
|
|
182
|
-
|
|
182
|
+
|
|
183
183
|
Returns:
|
|
184
184
|
self for method chaining
|
|
185
185
|
"""
|
|
186
186
|
if value is not None:
|
|
187
187
|
self.internalBehaviors = value
|
|
188
188
|
return self
|
|
189
|
-
|
|
189
|
+
|
|
190
190
|
def createBswInternalBehavior(self, short_name: str) -> BswInternalBehavior:
|
|
191
191
|
"""
|
|
192
192
|
Creates and adds a BSW internal behavior to this module description.
|
|
193
193
|
This defines how the module behaves internally, including its events and entities.
|
|
194
|
-
|
|
194
|
+
|
|
195
195
|
Args:
|
|
196
196
|
short_name: The short name for the new internal behavior
|
|
197
|
-
|
|
197
|
+
|
|
198
198
|
Returns:
|
|
199
199
|
The created BswInternalBehavior instance
|
|
200
200
|
"""
|
|
@@ -207,7 +207,7 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
207
207
|
def getModuleId(self):
|
|
208
208
|
"""
|
|
209
209
|
Gets the unique module identifier for this BSW module.
|
|
210
|
-
|
|
210
|
+
|
|
211
211
|
Returns:
|
|
212
212
|
Positive integer representing the module ID
|
|
213
213
|
"""
|
|
@@ -217,10 +217,10 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
217
217
|
"""
|
|
218
218
|
Sets the unique module identifier for this BSW module.
|
|
219
219
|
Only sets the value if it is not None.
|
|
220
|
-
|
|
220
|
+
|
|
221
221
|
Args:
|
|
222
222
|
value: The module ID to set
|
|
223
|
-
|
|
223
|
+
|
|
224
224
|
Returns:
|
|
225
225
|
self for method chaining
|
|
226
226
|
"""
|
|
@@ -232,7 +232,7 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
232
232
|
"""
|
|
233
233
|
Gets the list of client-server entries that this module provides to others.
|
|
234
234
|
These are service interfaces that this module offers to other modules.
|
|
235
|
-
|
|
235
|
+
|
|
236
236
|
Returns:
|
|
237
237
|
List of BswModuleClientServerEntry instances
|
|
238
238
|
"""
|
|
@@ -242,10 +242,10 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
242
242
|
"""
|
|
243
243
|
Creates and adds a client-server entry that this module provides to others.
|
|
244
244
|
This is a service interface that this module offers to other modules.
|
|
245
|
-
|
|
245
|
+
|
|
246
246
|
Args:
|
|
247
247
|
short_name: The short name for the new provided client-server entry
|
|
248
|
-
|
|
248
|
+
|
|
249
249
|
Returns:
|
|
250
250
|
The created BswModuleClientServerEntry instance
|
|
251
251
|
"""
|
|
@@ -259,7 +259,7 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
259
259
|
"""
|
|
260
260
|
Gets the list of data prototypes that this module provides to others.
|
|
261
261
|
These are data interfaces that this module offers to other modules.
|
|
262
|
-
|
|
262
|
+
|
|
263
263
|
Returns:
|
|
264
264
|
List of VariableDataPrototype instances
|
|
265
265
|
"""
|
|
@@ -269,10 +269,10 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
269
269
|
"""
|
|
270
270
|
Creates and adds a data prototype that this module provides to others.
|
|
271
271
|
This is a data interface that this module offers to other modules.
|
|
272
|
-
|
|
272
|
+
|
|
273
273
|
Args:
|
|
274
274
|
short_name: The short name for the new provided data prototype
|
|
275
|
-
|
|
275
|
+
|
|
276
276
|
Returns:
|
|
277
277
|
The created VariableDataPrototype instance
|
|
278
278
|
"""
|
|
@@ -286,20 +286,20 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
286
286
|
"""
|
|
287
287
|
Gets the list of mode group prototypes that this module provides to others.
|
|
288
288
|
These are mode interfaces that this module offers to other modules for mode management.
|
|
289
|
-
|
|
289
|
+
|
|
290
290
|
Returns:
|
|
291
291
|
List of ModeDeclarationGroupPrototype instances
|
|
292
292
|
"""
|
|
293
293
|
return self.providedModeGroups
|
|
294
|
-
|
|
294
|
+
|
|
295
295
|
def createProvidedModeGroup(self, short_name: str) -> ModeDeclarationGroupPrototype:
|
|
296
296
|
"""
|
|
297
297
|
Creates and adds a mode group prototype that this module provides to others.
|
|
298
298
|
This is a mode interface that this module offers to other modules for mode management.
|
|
299
|
-
|
|
299
|
+
|
|
300
300
|
Args:
|
|
301
301
|
short_name: The short name for the new provided mode group
|
|
302
|
-
|
|
302
|
+
|
|
303
303
|
Returns:
|
|
304
304
|
The created ModeDeclarationGroupPrototype instance
|
|
305
305
|
"""
|
|
@@ -313,7 +313,7 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
313
313
|
"""
|
|
314
314
|
Gets the list of triggers that this module releases to others.
|
|
315
315
|
These are trigger interfaces that this module can send to other modules.
|
|
316
|
-
|
|
316
|
+
|
|
317
317
|
Returns:
|
|
318
318
|
List of Trigger instances
|
|
319
319
|
"""
|
|
@@ -323,10 +323,10 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
323
323
|
"""
|
|
324
324
|
Creates and adds a trigger that this module releases to others.
|
|
325
325
|
This is a trigger interface that this module can send to other modules.
|
|
326
|
-
|
|
326
|
+
|
|
327
327
|
Args:
|
|
328
328
|
short_name: The short name for the new released trigger
|
|
329
|
-
|
|
329
|
+
|
|
330
330
|
Returns:
|
|
331
331
|
The created Trigger instance
|
|
332
332
|
"""
|
|
@@ -340,7 +340,7 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
340
340
|
"""
|
|
341
341
|
Gets the list of client-server entries that this module requires from others.
|
|
342
342
|
These are service interfaces that this module needs from other modules.
|
|
343
|
-
|
|
343
|
+
|
|
344
344
|
Returns:
|
|
345
345
|
List of BswModuleClientServerEntry instances
|
|
346
346
|
"""
|
|
@@ -350,10 +350,10 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
350
350
|
"""
|
|
351
351
|
Creates and adds a client-server entry that this module requires from others.
|
|
352
352
|
This is a service interface that this module needs from other modules.
|
|
353
|
-
|
|
353
|
+
|
|
354
354
|
Args:
|
|
355
355
|
short_name: The short name for the new required client-server entry
|
|
356
|
-
|
|
356
|
+
|
|
357
357
|
Returns:
|
|
358
358
|
The created BswModuleClientServerEntry instance
|
|
359
359
|
"""
|
|
@@ -367,7 +367,7 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
367
367
|
"""
|
|
368
368
|
Gets the list of data prototypes that this module requires from others.
|
|
369
369
|
These are data interfaces that this module needs from other modules.
|
|
370
|
-
|
|
370
|
+
|
|
371
371
|
Returns:
|
|
372
372
|
List of VariableDataPrototype instances
|
|
373
373
|
"""
|
|
@@ -377,10 +377,10 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
377
377
|
"""
|
|
378
378
|
Creates and adds a data prototype that this module requires from others.
|
|
379
379
|
This is a data interface that this module needs from other modules.
|
|
380
|
-
|
|
380
|
+
|
|
381
381
|
Args:
|
|
382
382
|
short_name: The short name for the new required data prototype
|
|
383
|
-
|
|
383
|
+
|
|
384
384
|
Returns:
|
|
385
385
|
The created VariableDataPrototype instance
|
|
386
386
|
"""
|
|
@@ -394,7 +394,7 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
394
394
|
"""
|
|
395
395
|
Gets the list of mode group prototypes that this module requires from others.
|
|
396
396
|
These are mode interfaces that this module needs from other modules for mode management.
|
|
397
|
-
|
|
397
|
+
|
|
398
398
|
Returns:
|
|
399
399
|
List of ModeDeclarationGroupPrototype instances
|
|
400
400
|
"""
|
|
@@ -404,10 +404,10 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
404
404
|
"""
|
|
405
405
|
Creates and adds a mode group prototype that this module requires from others.
|
|
406
406
|
This is a mode interface that this module needs from other modules for mode management.
|
|
407
|
-
|
|
407
|
+
|
|
408
408
|
Args:
|
|
409
409
|
short_name: The short name for the new required mode group
|
|
410
|
-
|
|
410
|
+
|
|
411
411
|
Returns:
|
|
412
412
|
The created ModeDeclarationGroupPrototype instance
|
|
413
413
|
"""
|
|
@@ -421,7 +421,7 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
421
421
|
"""
|
|
422
422
|
Gets the list of triggers that this module requires from others.
|
|
423
423
|
These are trigger interfaces that this module needs from other modules.
|
|
424
|
-
|
|
424
|
+
|
|
425
425
|
Returns:
|
|
426
426
|
List of Trigger instances
|
|
427
427
|
"""
|
|
@@ -431,10 +431,10 @@ class BswModuleDescription(AtpStructureElement):
|
|
|
431
431
|
"""
|
|
432
432
|
Creates and adds a trigger that this module requires from others.
|
|
433
433
|
This is a trigger interface that this module needs from other modules.
|
|
434
|
-
|
|
434
|
+
|
|
435
435
|
Args:
|
|
436
436
|
short_name: The short name for the new required trigger
|
|
437
|
-
|
|
437
|
+
|
|
438
438
|
Returns:
|
|
439
439
|
The created Trigger instance
|
|
440
440
|
"""
|
|
@@ -269,16 +269,14 @@ class ReceiverComSpec(RPortComSpec, ABC):
|
|
|
269
269
|
raise TypeError("ReceiverComSpec is an abstract class.")
|
|
270
270
|
super().__init__()
|
|
271
271
|
|
|
272
|
-
self.compositeNetworkRepresentations: List[CompositeNetworkRepresentation]
|
|
273
|
-
|
|
274
|
-
self.
|
|
275
|
-
self.
|
|
276
|
-
self.
|
|
277
|
-
# type:
|
|
278
|
-
self.
|
|
279
|
-
self.
|
|
280
|
-
self.maxNoNewOrRepeatedData: PositiveInteger = None
|
|
281
|
-
self.usesEndToEndProtection: ARBoolean = None
|
|
272
|
+
self.compositeNetworkRepresentations = [] # type: List[CompositeNetworkRepresentation]
|
|
273
|
+
self.dataElementRef = None # type: RefType
|
|
274
|
+
self.networkRepresentation = None # type: SwDataDefProps
|
|
275
|
+
self.handleOutOfRange = None # type: HandleOutOfRangeEnum
|
|
276
|
+
self.handleOutOfRangeStatus = None # type: HandleOutOfRangeStatusEnum
|
|
277
|
+
self.maxDeltaCounterInit = None # type: PositiveInteger
|
|
278
|
+
self.maxNoNewOrRepeatedData = None # type: PositiveInteger
|
|
279
|
+
self.usesEndToEndProtection = None # type: ARBoolean
|
|
282
280
|
|
|
283
281
|
def getDataElementRef(self):
|
|
284
282
|
return self.dataElementRef
|
|
@@ -41,7 +41,7 @@ class AsynchronousServerCallReturnsEvent(RTEEvent):
|
|
|
41
41
|
def __init__(self, parent: ARObject, short_name: str):
|
|
42
42
|
super().__init__(parent, short_name)
|
|
43
43
|
|
|
44
|
-
self.eventSourceRef:
|
|
44
|
+
self.eventSourceRef: RefType = None
|
|
45
45
|
|
|
46
46
|
def getEventSourceRef(self):
|
|
47
47
|
return self.eventSourceRef
|
|
@@ -237,38 +237,23 @@ class SwcInternalBehavior(InternalBehavior):
|
|
|
237
237
|
def __init__(self, parent: ARObject, short_name: str):
|
|
238
238
|
super().__init__(parent, short_name)
|
|
239
239
|
|
|
240
|
-
# type: List[VariableDataPrototype]
|
|
241
|
-
self.
|
|
242
|
-
# type: List[
|
|
243
|
-
self.
|
|
244
|
-
# type: List[SwcExclusiveAreaPolicy]
|
|
245
|
-
self.exclusiveAreaPolicies = []
|
|
246
|
-
# type: List[VariableDataPrototype]
|
|
247
|
-
self.explicitInterRunnableVariables = []
|
|
240
|
+
self.arTypedPerInstanceMemories = [] # type: List[VariableDataPrototype]
|
|
241
|
+
self.events = [] # type: List[RTEEvent]
|
|
242
|
+
self.exclusiveAreaPolicies = [] # type: List[SwcExclusiveAreaPolicy]
|
|
243
|
+
self.explicitInterRunnableVariables = [] # type: List[VariableDataPrototype]
|
|
248
244
|
self.handleTerminationAndRestart = None # type: str
|
|
249
|
-
# type: List[VariableDataPrototype]
|
|
250
|
-
self.
|
|
251
|
-
# type: List[
|
|
252
|
-
self.
|
|
253
|
-
# type: List[
|
|
254
|
-
self.
|
|
255
|
-
# type: List[
|
|
256
|
-
self.
|
|
257
|
-
# type: List[
|
|
258
|
-
self.
|
|
259
|
-
# type: List[ParameterDataPrototype]
|
|
260
|
-
self.perInstanceParameters = []
|
|
261
|
-
# type: List[PortAPIOption]
|
|
262
|
-
self.portAPIOptions = []
|
|
263
|
-
# type: List[RunnableEntity]
|
|
264
|
-
self.runnables = []
|
|
265
|
-
# type: List[SwcServiceDependency]
|
|
266
|
-
self.serviceDependencies = []
|
|
267
|
-
# type: List[ParameterDataPrototype]
|
|
268
|
-
self.sharedParameters = []
|
|
245
|
+
self.implicitInterRunnableVariables = [] # type: List[VariableDataPrototype]
|
|
246
|
+
self.includedDataTypeSets = [] # type: List[IncludedDataTypeSet]
|
|
247
|
+
self.includedModeDeclarationGroupSets = [] # type: List[IncludedModeDeclarationGroupSet]
|
|
248
|
+
self.instantiationDataDefProps = [] # type: List[InstantiationDataDefProps]
|
|
249
|
+
self.perInstanceMemories = [] # type: List[PerInstanceMemory]
|
|
250
|
+
self.perInstanceParameters = [] # type: List[ParameterDataPrototype]
|
|
251
|
+
self.portAPIOptions = [] # type: List[PortAPIOption]
|
|
252
|
+
self.runnables = [] # type: List[RunnableEntity]
|
|
253
|
+
self.serviceDependencies = [] # type: List[SwcServiceDependency]
|
|
254
|
+
self.sharedParameters = [] # type: List[ParameterDataPrototype]
|
|
269
255
|
self.supportsMultipleInstantiation = None # type: Boolean
|
|
270
|
-
# type: VariationPointProxy
|
|
271
|
-
self.variationPointProxies = []
|
|
256
|
+
self.variationPointProxies = [] # type: List[VariationPointProxy]
|
|
272
257
|
|
|
273
258
|
def getArTypedPerInstanceMemories(self) -> List[VariableDataPrototype]:
|
|
274
259
|
return self.arTypedPerInstanceMemories
|
|
@@ -174,7 +174,7 @@ class SenderRecRecordTypeMapping(SenderRecCompositeTypeMapping):
|
|
|
174
174
|
def __init__(self):
|
|
175
175
|
super().__init__()
|
|
176
176
|
|
|
177
|
-
self.recordElementMappings
|
|
177
|
+
self.recordElementMappings = [] # type: List[SenderRecRecordElementMapping]
|
|
178
178
|
|
|
179
179
|
def getRecordElementMappings(self):
|
|
180
180
|
return self.recordElementMappings
|
|
@@ -191,13 +191,13 @@ class AbstractServiceInstance(Identifiable, ABC):
|
|
|
191
191
|
def __init__(self, parent: ARObject, short_name: str):
|
|
192
192
|
if type(self) == AbstractServiceInstance:
|
|
193
193
|
raise TypeError("AbstractServiceInstance is an abstract class.")
|
|
194
|
-
|
|
194
|
+
|
|
195
195
|
super().__init__(parent, short_name)
|
|
196
196
|
|
|
197
|
-
self.capabilityRecords
|
|
198
|
-
self.majorVersion
|
|
199
|
-
self.methodActivationRoutingGroup = None
|
|
200
|
-
self.routingGroupRefs
|
|
197
|
+
self.capabilityRecords = [] # type: List[TagWithOptionalValue]
|
|
198
|
+
self.majorVersion = None # type: PositiveInteger
|
|
199
|
+
self.methodActivationRoutingGroup = None # type: PduActivationRoutingGroup
|
|
200
|
+
self.routingGroupRefs = [] # type: List[RefType]
|
|
201
201
|
|
|
202
202
|
def getCapabilityRecords(self):
|
|
203
203
|
return self.capabilityRecords
|
|
@@ -517,13 +517,13 @@ class SdServerConfig(ARObject):
|
|
|
517
517
|
def __init__(self):
|
|
518
518
|
super().__init__()
|
|
519
519
|
|
|
520
|
-
self.capabilityRecords
|
|
521
|
-
self.initialOfferBehavior
|
|
522
|
-
self.offerCyclicDelay
|
|
523
|
-
self.requestResponseDelay
|
|
524
|
-
self.serverServiceMajorVersion
|
|
525
|
-
self.serverServiceMinorVersion
|
|
526
|
-
self.ttl
|
|
520
|
+
self.capabilityRecords = [] # type: List[TagWithOptionalValue]
|
|
521
|
+
self.initialOfferBehavior = None # type: InitialSdDelayConfig
|
|
522
|
+
self.offerCyclicDelay = None # type: TimeValue
|
|
523
|
+
self.requestResponseDelay = None # type: RequestResponseDelay
|
|
524
|
+
self.serverServiceMajorVersion = None # type: PositiveInteger
|
|
525
|
+
self.serverServiceMinorVersion = None # type: PositiveInteger
|
|
526
|
+
self.ttl = None # type: PositiveInteger
|
|
527
527
|
|
|
528
528
|
def getCapabilityRecords(self):
|
|
529
529
|
return self.capabilityRecords
|
|
@@ -892,9 +892,9 @@ class SoAdConfig(ARObject):
|
|
|
892
892
|
def __init__(self):
|
|
893
893
|
super().__init__()
|
|
894
894
|
|
|
895
|
-
self.connections
|
|
896
|
-
self.connectionBundles
|
|
897
|
-
self.socketAddresses
|
|
895
|
+
self.connections = [] # type: List[SocketConnection]
|
|
896
|
+
self.connectionBundles = [] # type: List[SocketConnectionBundle]
|
|
897
|
+
self.socketAddresses = [] # type: List[SocketAddress]
|
|
898
898
|
|
|
899
899
|
def getConnections(self):
|
|
900
900
|
return self.connections
|
|
@@ -506,10 +506,10 @@ class NmCluster(Identifiable, ABC):
|
|
|
506
506
|
raise TypeError("NmCluster is an abstract class.")
|
|
507
507
|
super().__init__(parent, short_name)
|
|
508
508
|
|
|
509
|
-
self.communicationClusterRef
|
|
509
|
+
self.communicationClusterRef = None # type: RefType
|
|
510
510
|
self.nmChannelId = None
|
|
511
511
|
self.nmChannelSleepMaster = None
|
|
512
|
-
self.nmNodes
|
|
512
|
+
self.nmNodes = [] # type: List[NmNode]
|
|
513
513
|
self.nmNodeDetectionEnabled = None
|
|
514
514
|
self.nmNodeIdEnabled = None
|
|
515
515
|
self.nmPncParticipation = None
|