Source code for RsSmw.Implementations.Source.Fsimulator.Mdelay

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MdelayCls:
	"""
	| Commands in total: 23
	| Subgroups: 5
	| Direct child commands: 1
	"""

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

	@property
	def all(self):
		"""
		| Commands in total: 2
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_all'):
			from .All import AllCls
			self._all = AllCls(self._core, self._cmd_group)
		return self._all

	@property
	def channel(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_channel'):
			from .Channel import ChannelCls
			self._channel = ChannelCls(self._core, self._cmd_group)
		return self._channel

	@property
	def del30(self):
		"""
		| Commands in total: 11
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_del30'):
			from .Del30 import Del30Cls
			self._del30 = Del30Cls(self._core, self._cmd_group)
		return self._del30

	@property
	def moving(self):
		"""
		| Commands in total: 5
		| Subgroups: 1
		| Direct child commands: 3
		"""
		if not hasattr(self, '_moving'):
			from .Moving import MovingCls
			self._moving = MovingCls(self._core, self._cmd_group)
		return self._moving

	@property
	def reference(self):
		"""
		| Commands in total: 3
		| Subgroups: 0
		| Direct child commands: 3
		"""
		if not hasattr(self, '_reference'):
			from .Reference import ReferenceCls
			self._reference = ReferenceCls(self._core, self._cmd_group)
		return self._reference

[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:FSIMulator:MDELay:STATe`` \n Snippet: ``value: bool = driver.source.fsimulator.mdelay.get_state()`` \n Enables the moving propagation fading configuration. Enable the paths and the fading simulator separately: SOURce1:FSIMulator:MDELay:MOVing | REFerence:STATe ON SOURce1:FSIMulator ON :return: state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:MDELay:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce<HW>]:FSIMulator:MDELay:STATe`` \n Snippet: ``driver.source.fsimulator.mdelay.set_state(state = False)`` \n Enables the moving propagation fading configuration. Enable the paths and the fading simulator separately: SOURce1:FSIMulator:MDELay:MOVing | REFerence:STATe ON SOURce1:FSIMulator ON :param state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:MDELay:STATe {param}')
def clone(self) -> 'MdelayCls': """ 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 = MdelayCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group