Source code for RsSmw.Implementations.Source.Cemulation.Cdynamic

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


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

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

	@property
	def catalog(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_catalog'):
			from .Catalog import CatalogCls
			self._catalog = CatalogCls(self._core, self._cmd_group)
		return self._catalog

	@property
	def cweight(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_cweight'):
			from .Cweight import CweightCls
			self._cweight = CweightCls(self._core, self._cmd_group)
		return self._cweight

	@property
	def path(self):
		"""
		| Commands in total: 6
		| Subgroups: 6
		| Direct child commands: 0
		"""
		if not hasattr(self, '_path'):
			from .Path import PathCls
			self._path = PathCls(self._core, self._cmd_group)
		return self._path

[docs] def delete(self, filename: str) -> None: """ ``[SOURce<HW>]:CEMulation:CDYNamic:DELete`` \n Snippet: ``driver.source.cemulation.cdynamic.delete(filename = 'abc')`` \n No help available """ param = Conversions.value_to_quoted_str(filename) self._core.io.write(f'SOURce<HwInstance>:CEMulation:CDYNamic:DELete {param}')
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:CEMulation:CDYNamic:STATe`` \n Snippet: ``value: bool = driver.source.cemulation.cdynamic.get_state()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:CDYNamic:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce<HW>]:CEMulation:CDYNamic:STATe`` \n Snippet: ``driver.source.cemulation.cdynamic.set_state(state = False)`` \n No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:CEMulation:CDYNamic:STATe {param}')
def clone(self) -> 'CdynamicCls': """ 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 = CdynamicCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group