py_canoe 3.0.4__py3-none-any.whl → 26.0.0__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.
- py_canoe/__init__.py +2 -1
- py_canoe/canoe.py +910 -0
- py_canoe/core/__init__.py +0 -0
- py_canoe/core/application.py +170 -0
- py_canoe/core/bus.py +301 -0
- py_canoe/core/capl.py +59 -0
- py_canoe/core/child_elements/__init__.py +0 -0
- py_canoe/core/child_elements/application_model.py +24 -0
- py_canoe/core/child_elements/application_model_file.py +21 -0
- py_canoe/core/child_elements/application_model_files.py +22 -0
- py_canoe/core/child_elements/application_model_setup.py +15 -0
- py_canoe/core/child_elements/application_models.py +22 -0
- py_canoe/core/child_elements/application_socket.py +11 -0
- py_canoe/core/child_elements/application_specific_module.py +24 -0
- py_canoe/core/child_elements/application_specific_modules.py +16 -0
- py_canoe/core/child_elements/audio_interface.py +28 -0
- py_canoe/core/child_elements/available_modules.py +22 -0
- py_canoe/core/child_elements/basic_module.py +19 -0
- py_canoe/core/child_elements/basic_modules.py +16 -0
- py_canoe/core/child_elements/c_libraries.py +28 -0
- py_canoe/core/child_elements/c_library.py +33 -0
- py_canoe/core/child_elements/can_controller.py +74 -0
- py_canoe/core/child_elements/capl_function.py +17 -0
- py_canoe/core/child_elements/ccp_setup.py +15 -0
- py_canoe/core/child_elements/channel.py +20 -0
- py_canoe/core/child_elements/channels.py +19 -0
- py_canoe/core/child_elements/communication_setup.py +23 -0
- py_canoe/core/child_elements/compile_result.py +22 -0
- py_canoe/core/child_elements/configured_channel.py +48 -0
- py_canoe/core/child_elements/configured_channels.py +21 -0
- py_canoe/core/child_elements/configured_module.py +82 -0
- py_canoe/core/child_elements/configured_modules.py +61 -0
- py_canoe/core/child_elements/connected_modules.py +14 -0
- py_canoe/core/child_elements/data_source.py +42 -0
- py_canoe/core/child_elements/data_source_file.py +21 -0
- py_canoe/core/child_elements/data_source_files.py +22 -0
- py_canoe/core/child_elements/data_source_issue.py +22 -0
- py_canoe/core/child_elements/data_source_issues.py +16 -0
- py_canoe/core/child_elements/data_source_setup.py +17 -0
- py_canoe/core/child_elements/data_sources.py +27 -0
- py_canoe/core/child_elements/database_setup.py +62 -0
- py_canoe/core/child_elements/device.py +34 -0
- py_canoe/core/child_elements/devices.py +13 -0
- py_canoe/core/child_elements/diagnostic.py +22 -0
- py_canoe/core/child_elements/diagnostic_request.py +59 -0
- py_canoe/core/child_elements/diagnostic_response.py +34 -0
- py_canoe/core/child_elements/diagnostic_responses.py +13 -0
- py_canoe/core/child_elements/diagnostics_setup.py +254 -0
- py_canoe/core/child_elements/distributed_mode.py +74 -0
- py_canoe/core/child_elements/encoding.py +27 -0
- py_canoe/core/child_elements/encodings.py +13 -0
- py_canoe/core/child_elements/environment_array.py +13 -0
- py_canoe/core/child_elements/environment_group.py +22 -0
- py_canoe/core/child_elements/environment_info.py +14 -0
- py_canoe/core/child_elements/environment_variable.py +55 -0
- py_canoe/core/child_elements/fdx_files.py +50 -0
- py_canoe/core/child_elements/file_group_data_source.py +17 -0
- py_canoe/core/child_elements/general_setup.py +66 -0
- py_canoe/core/child_elements/macros_setup.py +52 -0
- py_canoe/core/child_elements/mc_ecus.py +428 -0
- py_canoe/core/child_elements/measurement_setup.py +269 -0
- py_canoe/core/child_elements/modules.py +87 -0
- py_canoe/core/child_elements/most_disassembler.py +21 -0
- py_canoe/core/child_elements/most_network_interface.py +4 -0
- py_canoe/core/child_elements/namespace.py +21 -0
- py_canoe/core/child_elements/namespaces.py +19 -0
- py_canoe/core/child_elements/network.py +18 -0
- py_canoe/core/child_elements/network_adapters.py +13 -0
- py_canoe/core/child_elements/nodes.py +119 -0
- py_canoe/core/child_elements/open_configuration_result.py +0 -0
- py_canoe/core/child_elements/panel_setup.py +97 -0
- py_canoe/core/child_elements/participant.py +17 -0
- py_canoe/core/child_elements/participants.py +22 -0
- py_canoe/core/child_elements/ports.py +81 -0
- py_canoe/core/child_elements/replay_collection.py +56 -0
- py_canoe/core/child_elements/security_configuration.py +20 -0
- py_canoe/core/child_elements/security_setup.py +31 -0
- py_canoe/core/child_elements/signals.py +39 -0
- py_canoe/core/child_elements/simulation_setup.py +0 -0
- py_canoe/core/child_elements/single_file_data_source.py +13 -0
- py_canoe/core/child_elements/snippet_setup.py +68 -0
- py_canoe/core/child_elements/standalone_mode.py +0 -0
- py_canoe/core/child_elements/start_value_list.py +0 -0
- py_canoe/core/child_elements/symbol_mappings.py +0 -0
- py_canoe/core/child_elements/tcp_ip_stack_setting.py +0 -0
- py_canoe/core/child_elements/test_configurations.py +0 -0
- py_canoe/core/child_elements/test_environment.py +64 -0
- py_canoe/core/child_elements/test_environments.py +26 -0
- py_canoe/core/child_elements/test_module.py +213 -0
- py_canoe/core/child_elements/test_modules.py +23 -0
- py_canoe/core/child_elements/test_setup.py +16 -0
- py_canoe/core/child_elements/test_setup_folder_ext.py +36 -0
- py_canoe/core/child_elements/test_setup_folders.py +25 -0
- py_canoe/core/child_elements/user_files.py +0 -0
- py_canoe/core/child_elements/variable.py +144 -0
- py_canoe/core/child_elements/variable_events.py +14 -0
- py_canoe/core/child_elements/variables.py +29 -0
- py_canoe/core/child_elements/variables_file.py +15 -0
- py_canoe/core/child_elements/variables_files.py +19 -0
- py_canoe/core/child_elements/visual_sequence_setup.py +46 -0
- py_canoe/core/child_elements/vt_system.py +83 -0
- py_canoe/core/child_elements/vtt_sut_import_result.py +21 -0
- py_canoe/core/child_elements/write.py +71 -0
- py_canoe/core/child_elements/xcp_setup.py +12 -0
- py_canoe/core/configuration.py +509 -0
- py_canoe/core/environment.py +59 -0
- py_canoe/core/measurement.py +149 -0
- py_canoe/core/networks.py +103 -0
- py_canoe/core/performance.py +21 -0
- py_canoe/core/simulation.py +53 -0
- py_canoe/core/system.py +164 -0
- py_canoe/core/ui.py +53 -0
- py_canoe/core/version.py +54 -0
- py_canoe/helpers/__init__.py +0 -0
- py_canoe/helpers/common.py +78 -0
- {py_canoe-3.0.4.dist-info → py_canoe-26.0.0.dist-info}/METADATA +332 -322
- py_canoe-26.0.0.dist-info/RECORD +118 -0
- py_canoe-26.0.0.dist-info/WHEEL +4 -0
- py_canoe/py_canoe.py +0 -2586
- py_canoe/py_canoe_utils/logging_collection.py +0 -345
- py_canoe/py_canoe_utils/py_canoe_logger.py +0 -29
- py_canoe-3.0.4.dist-info/LICENSE +0 -21
- py_canoe-3.0.4.dist-info/RECORD +0 -8
- py_canoe-3.0.4.dist-info/WHEEL +0 -4
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import win32com.client
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Modules:
|
|
5
|
+
"""The Modules object represents the modules of a test module in CANoe's test setup or a node in CANoe's Simulation Setup / System and Communication Setup."""
|
|
6
|
+
def __init__(self, modules_com_obj):
|
|
7
|
+
self.com_object = modules_com_obj
|
|
8
|
+
|
|
9
|
+
@property
|
|
10
|
+
def count(self) -> int:
|
|
11
|
+
return self.com_object.Count
|
|
12
|
+
|
|
13
|
+
def item(self, index: int) -> 'Module':
|
|
14
|
+
return Module(self.com_object.Item(index))
|
|
15
|
+
|
|
16
|
+
def add(self, full_name: str) -> 'Module':
|
|
17
|
+
return Module(self.com_object.Add(full_name))
|
|
18
|
+
|
|
19
|
+
def remove(self, index: int):
|
|
20
|
+
self.com_object.Remove(index)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class Module:
|
|
24
|
+
"""The Module object represents the modules within a test module in CANoe's test setup or a »node of the Simulation Setup / System and Communication Setup of the CANoe application."""
|
|
25
|
+
def __init__(self, module_com_obj):
|
|
26
|
+
self.com_object = win32com.client.Dispatch(module_com_obj)
|
|
27
|
+
|
|
28
|
+
@property
|
|
29
|
+
def enabled(self) -> bool:
|
|
30
|
+
return self.com_object.Enabled
|
|
31
|
+
|
|
32
|
+
@enabled.setter
|
|
33
|
+
def enabled(self, value: bool):
|
|
34
|
+
self.com_object.Enabled = value
|
|
35
|
+
|
|
36
|
+
@property
|
|
37
|
+
def full_name(self) -> str:
|
|
38
|
+
return self.com_object.FullName
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def name(self) -> str:
|
|
42
|
+
return self.com_object.Name
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def path(self) -> str:
|
|
46
|
+
return self.com_object.Path
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def references(self) -> 'References':
|
|
50
|
+
return References(self.com_object.References)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class References:
|
|
54
|
+
"""The References object represents assemblies that are used by a .NET test library."""
|
|
55
|
+
def __init__(self, references_com_obj):
|
|
56
|
+
self.com_object = references_com_obj
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def count(self) -> int:
|
|
60
|
+
return self.com_object.Count
|
|
61
|
+
|
|
62
|
+
def item(self, index: int) -> 'Reference':
|
|
63
|
+
return Reference(self.com_object.Item(index))
|
|
64
|
+
|
|
65
|
+
def add(self, full_name: str) -> 'Reference':
|
|
66
|
+
return Reference(self.com_object.Add(full_name))
|
|
67
|
+
|
|
68
|
+
def remove(self, index: int):
|
|
69
|
+
self.com_object.Remove(index)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class Reference:
|
|
73
|
+
"""The Reference object represents a component that is used by a .NET test library module."""
|
|
74
|
+
def __init__(self, reference_com_obj):
|
|
75
|
+
self.com_object = win32com.client.Dispatch(reference_com_obj)
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def full_name(self) -> str:
|
|
79
|
+
return self.com_object.FullName
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def name(self) -> str:
|
|
83
|
+
return self.com_object.Name
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def path(self) -> str:
|
|
87
|
+
return self.com_object.Path
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
class MostDisassembler:
|
|
2
|
+
def __init__(self, com_object):
|
|
3
|
+
self.com_object = com_object
|
|
4
|
+
|
|
5
|
+
def symbolic_message_id_components(self, f_block_id: int, instance_id: int, function_id: int, op_type_id: int) -> int:
|
|
6
|
+
return self.com_object.SymbolicMessageIDComponents(f_block_id, instance_id, function_id, op_type_id)
|
|
7
|
+
|
|
8
|
+
def symbolic_parameter_list1(self, data_length: int, data_array: bytearray, max_params: int = 0) -> tuple:
|
|
9
|
+
return self.com_object.SymbolicParameterList1(data_length, data_array, max_params)
|
|
10
|
+
|
|
11
|
+
def symbolic_parameter_list2(self, f_block_id: int, instance_id: int, function_id: int, op_type_id: int, data_length: int, data_array: bytearray, max_params: int = 0) -> tuple:
|
|
12
|
+
return self.com_object.SymbolicParameterList2(f_block_id, instance_id, function_id, op_type_id, data_length, data_array, max_params)
|
|
13
|
+
|
|
14
|
+
def this_message_id_components(self, f_block_id: int, instance_id: int, function_id: int, op_type_id: int) -> int:
|
|
15
|
+
return self.com_object.ThisMessageIDComponents(f_block_id, instance_id, function_id, op_type_id)
|
|
16
|
+
|
|
17
|
+
def this_symbolic_message_id_components(self, f_block_name: str, function_name: str, op_type_name: str) -> int:
|
|
18
|
+
return self.com_object.ThisSymbolicMessageIDComponents(f_block_name, function_name, op_type_name)
|
|
19
|
+
|
|
20
|
+
def this_symbolic_parameter_list(self, max_params: int = 0) -> tuple:
|
|
21
|
+
return self.com_object.ThisSymbolicParameterList(max_params)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from py_canoe.core.child_elements.variables import Variables
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Namespace:
|
|
5
|
+
def __init__(self, com_object):
|
|
6
|
+
self.com_object = com_object
|
|
7
|
+
|
|
8
|
+
@property
|
|
9
|
+
def comment(self):
|
|
10
|
+
return self.com_object.Comment
|
|
11
|
+
|
|
12
|
+
@property
|
|
13
|
+
def name(self):
|
|
14
|
+
return self.com_object.Name
|
|
15
|
+
|
|
16
|
+
def variables(self) -> 'Variables':
|
|
17
|
+
return Variables(self.com_object.Variables)
|
|
18
|
+
|
|
19
|
+
def namespaces(self):
|
|
20
|
+
from py_canoe.core.child_elements.namespaces import Namespaces
|
|
21
|
+
return Namespaces(self.com_object.Namespaces)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from py_canoe.core.child_elements.namespace import Namespace
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Namespaces:
|
|
5
|
+
def __init__(self, com_object):
|
|
6
|
+
self.com_object = com_object
|
|
7
|
+
|
|
8
|
+
@property
|
|
9
|
+
def count(self):
|
|
10
|
+
return self.com_object.Count
|
|
11
|
+
|
|
12
|
+
def item(self, index: int) -> 'Namespace':
|
|
13
|
+
return Namespace(self.com_object.Item(index))
|
|
14
|
+
|
|
15
|
+
def add(self, name: str):
|
|
16
|
+
return self.com_object.Add(name)
|
|
17
|
+
|
|
18
|
+
def remove(self, variable):
|
|
19
|
+
return self.com_object.Remove(variable)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from py_canoe.core.child_elements.devices import Devices
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Network:
|
|
5
|
+
def __init__(self, com_object):
|
|
6
|
+
self.com_object = com_object
|
|
7
|
+
|
|
8
|
+
@property
|
|
9
|
+
def bus_type(self) -> int:
|
|
10
|
+
return self.com_object.BusType
|
|
11
|
+
|
|
12
|
+
@property
|
|
13
|
+
def devices(self) -> Devices:
|
|
14
|
+
return Devices(self.com_object.Devices)
|
|
15
|
+
|
|
16
|
+
@property
|
|
17
|
+
def name(self) -> str:
|
|
18
|
+
return self.com_object.Name
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import win32com.client
|
|
2
|
+
|
|
3
|
+
class NetworkAdapters:
|
|
4
|
+
"""Represents the collection of available network adapters for VT System communication."""
|
|
5
|
+
def __init__(self, network_adapters_com_obj):
|
|
6
|
+
self.com_object = win32com.client.Dispatch(network_adapters_com_obj)
|
|
7
|
+
|
|
8
|
+
@property
|
|
9
|
+
def count(self) -> int:
|
|
10
|
+
return self.com_object.Count
|
|
11
|
+
|
|
12
|
+
def item(self, index: int):
|
|
13
|
+
return self.com_object.Item(index) # Returns a NetworkAdapter object
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import win32com.client
|
|
2
|
+
|
|
3
|
+
from py_canoe.core.child_elements.modules import Modules
|
|
4
|
+
from py_canoe.core.child_elements.signals import Signals
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Nodes:
|
|
8
|
+
"""The Nodes object represents all nodes of the Simulation Setup / System and Communication Setup of the CANoe application."""
|
|
9
|
+
def __init__(self, nodes_com_obj):
|
|
10
|
+
self.com_object = nodes_com_obj
|
|
11
|
+
|
|
12
|
+
@property
|
|
13
|
+
def count(self) -> int:
|
|
14
|
+
return self.com_object.Count
|
|
15
|
+
|
|
16
|
+
def item(self, index: int) -> 'Node':
|
|
17
|
+
return Node(self.com_object.Item(index))
|
|
18
|
+
|
|
19
|
+
def add(self, name: str) -> 'Node':
|
|
20
|
+
return Node(self.com_object.Add(name))
|
|
21
|
+
|
|
22
|
+
def add_test_module_ex(self, name:str, type: int) -> 'Node':
|
|
23
|
+
return Node(self.com_object.AddTestModuleEx(name, type))
|
|
24
|
+
|
|
25
|
+
def add_with_title(self, name: str) -> 'Node':
|
|
26
|
+
return Node(self.com_object.AddWithTitle(name))
|
|
27
|
+
|
|
28
|
+
def add_test_module(self, name: str) -> 'Node':
|
|
29
|
+
return Node(self.com_object.AddTestModule(name))
|
|
30
|
+
|
|
31
|
+
def remove(self, index: int):
|
|
32
|
+
self.com_object.Remove(index)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class Node:
|
|
36
|
+
"""The Node object represents a node of the Simulation Setup / System and Communication Setup of the CANoe application."""
|
|
37
|
+
def __init__(self, node_com_obj):
|
|
38
|
+
self.com_object = win32com.client.Dispatch(node_com_obj)
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def active(self) -> bool:
|
|
42
|
+
return self.com_object.Active
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def full_name(self) -> str:
|
|
46
|
+
return self.com_object.FullName
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def inputs(self) -> 'Signals':
|
|
50
|
+
return Signals(self.com_object.Inputs)
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def is_gateway(self) -> bool:
|
|
54
|
+
return self.com_object.IsGateway
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def modules(self) -> 'Modules':
|
|
58
|
+
return Modules(self.com_object.Modules)
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def name(self) -> str:
|
|
62
|
+
return self.com_object.Name
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def outputs(self) -> 'Signals':
|
|
66
|
+
return Signals(self.com_object.Outputs)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def path(self) -> str:
|
|
70
|
+
return self.com_object.Path
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def port_creation(self) -> int:
|
|
74
|
+
return self.com_object.PortCreation
|
|
75
|
+
|
|
76
|
+
@port_creation.setter
|
|
77
|
+
def port_creation(self, value: int):
|
|
78
|
+
self.com_object.PortCreation = value
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def start_delay(self) -> int:
|
|
82
|
+
return self.com_object.StartDelay
|
|
83
|
+
|
|
84
|
+
@start_delay.setter
|
|
85
|
+
def start_delay(self, value: int):
|
|
86
|
+
self.com_object.StartDelay = value
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def start_delay_active(self) -> bool:
|
|
90
|
+
return self.com_object.StartDelayActive
|
|
91
|
+
|
|
92
|
+
@start_delay_active.setter
|
|
93
|
+
def start_delay_active(self, value: bool):
|
|
94
|
+
self.com_object.StartDelayActive = value
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
def start_delay_from_db(self) -> bool:
|
|
98
|
+
return self.com_object.StartDelayFromDb
|
|
99
|
+
|
|
100
|
+
@start_delay_from_db.setter
|
|
101
|
+
def start_delay_from_db(self, value: bool):
|
|
102
|
+
self.com_object.StartDelayFromDb = value
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def tcp_ip_stack_setting(self):
|
|
106
|
+
return self.com_object.TcpIpStackSetting
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def test_module(self) -> bool:
|
|
110
|
+
return self.com_object.TestModule
|
|
111
|
+
|
|
112
|
+
def attach_bus(self, bus_com_obj):
|
|
113
|
+
self.com_object.AttachBus(bus_com_obj)
|
|
114
|
+
|
|
115
|
+
def detach_bus(self, bus_com_obj):
|
|
116
|
+
self.com_object.DetachBus(bus_com_obj)
|
|
117
|
+
|
|
118
|
+
def is_bus_attached(self, bus_com_obj) -> bool:
|
|
119
|
+
return self.com_object.IsBusAttached(bus_com_obj)
|
|
File without changes
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import win32com.client
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class PanelSetup:
|
|
5
|
+
"""
|
|
6
|
+
The PanelSetup object represents the panel settings of a CANoe configuration.
|
|
7
|
+
"""
|
|
8
|
+
def __init__(self, com_object) -> None:
|
|
9
|
+
self.com_object = com_object
|
|
10
|
+
|
|
11
|
+
def panels(self, type: int) -> 'Panels':
|
|
12
|
+
return Panels(self.com_object.Panels(type))
|
|
13
|
+
|
|
14
|
+
def save_positions(self):
|
|
15
|
+
self.com_object.SavePositions()
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class Panels:
|
|
19
|
+
def __init__(self, com_object) -> None:
|
|
20
|
+
self.com_object = com_object
|
|
21
|
+
|
|
22
|
+
@property
|
|
23
|
+
def count(self) -> int:
|
|
24
|
+
return self.com_object.Count
|
|
25
|
+
|
|
26
|
+
def item(self, index: int) -> 'Panel':
|
|
27
|
+
return Panel(self.com_object.Item(index))
|
|
28
|
+
|
|
29
|
+
def add(self, type: int) -> 'Panel':
|
|
30
|
+
return Panel(self.com_object.Add(type))
|
|
31
|
+
|
|
32
|
+
def remove(self, index: int):
|
|
33
|
+
self.com_object.Remove(index)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class Panel:
|
|
37
|
+
def __init__(self, com_object) -> None:
|
|
38
|
+
self.com_object = win32com.client.Dispatch(com_object)
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def full_name(self) -> str:
|
|
42
|
+
return self.com_object.FullName
|
|
43
|
+
|
|
44
|
+
@full_name.setter
|
|
45
|
+
def full_name(self, full_name: str):
|
|
46
|
+
self.com_object.FullName = full_name
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def height(self) -> int:
|
|
50
|
+
return self.com_object.Height
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def left(self) -> int:
|
|
54
|
+
return self.com_object.Left
|
|
55
|
+
|
|
56
|
+
@left.setter
|
|
57
|
+
def left(self, value: int):
|
|
58
|
+
self.com_object.Left = value
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def name(self) -> str:
|
|
62
|
+
return self.com_object.Name
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def orphaned(self) -> bool:
|
|
66
|
+
return self.com_object.Orphaned
|
|
67
|
+
@property
|
|
68
|
+
def path(self) -> str:
|
|
69
|
+
return self.com_object.Path
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def top(self) -> int:
|
|
73
|
+
return self.com_object.Top
|
|
74
|
+
|
|
75
|
+
@top.setter
|
|
76
|
+
def top(self, value: int):
|
|
77
|
+
self.com_object.Top = value
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def visible(self) -> bool:
|
|
81
|
+
return self.com_object.Visible
|
|
82
|
+
|
|
83
|
+
@visible.setter
|
|
84
|
+
def visible(self, value: bool):
|
|
85
|
+
self.com_object.Visible = value
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def width(self) -> int:
|
|
89
|
+
return self.com_object.Width
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def window_type(self) -> int:
|
|
93
|
+
return self.com_object.WindowType
|
|
94
|
+
|
|
95
|
+
@window_type.setter
|
|
96
|
+
def window_type(self, value: int):
|
|
97
|
+
self.com_object.WindowType = value
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import win32com.client
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Participant:
|
|
5
|
+
"""
|
|
6
|
+
Represents a single participant associated with an ApplicationModel.
|
|
7
|
+
"""
|
|
8
|
+
def __init__(self, com_object) -> None:
|
|
9
|
+
self.com_object = win32com.client.Dispatch(com_object)
|
|
10
|
+
|
|
11
|
+
@property
|
|
12
|
+
def name(self) -> str:
|
|
13
|
+
return self.com_object.Name
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def path(self) -> str:
|
|
17
|
+
return self.com_object.Path
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from py_canoe.core.child_elements.participant import Participant
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Participants:
|
|
5
|
+
"""
|
|
6
|
+
Collection of Participant objects associated with an ApplicationModel.
|
|
7
|
+
"""
|
|
8
|
+
def __init__(self, com_object) -> None:
|
|
9
|
+
self.com_object = com_object
|
|
10
|
+
|
|
11
|
+
@property
|
|
12
|
+
def count(self) -> int:
|
|
13
|
+
return self.com_object.Count
|
|
14
|
+
|
|
15
|
+
def item(self, index: int) -> 'Participant':
|
|
16
|
+
return Participant(self.com_object.Item(index))
|
|
17
|
+
|
|
18
|
+
def add(self, participant_path: str) -> 'Participant':
|
|
19
|
+
return Participant(self.com_object.Add(participant_path))
|
|
20
|
+
|
|
21
|
+
def remove(self, index: int):
|
|
22
|
+
self.com_object.Remove(index)
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import win32com.client
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Ports:
|
|
5
|
+
"""The Ports object represents all ports of a specific Ethernet bus in Network-based Access mode as a collection."""
|
|
6
|
+
def __init__(self, ports_com_obj):
|
|
7
|
+
self.com_object = win32com.client.Dispatch(ports_com_obj)
|
|
8
|
+
|
|
9
|
+
@property
|
|
10
|
+
def count(self) -> int:
|
|
11
|
+
return self.com_object.Count
|
|
12
|
+
|
|
13
|
+
@property
|
|
14
|
+
def is_port_based_config(self) -> bool:
|
|
15
|
+
return self.com_object.IsPortBasedConfig
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def is_switched_network(self) -> bool:
|
|
19
|
+
return self.com_object.IsSwitchedNetwork
|
|
20
|
+
|
|
21
|
+
def item(self, index: int) -> 'Port':
|
|
22
|
+
return Port(self.com_object.Item(index))
|
|
23
|
+
|
|
24
|
+
@property
|
|
25
|
+
def network_name(self) -> str:
|
|
26
|
+
return self.com_object.NetworkName
|
|
27
|
+
|
|
28
|
+
@property
|
|
29
|
+
def ports_are_simulated(self) -> bool:
|
|
30
|
+
return self.com_object.PortsAreSimulated
|
|
31
|
+
|
|
32
|
+
@ports_are_simulated.getter
|
|
33
|
+
def ports_are_simulated(self, value: bool):
|
|
34
|
+
self.com_object.PortsAreSimulated = value
|
|
35
|
+
|
|
36
|
+
def add(self, port_name: str, segment_name: str) -> 'Port':
|
|
37
|
+
return Port(self.com_object.Add(port_name, segment_name))
|
|
38
|
+
|
|
39
|
+
def add_mp(self, port_name: str) -> 'Port':
|
|
40
|
+
return Port(self.com_object.AddMP(port_name))
|
|
41
|
+
|
|
42
|
+
def remove(self, index: int):
|
|
43
|
+
self.com_object.Remove(index)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class Port:
|
|
47
|
+
"""The Port object represents a specific port of a CANoe configuration."""
|
|
48
|
+
def __init__(self, port_com_obj):
|
|
49
|
+
self.com_object = win32com.client.Dispatch(port_com_obj)
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def is_active(self) -> bool:
|
|
53
|
+
return self.com_object.IsActive
|
|
54
|
+
|
|
55
|
+
@is_active.setter
|
|
56
|
+
def is_active(self, value: bool):
|
|
57
|
+
self.com_object.IsActive = value
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def is_simulated(self) -> bool:
|
|
61
|
+
return self.com_object.IsSimulated
|
|
62
|
+
|
|
63
|
+
@is_simulated.setter
|
|
64
|
+
def is_simulated(self, value: bool):
|
|
65
|
+
self.com_object.IsSimulated = value
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def name(self) -> str:
|
|
69
|
+
return self.com_object.Name
|
|
70
|
+
|
|
71
|
+
@name.setter
|
|
72
|
+
def name(self, value: str):
|
|
73
|
+
self.com_object.Name = value
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def segment_name(self) -> str:
|
|
77
|
+
return self.com_object.SegmentName
|
|
78
|
+
|
|
79
|
+
@segment_name.setter
|
|
80
|
+
def segment_name(self, value: str):
|
|
81
|
+
self.com_object.SegmentName = value
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import win32com.client
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ReplayCollection:
|
|
5
|
+
"""The ReplayCollection object represents the Replay Blocks of the CANoe application."""
|
|
6
|
+
def __init__(self, replay_collection_com_obj):
|
|
7
|
+
self.com_object = replay_collection_com_obj
|
|
8
|
+
|
|
9
|
+
@property
|
|
10
|
+
def count(self) -> int:
|
|
11
|
+
return self.com_object.Count
|
|
12
|
+
|
|
13
|
+
def item(self, index: int) -> 'ReplayBlock':
|
|
14
|
+
return ReplayBlock(self.com_object.Item(index))
|
|
15
|
+
|
|
16
|
+
def add(self, name: str) -> 'ReplayBlock':
|
|
17
|
+
return ReplayBlock(self.com_object.Add(name))
|
|
18
|
+
|
|
19
|
+
def remove(self, index: int):
|
|
20
|
+
self.com_object.Remove(index)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ReplayBlock:
|
|
24
|
+
"""The ReplayBlock object represents a Replay Block of the CANoe application."""
|
|
25
|
+
def __init__(self, replay_block_com_obj):
|
|
26
|
+
self.com_object = win32com.client.Dispatch(replay_block_com_obj)
|
|
27
|
+
|
|
28
|
+
@property
|
|
29
|
+
def enabled(self) -> bool:
|
|
30
|
+
return self.com_object.Enabled
|
|
31
|
+
|
|
32
|
+
@enabled.setter
|
|
33
|
+
def enabled(self, value: bool):
|
|
34
|
+
self.com_object.Enabled = value
|
|
35
|
+
|
|
36
|
+
@property
|
|
37
|
+
def name(self) -> str:
|
|
38
|
+
return self.com_object.Name
|
|
39
|
+
|
|
40
|
+
@name.setter
|
|
41
|
+
def name(self, value: str):
|
|
42
|
+
self.com_object.Name = value
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def path(self) -> str:
|
|
46
|
+
return self.com_object.Path
|
|
47
|
+
|
|
48
|
+
@path.setter
|
|
49
|
+
def path(self, value: str):
|
|
50
|
+
self.com_object.Path = value
|
|
51
|
+
|
|
52
|
+
def start(self):
|
|
53
|
+
self.com_object.Start()
|
|
54
|
+
|
|
55
|
+
def stop(self):
|
|
56
|
+
self.com_object.Stop()
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
class SecurityConfiguration:
|
|
2
|
+
"""The SecurityConfiguration object represents a security profile assignment to a network, TCP stack or observer."""
|
|
3
|
+
def __init__(self, security_configuration_com_obj):
|
|
4
|
+
self.com_object = security_configuration_com_obj
|
|
5
|
+
|
|
6
|
+
@property
|
|
7
|
+
def security_active(self) -> bool:
|
|
8
|
+
return self.com_object.SecurityActive
|
|
9
|
+
|
|
10
|
+
@security_active.setter
|
|
11
|
+
def security_active(self, value: bool):
|
|
12
|
+
self.com_object.SecurityActive = value
|
|
13
|
+
|
|
14
|
+
@property
|
|
15
|
+
def security_profile(self) -> int:
|
|
16
|
+
return self.com_object.SecurityProfile
|
|
17
|
+
|
|
18
|
+
@security_profile.setter
|
|
19
|
+
def security_profile(self, value: int):
|
|
20
|
+
self.com_object.SecurityProfile = value
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import win32com.client
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class SecuritySetup:
|
|
5
|
+
def __init__(self, com_object):
|
|
6
|
+
self.com_object = com_object
|
|
7
|
+
|
|
8
|
+
@property
|
|
9
|
+
def tls_observer_security_configuration(self) -> 'SecurityConfiguration':
|
|
10
|
+
return SecurityConfiguration(self.com_object.TLSObserverSecurityConfiguration)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class SecurityConfiguration:
|
|
14
|
+
def __init__(self, com_object):
|
|
15
|
+
self.com_object = com_object
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def security_active(self) -> bool:
|
|
19
|
+
return self.com_object.SecurityActive
|
|
20
|
+
|
|
21
|
+
@security_active.setter
|
|
22
|
+
def security_active(self, value: bool):
|
|
23
|
+
self.com_object.SecurityActive = value
|
|
24
|
+
|
|
25
|
+
@property
|
|
26
|
+
def security_profile(self) -> str:
|
|
27
|
+
return self.com_object.SecurityProfile
|
|
28
|
+
|
|
29
|
+
@security_profile.setter
|
|
30
|
+
def security_profile(self, value: str):
|
|
31
|
+
self.com_object.SecurityProfile = value
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from typing import Union
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Signals:
|
|
5
|
+
def __init__(self, signals_com_object):
|
|
6
|
+
self.com_object = signals_com_object
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Signal:
|
|
10
|
+
def __init__(self, signal_com_object):
|
|
11
|
+
self.com_object = signal_com_object
|
|
12
|
+
|
|
13
|
+
@property
|
|
14
|
+
def full_name(self) -> str:
|
|
15
|
+
return self.com_object.FullName
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def is_online(self) -> bool:
|
|
19
|
+
return self.com_object.IsOnline
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def raw_value(self) -> int:
|
|
23
|
+
return self.com_object.RawValue
|
|
24
|
+
|
|
25
|
+
@raw_value.setter
|
|
26
|
+
def raw_value(self, value: int):
|
|
27
|
+
self.com_object.RawValue = value
|
|
28
|
+
|
|
29
|
+
@property
|
|
30
|
+
def state(self) -> int:
|
|
31
|
+
return self.com_object.State
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def value(self) -> Union[int, float]:
|
|
35
|
+
return self.com_object.Value
|
|
36
|
+
|
|
37
|
+
@value.setter
|
|
38
|
+
def value(self, value: Union[int, float]):
|
|
39
|
+
self.com_object.Value = value
|
|
File without changes
|