from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CopyCls:
"""
| Commands in total: 3
| Subgroups: 1
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("copy", 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
[docs]
def get_destination(self) -> int:
"""
``[SOURce<HW>]:CEMulation:COPY:DESTination`` \n
Snippet: ``value: int = driver.source.cemulation.copy.get_destination()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:COPY:DESTination?')
return Conversions.str_to_int(response)
[docs]
def set_destination(self, destination: int) -> None:
"""
``[SOURce<HW>]:CEMulation:COPY:DESTination`` \n
Snippet: ``driver.source.cemulation.copy.set_destination(destination = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(destination)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:COPY:DESTination {param}')
[docs]
def get_source(self) -> int:
"""
``[SOURce<HW>]:CEMulation:COPY:SOURce`` \n
Snippet: ``value: int = driver.source.cemulation.copy.get_source()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:COPY:SOURce?')
return Conversions.str_to_int(response)
[docs]
def set_source(self, source: int) -> None:
"""
``[SOURce<HW>]:CEMulation:COPY:SOURce`` \n
Snippet: ``driver.source.cemulation.copy.set_source(source = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(source)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:COPY:SOURce {param}')
def clone(self) -> 'CopyCls':
"""
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 = CopyCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group