Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Search.Sync.Pattern

from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions
from .........Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PatternCls:
	"""
	| Commands in total: 3
	| Subgroups: 2
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("pattern", core, parent)

	@property
	def add(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_add'):
			from .Add import AddCls
			self._add = AddCls(self._core, self._cmd_group)
		return self._add

	@property
	def remove(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_remove'):
			from .Remove import RemoveCls
			self._remove = RemoveCls(self._core, self._cmd_group)
		return self._remove

[docs] def set(self, arg_0: str) -> None: """ ``[SENSe]:DDEMod:SEARch:SYNC:PATTern`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.search.sync.pattern.set(arg_0 = 'abc')`` \n No help available """ param = Conversions.value_to_quoted_str(arg_0) self._core.io.write(f'SENSe:DDEMod:SEARch:SYNC:PATTern {param}')
[docs] def get(self) -> str: """ ``[SENSe]:DDEMod:SEARch:SYNC:PATTern`` \n Snippet: ``value: str = driver.applications.k70Vsa.sense.ddemod.search.sync.pattern.get()`` \n No help available """ response = self._core.io.query_str(f'SENSe:DDEMod:SEARch:SYNC:PATTern?') return trim_str_response(response)
def clone(self) -> 'PatternCls': """ 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 = PatternCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group