py-eb-model 1.1.1__py3-none-any.whl → 1.1.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.
@@ -1,3 +1,4 @@
1
+ from abc import ABCMeta
1
2
  from typing import Dict, List
2
3
  from ..models.abstract import EcucContainer, EcucRefType, Module
3
4
  class RteEventToIsrMapping(EcucContainer):
@@ -10,8 +11,11 @@ class RteEventToIsrMapping(EcucContainer):
10
11
  self.RteRipsFillRoutineRef = None
11
12
  self.RteRipsFlushRoutineRef = None
12
13
 
13
- class AbstractEventToTaskMapping(EcucContainer):
14
+ class AbstractEventToTaskMapping(EcucContainer, metaclass = ABCMeta):
14
15
  def __init__(self, parent, name) -> None:
16
+ if type(self) == AbstractEventToTaskMapping:
17
+ raise ValueError("RteEventToTaskMapping is an abstract class.")
18
+
15
19
  super().__init__(parent, name)
16
20
 
17
21
  self.rtePositionInTask = None
@@ -23,8 +27,11 @@ class AbstractEventToTaskMapping(EcucContainer):
23
27
  self.rtePositionInTask = value
24
28
  return self
25
29
 
26
- class RteEventToTaskMapping(AbstractEventToTaskMapping):
30
+ class RteEventToTaskMapping(AbstractEventToTaskMapping, metaclass = ABCMeta):
27
31
  def __init__(self, parent, name) -> None:
32
+ if type(self) == RteEventToTaskMapping:
33
+ raise ValueError("RteEventToTaskMapping is an abstract class.")
34
+
28
35
  super().__init__(parent, name)
29
36
 
30
37
  self.rteActivationOffset = None
@@ -174,7 +181,11 @@ class RteEventToTaskMapping(AbstractEventToTaskMapping):
174
181
 
175
182
  def setRteVirtuallyMappedToTaskRef(self, value):
176
183
  self.rteVirtuallyMappedToTaskRef = value
177
- return self
184
+ return self
185
+
186
+ # abstract method
187
+ def getRteEventRef(self) -> EcucRefType:
188
+ pass
178
189
 
179
190
  class RteEventToTaskMappingV3(RteEventToTaskMapping):
180
191
  def __init__(self, parent, name):
@@ -166,8 +166,24 @@ class OsXdmParser(AbstractEbModelParser):
166
166
  os_app = OsApplication(os, ctr_tag.attrib["name"]) \
167
167
  .setOsTrusted(self.read_value(ctr_tag, "OsTrusted"))
168
168
 
169
+ for ref in self.read_ref_value_list(ctr_tag, "OsAppAlarmRef"):
170
+ os_app.addOsAppAlarmRef(ref)
171
+
172
+ for ref in self.read_ref_value_list(ctr_tag, "OsAppCounterRef"):
173
+ os_app.addOsAppCounterRefs(ref)
174
+
175
+ for ref in self.read_ref_value_list(ctr_tag, "OsAppScheduleTableRef"):
176
+ os_app.addOsAppScheduleTableRef(ref)
177
+
169
178
  for ref in self.read_ref_value_list(ctr_tag, "OsAppResourceRef"):
170
179
  os_app.addOsAppResourceRef(ref)
171
180
 
181
+ for ref in self.read_ref_value_list(ctr_tag, "OsAppTaskRef"):
182
+ os_app.addOsAppTaskRefs(ref)
183
+
184
+ for ref in self.read_ref_value_list(ctr_tag, "OsAppIsrRef"):
185
+ os_app.addOsAppIsrRefs(ref)
186
+
187
+
172
188
  self.logger.debug("Read OsApplication <%s>" % os_app.getName())
173
189
  os.addOsApplication(os_app)
@@ -24,8 +24,6 @@ class RteXdmParser(AbstractEbModelParser):
24
24
  self.read_rte_bsw_module_instances(element, rte)
25
25
  self.read_rte_sw_component_instances(element, rte)
26
26
 
27
-
28
-
29
27
  def read_rte_bsw_module_instance_event_to_task_mappings(self, element: ET.Element, instance: RteBswModuleInstance):
30
28
  for ctr_tag in self.find_ctr_tag_list(element, "RteBswEventToTaskMapping"):
31
29
  self.logger.debug("Read RteBswEventToTaskMapping <%s>" % ctr_tag.attrib['name'])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py-eb-model
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: The parser for EB XDM file
5
5
  Home-page: UNKNOWN
6
6
  Author: melodypapa
@@ -180,8 +180,11 @@ PrefSystemImporter --base-path c:/EB/ACG-8_8_8_WIN32X86/workspace/simple_demo_rt
180
180
 
181
181
  **Version 1.1.1**
182
182
 
183
- 1. PrefSystemImporter
184
- * Add the support to append SystemMod/EcuExtract.arxml into list automatically.
183
+ 1. Add the support to append SystemMod/EcuExtract.arxml into list automatically for PrefSystemImporter.
184
+
185
+ **Version 1.1.2**
186
+
187
+ 1. Read the OsAppTaskRef from OsApplication.
185
188
 
186
189
 
187
190
 
