armodel 1.6.2__py3-none-any.whl → 1.6.3__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 +10 -7
- armodel/cli/arxml_format_cli.py +1 -1
- armodel/cli/connector_update_cli.py +1 -1
- armodel/lib/sw_component.py +1 -1
- armodel/lib/system_signal.py +2 -2
- armodel/models/{m2/autosar_templates/autosar_top_level_structure.py → M2/AUTOSARTemplates/AutosarTopLevelStructure.py} +7 -4
- armodel/models/{bsw_module_template.py → M2/AUTOSARTemplates/BswModuleTemplate/BswBehavior.py} +115 -140
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswImplementation.py +21 -0
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswInterfaces.py +52 -0
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswOverview.py +78 -0
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/__init__.py +1 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/Implementation.py +81 -0
- armodel/models/{m2/autosar_templates/common_structure/implementation_data_types.py → M2/AUTOSARTemplates/CommonStructure/ImplementationDataTypes.py} +9 -5
- armodel/models/M2/AUTOSARTemplates/CommonStructure/InternalBehavior.py +108 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ModeDeclaration.py +96 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/MemorySectionUsage.py +72 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/__init__.py +22 -0
- armodel/models/{service_needs.py → M2/AUTOSARTemplates/CommonStructure/ServiceNeeds.py} +7 -7
- armodel/models/M2/AUTOSARTemplates/CommonStructure/SwcBswMapping.py +36 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/SwcInternalBehavior/ModeDeclarationGroup.py +27 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/SwcInternalBehavior/__init__.py +1 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/TriggerDeclaration.py +9 -0
- armodel/models/{m2/autosar_templates/common_structure → M2/AUTOSARTemplates/CommonStructure}/__init__.py +5 -2
- armodel/models/{m2/autosar_templates/generic_structure/abstract_structure.py → M2/AUTOSARTemplates/GenericStructure/AbstractStructure.py} +25 -2
- armodel/models/{m2/autosar_templates/generic_structure/ar_package.py → M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ARPackage.py} +29 -21
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ArObject.py +16 -0
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ElementCollection.py +1 -0
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/EngineeringObject.py +55 -0
- armodel/models/{general_structure.py → M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/Identifiable.py} +37 -149
- armodel/models/{ar_object.py → M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/PrimitiveTypes.py} +163 -70
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/__init__.py +1 -0
- armodel/models/M2/AUTOSARTemplates/GenericStructure/__init__.py +1 -0
- armodel/models/{m2/autosar_templates/sw_component_template/communication.py → M2/AUTOSARTemplates/SWComponentTemplate/Communication.py} +22 -5
- armodel/models/{m2/autosar_templates/sw_component_template/components/instance_refs.py → M2/AUTOSARTemplates/SWComponentTemplate/Components/InstanceRefs.py} +2 -2
- armodel/models/{m2/autosar_templates/sw_component_template/components → M2/AUTOSARTemplates/SWComponentTemplate/Components}/__init__.py +10 -8
- armodel/models/{m2/autosar_templates/sw_component_template/composition/instance_refs.py → M2/AUTOSARTemplates/SWComponentTemplate/Composition/InstanceRefs.py} +2 -2
- armodel/models/{m2/autosar_templates/sw_component_template/composition → M2/AUTOSARTemplates/SWComponentTemplate/Composition}/__init__.py +5 -5
- armodel/models/{m2/autosar_templates/sw_component_template/data_type/data_prototypes.py → M2/AUTOSARTemplates/SWComponentTemplate/Datatype/DataPrototypes.py} +25 -7
- armodel/models/{datatype.py → M2/AUTOSARTemplates/SWComponentTemplate/Datatype/Datatypes.py} +16 -73
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Datatype/__init__.py +1 -0
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/EndToEndProtection.py +177 -0
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcImplementation.py +11 -0
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/access_count.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/AccessCount.py} +2 -2
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/data_elements.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/DataElements.py} +7 -5
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/IncludedDataTypes.py +24 -0
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/instance_refs_usage.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/InstanceRefsUsage.py} +3 -3
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/mode_declaration_group.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ModeDeclarationGroup.py} +3 -3
- armodel/models/{per_instance_memory.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/PerInstanceMemory.py} +5 -6
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/server_call.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ServerCall.py} +3 -3
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ServiceMapping.py +23 -0
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/trigger.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/Trigger.py} +2 -2
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior}/__init__.py +9 -10
- armodel/models/{m2/autosar_templates/sw_component_template → M2/AUTOSARTemplates/SWComponentTemplate}/port_interface/__init__.py +10 -6
- armodel/models/{m2/autosar_templates/sw_component_template → M2/AUTOSARTemplates/SWComponentTemplate}/port_interface/instance_refs.py +2 -2
- armodel/models/{m2/autosar_templates/system_template/instance_refs.py → M2/AUTOSARTemplates/SystemTemplate/InstanceRefs.py} +2 -2
- armodel/models/{m2/autosar_templates/system_template → M2/AUTOSARTemplates/SystemTemplate}/__init__.py +4 -2
- armodel/models/{m2/autosar_templates/system_template → M2/AUTOSARTemplates/SystemTemplate}/data_mapping.py +2 -2
- armodel/models/{m2/autosar_templates/system_template → M2/AUTOSARTemplates/SystemTemplate}/network_management.py +7 -3
- armodel/models/{m2/autosar_templates/system_template → M2/AUTOSARTemplates/SystemTemplate}/transport_protocols.py +1 -1
- armodel/models/{m2/autosar_templates → M2/AUTOSARTemplates}/ecuc_description_template.py +10 -6
- armodel/models/M2/MSR/AsamHdo/AdminData.py +21 -0
- armodel/models/M2/MSR/AsamHdo/BaseTypes.py +77 -0
- armodel/models/{m2_msr.py → M2/MSR/AsamHdo/ComputationMethod.py} +44 -28
- armodel/models/{global_constraints.py → M2/MSR/AsamHdo/Constraints/GlobalConstraints.py} +7 -4
- armodel/models/M2/MSR/AsamHdo/Constraints/__init__.py +1 -0
- armodel/models/M2/MSR/AsamHdo/SpecialData.py +63 -0
- armodel/models/{m2/msr/asam_hdo/units.py → M2/MSR/AsamHdo/Units.py} +6 -3
- armodel/models/M2/MSR/AsamHdo/__init__.py +1 -0
- armodel/models/M2/MSR/CalibrationData/CalibrationValue.py +30 -0
- armodel/models/M2/MSR/CalibrationData/__init__.py +1 -0
- armodel/models/{m2/msr/data_dictionary/auxillary_objects.py → M2/MSR/DataDictionary/AuxillaryObjects.py} +4 -2
- armodel/models/M2/MSR/DataDictionary/Axis.py +145 -0
- armodel/models/M2/MSR/DataDictionary/CalibrationParameter.py +37 -0
- armodel/models/{m2/msr/data_dictionary/data_def_properties.py → M2/MSR/DataDictionary/DataDefProperties.py} +19 -9
- armodel/models/{record_layout.py → M2/MSR/DataDictionary/RecordLayout.py} +26 -25
- armodel/models/M2/MSR/DataDictionary/__init__.py +1 -0
- armodel/models/{annotation.py → M2/MSR/Documentation/Annotation.py} +8 -8
- armodel/models/{m2/msr/documentation/block_elements.py → M2/MSR/Documentation/BlockElements.py} +2 -2
- armodel/models/M2/MSR/Documentation/TextModel/LanguageDataModel.py +17 -0
- armodel/models/{multilanguage_data.py → M2/MSR/Documentation/TextModel/MultilanguageData.py} +21 -30
- armodel/models/M2/MSR/Documentation/TextModel/__init__.py +2 -0
- armodel/models/M2/MSR/Documentation/__init__.py +3 -0
- armodel/models/M2/MSR/__init__.py +1 -0
- armodel/models/M2/__init__.py +1 -0
- armodel/models/__init__.py +6 -23
- armodel/models/fibex/can_communication.py +3 -2
- armodel/models/fibex/fibex_4_multiplatform.py +5 -3
- armodel/models/fibex/fibex_core/core_communication.py +9 -3
- armodel/models/fibex/fibex_core/core_topology.py +7 -3
- armodel/models/fibex/lin_communication.py +5 -1
- armodel/models/rpt_scenario.py +2 -2
- armodel/models/sw_component.py +19 -14
- armodel/models/timing.py +3 -3
- armodel/parser/abstract_arxml_parser.py +8 -4
- armodel/parser/arxml_parser.py +85 -62
- armodel/parser/connector_xlsx_parser.py +5 -3
- armodel/report/connector_xls_report.py +1 -1
- armodel/tests/test_armodel/models/test_ar_object.py +2 -1
- armodel/tests/test_armodel/models/test_ar_package.py +20 -8
- armodel/tests/test_armodel/models/test_ar_ref.py +7 -5
- armodel/tests/test_armodel/models/test_bsw_module_template.py +5 -1
- armodel/tests/test_armodel/models/test_common_structure.py +11 -5
- armodel/tests/test_armodel/models/test_data_dictionary.py +2 -2
- armodel/tests/test_armodel/models/test_data_prototype.py +7 -3
- armodel/tests/test_armodel/models/test_datatype.py +21 -7
- armodel/tests/test_armodel/models/test_general_structure.py +12 -2
- armodel/tests/test_armodel/models/test_implementation.py +3 -2
- armodel/tests/test_armodel/models/test_m2_msr.py +4 -2
- armodel/tests/test_armodel/models/test_port_interface.py +16 -6
- armodel/tests/test_armodel/models/test_port_prototype.py +1 -1
- armodel/tests/test_armodel/parser/test_parse_bswmd.py +1 -1
- armodel/tests/test_armodel/parser/test_sw_components.py +2 -2
- armodel/tests/test_armodel/parser/test_system.py +30 -0
- armodel/writer/abstract_arxml_writer.py +5 -2
- armodel/writer/arxml_writer.py +100 -67
- {armodel-1.6.2.dist-info → armodel-1.6.3.dist-info}/METADATA +366 -356
- armodel-1.6.3.dist-info/RECORD +148 -0
- {armodel-1.6.2.dist-info → armodel-1.6.3.dist-info}/WHEEL +1 -1
- armodel/lib/data_analyzer.py +0 -34
- armodel/models/ar_package.py +0 -641
- armodel/models/ar_ref.py +0 -25
- armodel/models/calibration.py +0 -119
- armodel/models/common_structure.py +0 -272
- armodel/models/communication.py +0 -17
- armodel/models/data_def_properties.py +0 -16
- armodel/models/data_dictionary.py +0 -59
- armodel/models/data_prototype.py +0 -103
- armodel/models/ecuc_parameter_def_template.py +0 -0
- armodel/models/end_to_end_protection.py +0 -67
- armodel/models/fibex/fibex_core.py +0 -341
- armodel/models/fibex/lin_topology.py +0 -7
- armodel/models/implementation.py +0 -135
- armodel/models/internal_behavior.py +0 -63
- armodel/models/m2/autosar_templates/common_structure/constants.py +0 -0
- armodel/models/m2/autosar_templates/common_structure/implementation.py +0 -21
- armodel/models/m2/autosar_templates/generic_structure/__init__.py +0 -0
- armodel/models/m2/autosar_templates/sw_component_template/__init__.py +0 -0
- armodel/models/m2/autosar_templates/sw_component_template/data_type/__init__.py +0 -0
- armodel/models/m2/autosar_templates/sw_component_template/port_interface.py +0 -236
- armodel/models/m2/msr/__init__.py +0 -0
- armodel/models/m2/msr/asam_hdo/__init__.py +0 -0
- armodel/models/m2/msr/data_dictionary/__init__.py +0 -0
- armodel/models/m2/msr/documentation/__init__.py +0 -0
- armodel/models/mode_declaration.py +0 -8
- armodel/models/port_interface.py +0 -165
- armodel/models/port_prototype.py +0 -6
- armodel/models/service_mapping.py +0 -11
- armodel/models/system_template/__init__.py +0 -0
- armodel/models/system_template/network_management.py +0 -7
- armodel/models/system_template/transport_protocols.py +0 -7
- armodel/models/unit.py +0 -14
- armodel-1.6.2.dist-info/RECORD +0 -142
- /armodel/models/{m2 → M2/AUTOSARTemplates/SWComponentTemplate}/__init__.py +0 -0
- /armodel/models/{m2/autosar_templates → M2/AUTOSARTemplates}/__init__.py +0 -0
- {armodel-1.6.2.dist-info → armodel-1.6.3.dist-info}/LICENSE +0 -0
- {armodel-1.6.2.dist-info → armodel-1.6.3.dist-info}/entry_points.txt +0 -0
- {armodel-1.6.2.dist-info → armodel-1.6.3.dist-info}/top_level.txt +0 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
from typing import List
|
|
3
3
|
|
|
4
|
-
from
|
|
5
|
-
|
|
4
|
+
from ..GenericStructure.GeneralTemplateClasses.Identifiable import Identifiable
|
|
5
|
+
|
|
6
|
+
from ..GenericStructure.GeneralTemplateClasses.PrimitiveTypes import RefType
|
|
7
|
+
from ..GenericStructure.GeneralTemplateClasses.Identifiable import ARElement
|
|
6
8
|
|
|
7
9
|
class SystemMapping(Identifiable):
|
|
8
10
|
def __init__(self, parent, short_name):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from abc import ABCMeta
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
3
|
+
from ..GenericStructure.GeneralTemplateClasses.PrimitiveTypes import RefType
|
|
4
|
+
from ..GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
5
5
|
|
|
6
6
|
class DataMapping(ARObject, metaclass = ABCMeta):
|
|
7
7
|
def __init__(self):
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
from abc import ABCMeta
|
|
2
2
|
from typing import List
|
|
3
3
|
|
|
4
|
-
from
|
|
5
|
-
|
|
6
|
-
from
|
|
4
|
+
from ..GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
5
|
+
|
|
6
|
+
from ..GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARLiteral, ARNumerical
|
|
7
|
+
|
|
8
|
+
from ..GenericStructure.GeneralTemplateClasses.PrimitiveTypes import RefType
|
|
9
|
+
from ..GenericStructure.GeneralTemplateClasses.Identifiable import Identifiable
|
|
10
|
+
from ..GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARBoolean
|
|
7
11
|
from ....fibex.fibex_core.core_communication import FibexElement
|
|
8
12
|
from ....fibex.can_communication import RxIdentifierRange
|
|
9
13
|
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
from abc import ABCMeta
|
|
2
2
|
from typing import List
|
|
3
3
|
|
|
4
|
-
from
|
|
5
|
-
|
|
6
|
-
from
|
|
7
|
-
|
|
8
|
-
from
|
|
9
|
-
from
|
|
4
|
+
from .GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
5
|
+
|
|
6
|
+
from .GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARLiteral, ARNumerical
|
|
7
|
+
|
|
8
|
+
from .GenericStructure.AbstractStructure import AnyInstanceRef
|
|
9
|
+
from ..MSR.Documentation.BlockElements import DocumentationBlock
|
|
10
|
+
from ..MSR.Documentation.Annotation import Annotation
|
|
11
|
+
from .GenericStructure.GeneralTemplateClasses.PrimitiveTypes import RefType
|
|
12
|
+
from .GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARBoolean
|
|
13
|
+
from .GenericStructure.GeneralTemplateClasses.Identifiable import ARElement
|
|
10
14
|
|
|
11
15
|
class EcucValueCollection(ARElement):
|
|
12
16
|
def __init__(self, parent: ARObject, short_name: str):
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from armodel.models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
2
|
+
from armodel.models.M2.MSR.AsamHdo.SpecialData import Sdg
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AdminData(ARObject):
|
|
9
|
+
def __init__(self):
|
|
10
|
+
super().__init__()
|
|
11
|
+
|
|
12
|
+
self.doc_revision = []
|
|
13
|
+
self.language = None
|
|
14
|
+
self.sdg = []
|
|
15
|
+
self.used_languages = None
|
|
16
|
+
|
|
17
|
+
def addSdg(self, sdg: Sdg):
|
|
18
|
+
self.sdg.append(sdg)
|
|
19
|
+
|
|
20
|
+
def getSdgs(self) -> List[Sdg]:
|
|
21
|
+
return self.sdg
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
from abc import ABCMeta
|
|
2
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
3
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import ARElement
|
|
4
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARNumerical
|
|
5
|
+
|
|
6
|
+
class BaseTypeDefinition(ARObject):
|
|
7
|
+
def __init__(self):
|
|
8
|
+
super().__init__()
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class BaseTypeDirectDefinition(BaseTypeDefinition):
|
|
12
|
+
def __init__(self):
|
|
13
|
+
super().__init__()
|
|
14
|
+
|
|
15
|
+
self.baseTypeEncoding = None # type: BaseTypeEncodingString
|
|
16
|
+
self.baseTypeSize = None # type: ARNumerical
|
|
17
|
+
self.byteOrder = None # type: ByteOrderEnum
|
|
18
|
+
self.memAlignment = None # type: ARNumerical
|
|
19
|
+
self.nativeDeclaration = None
|
|
20
|
+
|
|
21
|
+
def getBaseTypeEncoding(self):
|
|
22
|
+
return self.baseTypeEncoding
|
|
23
|
+
|
|
24
|
+
def setBaseTypeEncoding(self, value):
|
|
25
|
+
self.baseTypeEncoding = value
|
|
26
|
+
return self
|
|
27
|
+
|
|
28
|
+
def getBaseTypeSize(self):
|
|
29
|
+
return self.baseTypeSize
|
|
30
|
+
|
|
31
|
+
def setBaseTypeSize(self, value):
|
|
32
|
+
self.baseTypeSize = value
|
|
33
|
+
return self
|
|
34
|
+
|
|
35
|
+
def getByteOrder(self):
|
|
36
|
+
return self.byteOrder
|
|
37
|
+
|
|
38
|
+
def setByteOrder(self, value):
|
|
39
|
+
self.byteOrder = value
|
|
40
|
+
return self
|
|
41
|
+
|
|
42
|
+
def getMemAlignment(self):
|
|
43
|
+
return self.memAlignment
|
|
44
|
+
|
|
45
|
+
def setMemAlignment(self, value):
|
|
46
|
+
self.memAlignment = value
|
|
47
|
+
return self
|
|
48
|
+
|
|
49
|
+
def getNativeDeclaration(self):
|
|
50
|
+
return self.nativeDeclaration
|
|
51
|
+
|
|
52
|
+
def setNativeDeclaration(self, value):
|
|
53
|
+
self.nativeDeclaration = value
|
|
54
|
+
return self
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class BaseType(ARElement, metaclass=ABCMeta):
|
|
59
|
+
def __init__(self, parent: ARObject, short_name: str):
|
|
60
|
+
if type(self) == BaseType:
|
|
61
|
+
raise NotImplementedError("BaseType is an abstract class.")
|
|
62
|
+
|
|
63
|
+
super().__init__(parent, short_name)
|
|
64
|
+
|
|
65
|
+
self.baseTypeDefinition = BaseTypeDirectDefinition()
|
|
66
|
+
|
|
67
|
+
def getBaseTypeDefinition(self):
|
|
68
|
+
return self.baseTypeDefinition
|
|
69
|
+
|
|
70
|
+
def setBaseTypeDefinition(self, value):
|
|
71
|
+
self.baseTypeDefinition = value
|
|
72
|
+
return self
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class SwBaseType(BaseType):
|
|
76
|
+
def __init__(self, parent: ARObject, short_name: str):
|
|
77
|
+
super().__init__(parent, short_name)
|
|
@@ -1,16 +1,32 @@
|
|
|
1
|
-
from .ar_object import ARLiteral
|
|
2
|
-
from .general_structure import ARObject, ARElement, Limit
|
|
3
|
-
from .ar_ref import RefType
|
|
4
|
-
from abc import ABCMeta
|
|
5
1
|
from typing import List
|
|
2
|
+
from abc import ABCMeta
|
|
3
|
+
|
|
4
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import ARElement
|
|
5
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARLiteral
|
|
6
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
7
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import RefType
|
|
8
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import Limit
|
|
6
9
|
|
|
7
10
|
class CompuContent(ARObject, metaclass=ABCMeta):
|
|
8
11
|
def __init__(self):
|
|
9
12
|
if type(self) == CompuContent:
|
|
10
13
|
raise NotImplementedError("CompuContent is an abstract class.")
|
|
11
|
-
|
|
14
|
+
|
|
15
|
+
super().__init__()
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class CompuConst(ARObject):
|
|
19
|
+
'''
|
|
20
|
+
This meta-class represents the fact that the value of a computation method scale is constant.
|
|
21
|
+
Base : ARObject
|
|
22
|
+
Aggregated by : Compu.compuDefaultValue, CompuScale.compuInverseValue, CompuScaleConstantContents.compuCons
|
|
23
|
+
'''
|
|
24
|
+
def __init__(self):
|
|
12
25
|
super().__init__()
|
|
13
26
|
|
|
27
|
+
self.compu_const_content_type = None # type: CompuConstContent
|
|
28
|
+
|
|
29
|
+
|
|
14
30
|
class Compu(ARObject):
|
|
15
31
|
def __init__(self):
|
|
16
32
|
super().__init__()
|
|
@@ -21,6 +37,7 @@ class Compu(ARObject):
|
|
|
21
37
|
'''optional'''
|
|
22
38
|
self.compu_default_value = None # type: CompuConst
|
|
23
39
|
|
|
40
|
+
|
|
24
41
|
class CompuConstContent(ARObject, metaclass=ABCMeta):
|
|
25
42
|
'''
|
|
26
43
|
This meta-class represents the fact that the constant value of the computation method can be numerical or textual.
|
|
@@ -31,9 +48,10 @@ class CompuConstContent(ARObject, metaclass=ABCMeta):
|
|
|
31
48
|
def __init__(self):
|
|
32
49
|
if type(self) == CompuConstContent:
|
|
33
50
|
raise NotImplementedError("CompuConstContent is an abstract class.")
|
|
34
|
-
|
|
51
|
+
|
|
35
52
|
super().__init__()
|
|
36
53
|
|
|
54
|
+
|
|
37
55
|
class CompuConstTextContent(CompuConstContent):
|
|
38
56
|
'''
|
|
39
57
|
This meta-class represents the textual content of a scale.
|
|
@@ -45,6 +63,7 @@ class CompuConstTextContent(CompuConstContent):
|
|
|
45
63
|
|
|
46
64
|
self.vt = None
|
|
47
65
|
|
|
66
|
+
|
|
48
67
|
class CompuConstNumericContent(CompuConstContent):
|
|
49
68
|
|
|
50
69
|
def __init__(self):
|
|
@@ -52,30 +71,35 @@ class CompuConstNumericContent(CompuConstContent):
|
|
|
52
71
|
|
|
53
72
|
self.v = None
|
|
54
73
|
|
|
55
|
-
class CompuConst(ARObject):
|
|
56
|
-
'''
|
|
57
|
-
This meta-class represents the fact that the value of a computation method scale is constant.
|
|
58
|
-
Base : ARObject
|
|
59
|
-
Aggregated by : Compu.compuDefaultValue, CompuScale.compuInverseValue, CompuScaleConstantContents.compuCons
|
|
60
|
-
'''
|
|
61
|
-
def __init__(self):
|
|
62
|
-
super().__init__()
|
|
63
|
-
|
|
64
|
-
self.compu_const_content_type = None # type: CompuConstContent
|
|
65
74
|
|
|
66
75
|
class CompuScaleContents(ARObject, metaclass=ABCMeta):
|
|
67
76
|
def __init__(self):
|
|
68
77
|
if type(self) == CompuScaleContents:
|
|
69
78
|
raise NotImplementedError("CompuScaleContents is an abstract class.")
|
|
70
|
-
|
|
79
|
+
|
|
71
80
|
super().__init__()
|
|
72
81
|
|
|
82
|
+
|
|
73
83
|
class CompuScaleConstantContents(CompuScaleContents):
|
|
74
84
|
def __init__(self):
|
|
75
85
|
super().__init__()
|
|
76
86
|
|
|
77
87
|
self.compu_const = None # type: CompuConst
|
|
78
88
|
|
|
89
|
+
|
|
90
|
+
class CompuRationalCoeffs(ARObject):
|
|
91
|
+
'''
|
|
92
|
+
This meta-class represents the ability to express a rational function by specifying the coefficients of nominator and denominator.
|
|
93
|
+
Base : ARObject
|
|
94
|
+
Aggregated by : CompuScaleRationalFormula.compuRationalCoeffs
|
|
95
|
+
'''
|
|
96
|
+
def __init__(self):
|
|
97
|
+
super().__init__()
|
|
98
|
+
|
|
99
|
+
self.compu_denominator = None # type: CompuNominatorDenominator
|
|
100
|
+
self.compu_numerator = None # type: CompuNominatorDenominator
|
|
101
|
+
|
|
102
|
+
|
|
79
103
|
class CompuScaleRationalFormula(CompuScaleContents):
|
|
80
104
|
'''
|
|
81
105
|
This meta-class represents the fact that the computation in this scale is represented as rational term.
|
|
@@ -85,6 +109,7 @@ class CompuScaleRationalFormula(CompuScaleContents):
|
|
|
85
109
|
|
|
86
110
|
self.compu_rational_coeffs = None # type: CompuRationalCoeffs
|
|
87
111
|
|
|
112
|
+
|
|
88
113
|
class CompuNominatorDenominator(ARObject):
|
|
89
114
|
'''
|
|
90
115
|
This class represents the ability to express a polynomial either as Nominator or as Denominator.
|
|
@@ -102,17 +127,6 @@ class CompuNominatorDenominator(ARObject):
|
|
|
102
127
|
def get_vs(self) -> List[float]:
|
|
103
128
|
return self.v
|
|
104
129
|
|
|
105
|
-
class CompuRationalCoeffs(ARObject):
|
|
106
|
-
'''
|
|
107
|
-
This meta-class represents the ability to express a rational function by specifying the coefficients of nominator and denominator.
|
|
108
|
-
Base : ARObject
|
|
109
|
-
Aggregated by : CompuScaleRationalFormula.compuRationalCoeffs
|
|
110
|
-
'''
|
|
111
|
-
def __init__(self):
|
|
112
|
-
super().__init__()
|
|
113
|
-
|
|
114
|
-
self.compu_denominator = None # type: CompuNominatorDenominator
|
|
115
|
-
self.compu_numerator = None # type: CompuNominatorDenominator
|
|
116
130
|
|
|
117
131
|
class CompuScale(Compu):
|
|
118
132
|
def __init__(self):
|
|
@@ -125,6 +139,7 @@ class CompuScale(Compu):
|
|
|
125
139
|
self.compuScaleContents = None # type: CompuScaleContents
|
|
126
140
|
self.short_label = None # type: ARLiteral
|
|
127
141
|
|
|
142
|
+
|
|
128
143
|
class CompuScales(CompuContent):
|
|
129
144
|
def __init__(self):
|
|
130
145
|
super().__init__()
|
|
@@ -137,6 +152,7 @@ class CompuScales(CompuContent):
|
|
|
137
152
|
def getCompuScales(self) -> List[CompuScale]:
|
|
138
153
|
return self.compu_scales
|
|
139
154
|
|
|
155
|
+
|
|
140
156
|
class CompuMethod(ARElement):
|
|
141
157
|
CATEGORY_TEXTTABLE = "TEXTTABLE"
|
|
142
158
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
from .ar_ref import RefType
|
|
2
|
-
from .ar_object import ARNumerical, ARObject
|
|
3
|
-
from .general_structure import Identifiable, Limit
|
|
4
|
-
|
|
5
1
|
from typing import List
|
|
2
|
+
from ....AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
3
|
+
from ....AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import Identifiable
|
|
4
|
+
from ....AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARNumerical, Limit, RefType
|
|
5
|
+
|
|
6
6
|
|
|
7
7
|
class InternalConstrs(ARObject):
|
|
8
8
|
def __init__(self):
|
|
@@ -11,6 +11,7 @@ class InternalConstrs(ARObject):
|
|
|
11
11
|
self.lower_limit = None # type: Limit
|
|
12
12
|
self.upper_limit = None # type: Limit
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
class PhysConstrs(ARObject):
|
|
15
16
|
def __init__(self):
|
|
16
17
|
super().__init__()
|
|
@@ -19,6 +20,7 @@ class PhysConstrs(ARObject):
|
|
|
19
20
|
self.upper_limit = None # type: Limit
|
|
20
21
|
self.unit_ref = None # type: RefType
|
|
21
22
|
|
|
23
|
+
|
|
22
24
|
class DataConstrRule(ARObject):
|
|
23
25
|
def __init__(self):
|
|
24
26
|
super().__init__()
|
|
@@ -27,6 +29,7 @@ class DataConstrRule(ARObject):
|
|
|
27
29
|
self.internalConstrs = None # type: InternalConstrs
|
|
28
30
|
self.physConstrs = None # type: PhysConstrs
|
|
29
31
|
|
|
32
|
+
|
|
30
33
|
class DataConstr(Identifiable):
|
|
31
34
|
def __init__(self, parent: ARObject, short_name: str):
|
|
32
35
|
super().__init__(parent, short_name)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from . import *
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
from armodel.models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from typing import List
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Sd(ARObject):
|
|
8
|
+
def __init__(self):
|
|
9
|
+
super().__init__()
|
|
10
|
+
|
|
11
|
+
self.gid = ""
|
|
12
|
+
self.value = ""
|
|
13
|
+
|
|
14
|
+
def getGID(self):
|
|
15
|
+
return self.gid
|
|
16
|
+
|
|
17
|
+
def setGID(self, value):
|
|
18
|
+
self.gid = value
|
|
19
|
+
return self
|
|
20
|
+
|
|
21
|
+
def getValue(self):
|
|
22
|
+
return self.value
|
|
23
|
+
|
|
24
|
+
def setValue(self, value):
|
|
25
|
+
self.value = value
|
|
26
|
+
return self
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class Sdg(ARObject):
|
|
30
|
+
def __init__(self):
|
|
31
|
+
super().__init__()
|
|
32
|
+
|
|
33
|
+
self.gid = ""
|
|
34
|
+
self.sd = [] # type: List[Sd]
|
|
35
|
+
self.sdgCaption = None
|
|
36
|
+
self.sdgContentsTypes = [] # type: List[Sdg]
|
|
37
|
+
|
|
38
|
+
def getGID(self):
|
|
39
|
+
return self.gid
|
|
40
|
+
|
|
41
|
+
def setGID(self, value):
|
|
42
|
+
self.gid = value
|
|
43
|
+
return self
|
|
44
|
+
|
|
45
|
+
def addSd(self, sd: Sd):
|
|
46
|
+
self.sd.append(sd)
|
|
47
|
+
return self
|
|
48
|
+
|
|
49
|
+
def getSds(self) -> List[Sd]:
|
|
50
|
+
return self.sd
|
|
51
|
+
|
|
52
|
+
def getSdgCaption(self):
|
|
53
|
+
return self.sdgCaption
|
|
54
|
+
|
|
55
|
+
def setSdgCaption(self, value):
|
|
56
|
+
self.sdgCaption = value
|
|
57
|
+
return self
|
|
58
|
+
|
|
59
|
+
def addSdgContentsType(self, sdg):
|
|
60
|
+
self.sdgContentsTypes.append(sdg)
|
|
61
|
+
|
|
62
|
+
def getSdgContentsTypes(self):
|
|
63
|
+
return self.sdgContentsTypes
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
from
|
|
3
|
-
from
|
|
4
|
-
from
|
|
2
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
3
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARFloat, ARNumerical
|
|
4
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import RefType
|
|
5
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARLiteral
|
|
6
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import ARElement
|
|
7
|
+
|
|
5
8
|
class PhysicalDimension(ARElement):
|
|
6
9
|
def __init__(self, parent: ARObject, short_name: str):
|
|
7
10
|
super().__init__(parent, short_name)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from . import *
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from armodel.models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
2
|
+
from armodel.models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARNumerical, RefType
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
from armodel.models.M2.MSR.DataDictionary.DataDefProperties import ValueList
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class SwValues(ARObject):
|
|
11
|
+
def __init__(self):
|
|
12
|
+
super().__init__()
|
|
13
|
+
|
|
14
|
+
self._v = [] # type: List[ARNumerical]
|
|
15
|
+
self.vt = None # type: float
|
|
16
|
+
|
|
17
|
+
def addV(self, v: ARNumerical):
|
|
18
|
+
self._v.append(v)
|
|
19
|
+
|
|
20
|
+
def getVs(self) -> List[ARNumerical]:
|
|
21
|
+
return self._v
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class SwValueCont(ARObject):
|
|
25
|
+
def __init__(self):
|
|
26
|
+
super().__init__()
|
|
27
|
+
|
|
28
|
+
self.sw_arraysize = None # type: ValueList
|
|
29
|
+
self.unit_ref = None # type: RefType
|
|
30
|
+
self.sw_values_phys = None # type: SwValues
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from . import *
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
from typing import List
|
|
3
|
-
|
|
4
|
-
from
|
|
3
|
+
|
|
4
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
5
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARLiteral
|
|
6
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import Identifiable
|
|
5
7
|
|
|
6
8
|
|
|
7
9
|
class SwAddrMethod(Identifiable):
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
from .CalibrationParameter import SwCalprmAxisTypeProps
|
|
2
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
3
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARFloat, ARNumerical, RefType
|
|
4
|
+
from typing import List
|
|
5
|
+
|
|
6
|
+
class SwGenericAxisParam(ARObject):
|
|
7
|
+
def __init__(self):
|
|
8
|
+
super().__init__()
|
|
9
|
+
|
|
10
|
+
self.swGenericAxisParamTypeRef = None # type: RefType
|
|
11
|
+
self.vfs = [] # type: List[ARFloat]
|
|
12
|
+
|
|
13
|
+
def getSwGenericAxisParamTypeRef(self):
|
|
14
|
+
return self.swGenericAxisParamTypeRef
|
|
15
|
+
|
|
16
|
+
def setSwGenericAxisParamTypeRef(self, value):
|
|
17
|
+
self.swGenericAxisParamTypeRef = value
|
|
18
|
+
return self
|
|
19
|
+
|
|
20
|
+
def getVfs(self):
|
|
21
|
+
return self.vfs
|
|
22
|
+
|
|
23
|
+
def addVf(self, value):
|
|
24
|
+
self.vfs.append(value)
|
|
25
|
+
return self
|
|
26
|
+
|
|
27
|
+
class SwAxisGeneric(ARObject):
|
|
28
|
+
def __init__(self):
|
|
29
|
+
super().__init__()
|
|
30
|
+
|
|
31
|
+
self.swAxisTypeRef = None # type: RefType
|
|
32
|
+
self.swGenericAxisParams = [] # type: List[SwGenericAxisParam]
|
|
33
|
+
|
|
34
|
+
def getSwAxisTypeRef(self):
|
|
35
|
+
return self.swAxisTypeRef
|
|
36
|
+
|
|
37
|
+
def setSwAxisTypeRef(self, value):
|
|
38
|
+
self.swAxisTypeRef = value
|
|
39
|
+
return self
|
|
40
|
+
|
|
41
|
+
def getSwGenericAxisParams(self):
|
|
42
|
+
return self.swGenericAxisParams
|
|
43
|
+
|
|
44
|
+
def addSwGenericAxisParam(self, value):
|
|
45
|
+
self.swGenericAxisParams.append(value)
|
|
46
|
+
return self
|
|
47
|
+
|
|
48
|
+
class SwAxisIndividual(SwCalprmAxisTypeProps):
|
|
49
|
+
def __init__(self):
|
|
50
|
+
super().__init__()
|
|
51
|
+
|
|
52
|
+
self.compuMethodRef = None # type: RefType
|
|
53
|
+
self.dataConstrRef = None # type: RefType
|
|
54
|
+
self.inputVariableTypeRef = None # type: RefType
|
|
55
|
+
self.swAxisGeneric = None # type: SwAxisGeneric
|
|
56
|
+
self.swMaxAxisPoints = None # type: ARNumerical
|
|
57
|
+
self.swMinAxisPoints = None # type: ARNumerical
|
|
58
|
+
self.swVariableRefs = [] # type: List
|
|
59
|
+
self.unitRef = None # type: RefType
|
|
60
|
+
|
|
61
|
+
def getCompuMethodRef(self):
|
|
62
|
+
return self.compuMethodRef
|
|
63
|
+
|
|
64
|
+
def setCompuMethodRef(self, value):
|
|
65
|
+
self.compuMethodRef = value
|
|
66
|
+
return self
|
|
67
|
+
|
|
68
|
+
def getDataConstrRef(self):
|
|
69
|
+
return self.dataConstrRef
|
|
70
|
+
|
|
71
|
+
def setDataConstrRef(self, value):
|
|
72
|
+
self.dataConstrRef = value
|
|
73
|
+
return self
|
|
74
|
+
|
|
75
|
+
def getInputVariableTypeRef(self):
|
|
76
|
+
return self.inputVariableTypeRef
|
|
77
|
+
|
|
78
|
+
def setInputVariableTypeRef(self, value):
|
|
79
|
+
self.inputVariableTypeRef = value
|
|
80
|
+
return self
|
|
81
|
+
|
|
82
|
+
def getSwAxisGeneric(self):
|
|
83
|
+
return self.swAxisGeneric
|
|
84
|
+
|
|
85
|
+
def setSwAxisGeneric(self, value):
|
|
86
|
+
self.swAxisGeneric = value
|
|
87
|
+
return self
|
|
88
|
+
|
|
89
|
+
def getSwMaxAxisPoints(self):
|
|
90
|
+
return self.swMaxAxisPoints
|
|
91
|
+
|
|
92
|
+
def setSwMaxAxisPoints(self, value):
|
|
93
|
+
self.swMaxAxisPoints = value
|
|
94
|
+
return self
|
|
95
|
+
|
|
96
|
+
def getSwMinAxisPoints(self):
|
|
97
|
+
return self.swMinAxisPoints
|
|
98
|
+
|
|
99
|
+
def setSwMinAxisPoints(self, value):
|
|
100
|
+
self.swMinAxisPoints = value
|
|
101
|
+
return self
|
|
102
|
+
|
|
103
|
+
def getSwVariableRefs(self):
|
|
104
|
+
return self.swVariableRefs
|
|
105
|
+
|
|
106
|
+
def setSwVariableRefs(self, value):
|
|
107
|
+
self.swVariableRefs = value
|
|
108
|
+
return self
|
|
109
|
+
|
|
110
|
+
def getUnitRef(self):
|
|
111
|
+
return self.unitRef
|
|
112
|
+
|
|
113
|
+
def setUnitRef(self, value):
|
|
114
|
+
self.unitRef = value
|
|
115
|
+
return self
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
class SwAxisGrouped(SwCalprmAxisTypeProps):
|
|
119
|
+
def __init__(self):
|
|
120
|
+
super().__init__()
|
|
121
|
+
|
|
122
|
+
self.sharedAxisTypeRef = None # type: RefType
|
|
123
|
+
self.swAxisIndex = None # type: ARNumerical
|
|
124
|
+
self.swCalprmRef = None # type: SwCalprmRefProxy
|
|
125
|
+
|
|
126
|
+
def getSharedAxisTypeRef(self):
|
|
127
|
+
return self.sharedAxisTypeRef
|
|
128
|
+
|
|
129
|
+
def setSharedAxisTypeRef(self, value):
|
|
130
|
+
self.sharedAxisTypeRef = value
|
|
131
|
+
return self
|
|
132
|
+
|
|
133
|
+
def getSwAxisIndex(self):
|
|
134
|
+
return self.swAxisIndex
|
|
135
|
+
|
|
136
|
+
def setSwAxisIndex(self, value):
|
|
137
|
+
self.swAxisIndex = value
|
|
138
|
+
return self
|
|
139
|
+
|
|
140
|
+
def getSwCalprmRef(self):
|
|
141
|
+
return self.swCalprmRef
|
|
142
|
+
|
|
143
|
+
def setSwCalprmRef(self, value):
|
|
144
|
+
self.swCalprmRef = value
|
|
145
|
+
return self
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
3
|
+
from ...AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARFloat
|
|
4
|
+
|
|
5
|
+
from abc import ABCMeta
|
|
6
|
+
class SwCalprmAxisTypeProps(ARObject, metaclass = ABCMeta):
|
|
7
|
+
def __init__(self):
|
|
8
|
+
if type(self) == SwCalprmAxisTypeProps:
|
|
9
|
+
raise NotImplementedError("SwCalprmAxisTypeProps is an abstract class.")
|
|
10
|
+
|
|
11
|
+
super().__init__()
|
|
12
|
+
|
|
13
|
+
self.maxGradient = None # type: ARFloat
|
|
14
|
+
self.monotony = None # type: MonotonyEnum
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class SwCalprmAxis(ARObject):
|
|
18
|
+
def __init__(self):
|
|
19
|
+
super().__init__()
|
|
20
|
+
|
|
21
|
+
self.category = None # type: CalprmAxisCategoryEnum
|
|
22
|
+
self.displayFormat = None # type: DisplayFormatString
|
|
23
|
+
self.sw_axis_index = None # type: AxisIndexType
|
|
24
|
+
self.swCalibrationAccess = None # type: SwCalibrationAccessEnum
|
|
25
|
+
self.sw_calprm_axis_type_props = None # type: SwCalprmAxisTypeProps
|
|
26
|
+
|
|
27
|
+
class SwCalprmAxisSet(ARObject):
|
|
28
|
+
def __init__(self):
|
|
29
|
+
super().__init__()
|
|
30
|
+
|
|
31
|
+
self._swCalprmAxis = [] # type: List[SwCalprmAxis]
|
|
32
|
+
|
|
33
|
+
def addSwCalprmAxis(self, axis: SwCalprmAxis):
|
|
34
|
+
self._swCalprmAxis.append(axis)
|
|
35
|
+
|
|
36
|
+
def getSwCalprmAxises(self) -> List[SwCalprmAxis]:
|
|
37
|
+
return self._swCalprmAxis
|