from typing import List
from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.Utilities import trim_str_response
from .... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DexchangeCls:
"""
| Commands in total: 12
| Subgroups: 3
| Direct child commands: 5
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("dexchange", core, parent)
@property
def execute(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_execute'):
from .Execute import ExecuteCls
self._execute = ExecuteCls(self._core, self._cmd_group)
return self._execute
@property
def template(self):
"""
| Commands in total: 5
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_template'):
from .Template import TemplateCls
self._template = TemplateCls(self._core, self._cmd_group)
return self._template
@property
def transaction(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_transaction'):
from .Transaction import TransactionCls
self._transaction = TransactionCls(self._core, self._cmd_group)
return self._transaction
[docs]
def get_catalog(self) -> List[str]:
"""
``SYSTem:DEXChange:CATalog`` \n
Snippet: ``value: List[str] = driver.system.dexchange.get_catalog()`` \n
No help available
"""
response = self._core.io.query_str('SYSTem:DEXChange:CATalog?')
return Conversions.str_to_str_list(response)
[docs]
def get_debug(self) -> bool:
"""
``SYSTem:DEXChange:DEBug`` \n
Snippet: ``value: bool = driver.system.dexchange.get_debug()`` \n
No help available
"""
response = self._core.io.query_str('SYSTem:DEXChange:DEBug?')
return Conversions.str_to_bool(response)
[docs]
def set_debug(self, debug: bool) -> None:
"""
``SYSTem:DEXChange:DEBug`` \n
Snippet: ``driver.system.dexchange.set_debug(debug = False)`` \n
No help available
"""
param = Conversions.bool_to_str(debug)
self._core.io.write(f'SYSTem:DEXChange:DEBug {param}')
[docs]
def delete(self, filename: str) -> None:
"""
``SYSTem:DEXChange:DELete`` \n
Snippet: ``driver.system.dexchange.delete(filename = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SYSTem:DEXChange:DELete {param}')
# noinspection PyTypeChecker
[docs]
def get_select(self) -> str:
"""
``SYSTem:DEXChange:SELect`` \n
Snippet: ``value: str = driver.system.dexchange.get_select()`` \n
No help available
"""
response = self._core.io.query_str('SYSTem:DEXChange:SELect?')
return trim_str_response(response)
[docs]
def set_select(self, filename: str) -> None:
"""
``SYSTem:DEXChange:SELect`` \n
Snippet: ``driver.system.dexchange.set_select(filename = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SYSTem:DEXChange:SELect {param}')
def clone(self) -> 'DexchangeCls':
"""
Clones the group by creating new object from it and its whole existing subgroups.
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group.
"""
new_group = DexchangeCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group