Source code for RsSmw.Implementations.Source.Bb.Tdscdma.Copy

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums


# 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

	# noinspection PyTypeChecker
[docs] def get_destination(self) -> enums.NumberA: """ ``[SOURce<HW>]:BB:TDSCdma:COPY:DESTination`` \n Snippet: ``value: enums.NumberA = driver.source.bb.tdscdma.copy.get_destination()`` \n Selects the cell whose settings are to be overwritten. :return: destination: 1 | 2| 3 | 4 Range: 1 to 4 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:TDSCdma:COPY:DESTination?') return Conversions.str_to_scalar_enum(response, enums.NumberA)
[docs] def set_destination(self, destination: enums.NumberA) -> None: """ ``[SOURce<HW>]:BB:TDSCdma:COPY:DESTination`` \n Snippet: ``driver.source.bb.tdscdma.copy.set_destination(destination = enums.NumberA._1)`` \n Selects the cell whose settings are to be overwritten. :param destination: 1 | 2| 3 | 4 Range: 1 to 4 """ param = Conversions.enum_scalar_to_str(destination, enums.NumberA) self._core.io.write(f'SOURce<HwInstance>:BB:TDSCdma:COPY:DESTination {param}')
# noinspection PyTypeChecker
[docs] def get_source(self) -> enums.NumberA: """ ``[SOURce<HW>]:BB:TDSCdma:COPY:SOURce`` \n Snippet: ``value: enums.NumberA = driver.source.bb.tdscdma.copy.get_source()`` \n Selects the cell whose settings are to be copied. :return: source: 1 | 2| 3 | 4 Range: 1 to 4 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:TDSCdma:COPY:SOURce?') return Conversions.str_to_scalar_enum(response, enums.NumberA)
[docs] def set_source(self, source: enums.NumberA) -> None: """ ``[SOURce<HW>]:BB:TDSCdma:COPY:SOURce`` \n Snippet: ``driver.source.bb.tdscdma.copy.set_source(source = enums.NumberA._1)`` \n Selects the cell whose settings are to be copied. :param source: 1 | 2| 3 | 4 Range: 1 to 4 """ param = Conversions.enum_scalar_to_str(source, enums.NumberA) self._core.io.write(f'SOURce<HwInstance>:BB:TDSCdma: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