armodel 1.8.6__py3-none-any.whl → 1.8.7__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.
@@ -18,7 +18,10 @@ from ...M2.AUTOSARTemplates.SWComponentTemplate.Components import AtomicSwCompon
18
18
  from ...M2.AUTOSARTemplates.SWComponentTemplate.Datatype.DataPrototypes import VariableDataPrototype
19
19
  from ...M2.AUTOSARTemplates.CommonStructure.ImplementationDataTypes import ImplementationDataType
20
20
  from ...M2.AUTOSARTemplates.SystemTemplate import RootSwCompositionPrototype, System
21
+ from ...M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior import RunnableEntity
21
22
  from ...M2.AUTOSARTemplates.SystemTemplate.Fibex.FibexCore.CoreCommunication import SystemSignal, SystemSignalGroup
23
+ from ...M2.AUTOSARTemplates.BswModuleTemplate.BswBehavior import BswSchedulableEntity, BswCalledEntity
24
+ from ...M2.AUTOSARTemplates.BswModuleTemplate.BswInterfaces import BswModuleEntry
22
25
 
23
26
 
24
27
  class FileInfoComment(ARObject):
@@ -152,7 +155,26 @@ class AbstractAUTOSAR(CollectableElement):
152
155
  def getDestType(self, type) -> str:
153
156
  if isinstance(type, ImplementationDataType):
154
157
  return "IMPLEMENTATION-DATA-TYPE"
155
- return ""
158
+ elif isinstance(type, ApplicationDataType):
159
+ return "APPLICATION-DATA-TYPE"
160
+ elif isinstance(type, AtomicSwComponentType):
161
+ return "ATOMIC-SW-COMPONENT-TYPE"
162
+ elif isinstance(type, CompositionSwComponentType):
163
+ return "COMPOSITION-SW-COMPONENT-TYPE"
164
+ elif isinstance(type, SystemSignal):
165
+ return "SYSTEM-SIGNAL"
166
+ elif isinstance(type, SystemSignalGroup):
167
+ return "SYSTEM-SIGNAL-GROUP"
168
+ elif isinstance(type, RunnableEntity):
169
+ return "RUNNABLE-ENTITY"
170
+ elif isinstance(type, BswSchedulableEntity):
171
+ return "BSW-SCHEDULABLE-ENTITY"
172
+ elif isinstance(type, BswModuleEntry):
173
+ return "BSW-MODULE-ENTRY"
174
+ elif isinstance(type, BswCalledEntity):
175
+ return "BSW-CALLED-ENTITY"
176
+
177
+ raise NotImplementedError("The type <%s> is not implemented for getDestType method" % type.__class__.__name__)
156
178
 
157
179
  def findAtomicSwComponentType(self, referred) -> AtomicSwComponentType:
158
180
  return self.find(referred)
@@ -2,8 +2,7 @@ from abc import ABCMeta
2
2
  from typing import List
3
3
 
4
4
  from ....M2.MSR.DataDictionary.DataDefProperties import SwImplPolicyEnum
5
- from ....M2.AUTOSARTemplates.CommonStructure.InternalBehavior import ExecutableEntity
6
- from ....M2.AUTOSARTemplates.CommonStructure.InternalBehavior import InternalBehavior
5
+ from ....M2.AUTOSARTemplates.CommonStructure.InternalBehavior import AbstractEvent, ExecutableEntity, InternalBehavior
7
6
  from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import Identifiable
8
7
  from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARBoolean, AREnum, ARFloat, ARNumerical, Boolean
9
8
  from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import PositiveInteger, String, TimeValue
@@ -266,7 +265,7 @@ class BswInterruptEntity(BswModuleEntity):
266
265
  return self
267
266
 
268
267
 
269
- class BswEvent(Identifiable, metaclass=ABCMeta):
268
+ class BswEvent(AbstractEvent, metaclass=ABCMeta):
270
269
  def __init__(self, parent: ARObject, short_name: str):
271
270
  if type(self) is BswEvent:
272
271
  raise NotImplementedError("BswEvent is an abstract class.")
@@ -1,4 +0,0 @@
1
- from .BswBehavior import *
2
- from .BswImplementation import *
3
- from .BswInterfaces import *
4
- from .BswOverview import *
@@ -47,6 +47,7 @@ from .M2.AUTOSARTemplates.SWComponentTemplate.Composition import *
47
47
  from .M2.AUTOSARTemplates.SWComponentTemplate.EndToEndProtection import *
48
48
  from .M2.AUTOSARTemplates.SWComponentTemplate.RPTScenario import *
49
49
  from .M2.AUTOSARTemplates.SWComponentTemplate.SwcImplementation import *
50
+ from .M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior import *
50
51
  from .M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.DataElements import *
51
52
  from .M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.AccessCount import *
52
53
  from .M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.IncludedDataTypes import *
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: armodel
3
- Version: 1.8.6
3
+ Version: 1.8.7
4
4
  Summary: the python arxml parser
5
5
  Home-page: http://github.com/melodypapa/py-armodel
6
6
  Author: melodypapa
@@ -654,3 +654,9 @@ Fix the attribute intervalType of **Limit** is empty issue.
654
654
  2. To improve the following AR Element:
655
655
  * ParameterAccess
656
656
 
657
+ **Version 1.8.7**
658
+
659
+ 1. Correct the base class of the BswEvent.
660
+ 2. Export the RunnableEntity class.
661
+ 3. Add the more class support for getDestType
662
+
@@ -17,17 +17,17 @@ armodel/lib/__init__.py,sha256=5629DkORqTomt16J6VL40o5hFv86-9SRB1240OJWTts,142
17
17
  armodel/lib/cli_args_parser.py,sha256=WiTC3wy_fZYloA1AjPqCvvOA_26V_y5toun0qfV51cw,1207