@@ -9,13 +9,13 @@ eb_model/models/eb_doc.py,sha256=hPsGdNHlm3vl-ys3B3NGrlJRrWAWPhRvFJrN3fLQTW8,256
9
9
  eb_model/models/eclipse_project.py,sha256=W6ovTd3SMnlmWm_efVBZqTUGQebF0hJocsTqMlQ7_XQ,169
10
10
  eb_model/models/importer_xdm.py,sha256=B2Vqw5nkmzFgaGSpZlmTVFWZ88rTMqD8Iryytg4kUnk,4249
11
11
  eb_model/models/os_xdm.py,sha256=2Y6PJ_IMrXjC6oSK_k3vtZpH8P31GlJhfNv18zbPFQg,32438
12
- eb_model/models/rte_xdm.py,sha256=otYbFuIKsFl0Jlqm18fRqroTi1fUEGw2HPhGZb7sAQ0,21060
12
+ eb_model/models/rte_xdm.py,sha256=kCn5WTrBY3nwMCYYaaWuoO6jWy37BmzNycTnVXnMDvQ,21482
13
13
  eb_model/parser/__init__.py,sha256=7VOmPr4dng_TrOyDZFu2_s3r0BJZQGiOUxALMY8EnqI,170
14
14
  eb_model/parser/eb_parser.py,sha256=_5sUl2pMt1SchHvrLOhU2axqa3FmKTWElSB79taz0O4,8188
15
15
  eb_model/parser/eb_parser_factory.py,sha256=zqsqq52uImU4-WcS5dvHfhM95hiEPAGRtNzVik8i8wc,971
16
- eb_model/parser/os_xdm_parser.py,sha256=UBN-NZKes_3IX1crTLTDAYOa_wbklRfD9rp5-24WVW4,9909
16
+ eb_model/parser/os_xdm_parser.py,sha256=ZBS36hcnMufCsiypnx-wmWmHYuECOqRWGOjOHbqXjBc,10560
17
17
  eb_model/parser/pref_xdm_parser.py,sha256=EjfR4vrnjRVLw_7wyPmMYlBj6lPXZbBZMEdWlYPj3uI,1539
18
- eb_model/parser/rte_xdm_parser.py,sha256=plUue0c4ejreE9w71_mT0JNzGSClf30cXhfC2NalrII,5471
18
+ eb_model/parser/rte_xdm_parser.py,sha256=nUqlVMBJVxMGb3yENFBm1RB9jWQ7azhMKhGkfLfz4K0,5459
19
19
  eb_model/reporter/__init__.py,sha256=H8D_23UwJi1Ph6yjBfZhxWVbu9ci5_O4471gqXGiZCM,36
20
20
  eb_model/reporter/markdown.py,sha256=NhcJOFQ_BVbkgGe66uAT7KUPIchWU4kfVMtMLQtbK-w,1647
21
21
  eb_model/reporter/excel_reporter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -45,9 +45,9 @@ py_eb_model/reporter/markdown.py,sha256=NhcJOFQ_BVbkgGe66uAT7KUPIchWU4kfVMtMLQtb
45
45
  py_eb_model/reporter/excel_reporter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
46
  py_eb_model/reporter/excel_reporter/abstract.py,sha256=BOuLhWwwTwqBzErtmwPrelB1iByMfZP9haFmg9ayFQw,1488
47
47
  py_eb_model/reporter/excel_reporter/os_xdm.py,sha256=WGMxK0PYxi9J5fUZ-EeiiM8NBpIg2WyxRsrN-gK37YE,1589
48
- py_eb_model-1.1.1.dist-info/LICENSE,sha256=I52rGS7W1IwAmYCUfqTpDaSHoFAdt7grcNiBhk-Z3eI,1088
49
- py_eb_model-1.1.1.dist-info/METADATA,sha256=o3TxYweK34vDd6CJN2ynv3xpTD0PsWNGyNKYco5g9iQ,5869
50
- py_eb_model-1.1.1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
51
- py_eb_model-1.1.1.dist-info/entry_points.txt,sha256=yDLH9wnJ5Fp7ImgyFRSnr3mU6nvaenuKZnbe2rgs8Mk,183
52
- py_eb_model-1.1.1.dist-info/top_level.txt,sha256=DGBNh6YW_x4RF_UoLKW3cKqb2SLnmfuEIZlkTewR66A,9
53
- py_eb_model-1.1.1.dist-info/RECORD,,
48
+ py_eb_model-1.1.2.dist-info/LICENSE,sha256=I52rGS7W1IwAmYCUfqTpDaSHoFAdt7grcNiBhk-Z3eI,1088
49
+ py_eb_model-1.1.2.dist-info/METADATA,sha256=3LOAFETww4ZvsasY7bi0uG8-Pehw6bYpn9KHTLslkVI,5937
50
+ py_eb_model-1.1.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
51
+ py_eb_model-1.1.2.dist-info/entry_points.txt,sha256=yDLH9wnJ5Fp7ImgyFRSnr3mU6nvaenuKZnbe2rgs8Mk,183
52
+ py_eb_model-1.1.2.dist-info/top_level.txt,sha256=DGBNh6YW_x4RF_UoLKW3cKqb2SLnmfuEIZlkTewR66A,9
53
+ py_eb_model-1.1.2.dist-info/RECORD,,