18
18
  armodel/lib/sw_component.py,sha256=spUeVR8ftzqf9h-pilh17qQg8amYqcqh39XKYql3HO4,1367
19
19
  armodel/lib/system_signal.py,sha256=E3FNiUGRUZovTCclCkabkVPpScMIACOXERUpbAuBTv8,1397
20
- armodel/models/__init__.py,sha256=Oj9ea8HUVNZ9I_BUiH72LT23rGSJAwx5lcdmW_8O9fM,6017
20
+ armodel/models/__init__.py,sha256=OEOaZKoAq3wQ5DoV5dz0esCGWd08W0MkdMKqhfkvXJ4,6093
21
21
  armodel/models/M2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
- armodel/models/M2/AUTOSARTemplates/AutosarTopLevelStructure.py,sha256=chlS6CGFWpxIa5qLfJXNY_CjFGBBGp1aJcKotsa4Nxs,12137
22
+ armodel/models/M2/AUTOSARTemplates/AutosarTopLevelStructure.py,sha256=FyH882AiycQHQYPkuzakL5EFY0QdIHdhaoVue1_ZHZ0,13365
23
23
  armodel/models/M2/AUTOSARTemplates/ECUCDescriptionTemplate.py,sha256=m9EMGnfdOeRbSFYcGabrCtOpZvb6uy2o03GoQ_MFpLQ,12261
24
24
  armodel/models/M2/AUTOSARTemplates/ECUCParameterDefTemplate.py,sha256=umY2aFmJepGOsmOTtfWTYeqY5KPb7bw4E0oazAUA7Wk,51238
25
25
  armodel/models/M2/AUTOSARTemplates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswBehavior.py,sha256=iFPCTPAs4ypcXg_TGt_ZBZv2QfCbxyVK-WJtN1wxcxQ,30018
26
+ armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswBehavior.py,sha256=58Pz1K726hTbMw3rJcxr4zQ8sV0iuGp1D3C-y_ZLQO8,29965
27
27
  armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswImplementation.py,sha256=el7uFWztAqqYaCX_BOiSI6n7zeXsdD7acwpK52ZO5cM,2209
28
28
  armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswInterfaces.py,sha256=R5xu-KRd4utc7fWigQAS_Pw50_aW7koEZbeztR1ONWk,7168
29
29
  armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswOverview.py,sha256=zb8tcqYPbVy72nKA9w2heZzJrEPdA5Fgz_MWnxiEqvA,7899
30
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/__init__.py,sha256=IY7GCwskITrwr1Rv76zzNUupbMsPAiG4ZMf5ZqtQuBg,118
30
+ armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/__pycache__/BswBehavior.cpython-312.pyc,sha256=S4bA8g-RIAVL66lO-kpkV9vD5byvxPrP5gec-k92aYA,47832
32
32
  armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/__pycache__/BswImplementation.cpython-312.pyc,sha256=EE8mTv7iczeIOJFPS4MrpX2L17c3bwysqfzIrfjoF_I,3832
33
33
  armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/__pycache__/BswInterfaces.cpython-312.pyc,sha256=gBywIioKRDtv9RqYEAPZslW_V3PrwSXxMtuNViUHYqE,10983
@@ -352,9 +352,9 @@ armodel/writer/arxml_writer.py,sha256=to2ZeWWlAq9b3KJAlPlZmprzs-HwqZCgSGtX_q--Jn
352
352
  armodel/writer/__pycache__/__init__.cpython-312.pyc,sha256=lMmx45hn8xKTLZYEBwjBlj-01DZs-WjTGBeRTjRV6f8,206
353
353
  armodel/writer/__pycache__/abstract_arxml_writer.cpython-312.pyc,sha256=mg34GvKggVd2TRVGcG15LzOtrrMOwNcf-EMlTCedJEc,8954
354
354
  armodel/writer/__pycache__/arxml_writer.cpython-312.pyc,sha256=cO1by_IjcUQfbHLp_0hxqNiX6jH6NXegbN3Ubl5sIGY,525054
355
- armodel-1.8.6.dist-info/LICENSE,sha256=rceTpGhsmmN1M0k1KO0HRS11iCjen-2y56ZEqgo43wo,1088
356
- armodel-1.8.6.dist-info/METADATA,sha256=8rgMj61P9kJmp6IiBarVY8j175iZNxajPTWB29ydgQY,18558
357
- armodel-1.8.6.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
358
- armodel-1.8.6.dist-info/entry_points.txt,sha256=24xz9yK6gjxZ2IlHB23zY3_8M8rwrqAkWgElNBquUdA,550
359
- armodel-1.8.6.dist-info/top_level.txt,sha256=AEATYsqAuRpr0XGa_ThW7-o4WLlA5e3PEgD0QJhzmoA,8
360
- armodel-1.8.6.dist-info/RECORD,,
355
+ armodel-1.8.7.dist-info/LICENSE,sha256=rceTpGhsmmN1M0k1KO0HRS11iCjen-2y56ZEqgo43wo,1088
356
+ armodel-1.8.7.dist-info/METADATA,sha256=S5j8x06NEeRCF0gQTj61HBAKiHxr6omUWNi6xDIoeA8,18709
357
+ armodel-1.8.7.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
358
+ armodel-1.8.7.dist-info/entry_points.txt,sha256=24xz9yK6gjxZ2IlHB23zY3_8M8rwrqAkWgElNBquUdA,550
359
+ armodel-1.8.7.dist-info/top_level.txt,sha256=AEATYsqAuRpr0XGa_ThW7-o4WLlA5e3PEgD0QJhzmoA,8
360
+ armodel-1.8.7.dist-info/RECORD,,