Source code for RsSmw.Implementations.Source.Fsimulator.Scm

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ScmCls:
	"""
	| Commands in total: 53
	| Subgroups: 5
	| Direct child commands: 5
	"""

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

	@property
	def antenna(self):
		"""
		| Commands in total: 16
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_antenna'):
			from .Antenna import AntennaCls
			self._antenna = AntennaCls(self._core, self._cmd_group)
		return self._antenna

	@property
	def d3Mode(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_d3Mode'):
			from .D3Mode import D3ModeCls
			self._d3Mode = D3ModeCls(self._core, self._cmd_group)
		return self._d3Mode

	@property
	def los(self):
		"""
		| Commands in total: 12
		| Subgroups: 3
		| Direct child commands: 3
		"""
		if not hasattr(self, '_los'):
			from .Los import LosCls
			self._los = LosCls(self._core, self._cmd_group)
		return self._los

	@property
	def polarization(self):
		"""
		| Commands in total: 3
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_polarization'):
			from .Polarization import PolarizationCls
			self._polarization = PolarizationCls(self._core, self._cmd_group)
		return self._polarization

	@property
	def tap(self):
		"""
		| Commands in total: 16
		| Subgroups: 5
		| Direct child commands: 0
		"""
		if not hasattr(self, '_tap'):
			from .Tap import TapCls
			self._tap = TapCls(self._core, self._cmd_group)
		return self._tap

[docs] def get_dot(self) -> float: """ ``[SOURce<HW>]:FSIMulator:SCM:DOT`` \n Snippet: ``value: float = driver.source.fsimulator.scm.get_dot()`` \n Sets the direction of travel of the mobile station. :return: dir_of_travel: float Range: 0 to 359.9 """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:DOT?') return Conversions.str_to_float(response)
[docs] def set_dot(self, dir_of_travel: float) -> None: """ ``[SOURce<HW>]:FSIMulator:SCM:DOT`` \n Snippet: ``driver.source.fsimulator.scm.set_dot(dir_of_travel = 1.0)`` \n Sets the direction of travel of the mobile station. :param dir_of_travel: float Range: 0 to 359.9 """ param = Conversions.decimal_value_to_str(dir_of_travel) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:DOT {param}')
[docs] def get_phi(self) -> float: """ ``[SOURce<HW>]:FSIMulator:SCM:PHI`` \n Snippet: ``value: float = driver.source.fsimulator.scm.get_phi()`` \n Sets the travel azimuth angle. :return: scm_phi: float Range: 0 to 359.9 """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:PHI?') return Conversions.str_to_float(response)
[docs] def set_phi(self, scm_phi: float) -> None: """ ``[SOURce<HW>]:FSIMulator:SCM:PHI`` \n Snippet: ``driver.source.fsimulator.scm.set_phi(scm_phi = 1.0)`` \n Sets the travel azimuth angle. :param scm_phi: float Range: 0 to 359.9 """ param = Conversions.decimal_value_to_str(scm_phi) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:PHI {param}')
[docs] def get_sigma(self) -> float: """ ``[SOURce<HW>]:FSIMulator:SCM:SIGMa`` \n Snippet: ``value: float = driver.source.fsimulator.scm.get_sigma()`` \n Sets the lognormal shadow fading standard deviation, applied as a common parameter to the paths. :return: sigma: float Range: 0 to 20 """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:SIGMa?') return Conversions.str_to_float(response)
[docs] def set_sigma(self, sigma: float) -> None: """ ``[SOURce<HW>]:FSIMulator:SCM:SIGMa`` \n Snippet: ``driver.source.fsimulator.scm.set_sigma(sigma = 1.0)`` \n Sets the lognormal shadow fading standard deviation, applied as a common parameter to the paths. :param sigma: float Range: 0 to 20 """ param = Conversions.decimal_value_to_str(sigma) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:SIGMa {param}')
[docs] def get_speed(self) -> float: """ ``[SOURce<HW>]:FSIMulator:SCM:SPEed`` \n Snippet: ``value: float = driver.source.fsimulator.scm.get_speed()`` \n Sets the speed of the mobile station. :return: speed: float Range: 0 to 27778 """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:SPEed?') return Conversions.str_to_float(response)
[docs] def set_speed(self, speed: float) -> None: """ ``[SOURce<HW>]:FSIMulator:SCM:SPEed`` \n Snippet: ``driver.source.fsimulator.scm.set_speed(speed = 1.0)`` \n Sets the speed of the mobile station. :param speed: float Range: 0 to 27778 """ param = Conversions.decimal_value_to_str(speed) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:SPEed {param}')
[docs] def get_theta(self) -> float: """ ``[SOURce<HW>]:FSIMulator:SCM:THETa`` \n Snippet: ``value: float = driver.source.fsimulator.scm.get_theta()`` \n Sets the elevation angle. :return: scm_theta: float Range: 0 to 179.9 """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:THETa?') return Conversions.str_to_float(response)
[docs] def set_theta(self, scm_theta: float) -> None: """ ``[SOURce<HW>]:FSIMulator:SCM:THETa`` \n Snippet: ``driver.source.fsimulator.scm.set_theta(scm_theta = 1.0)`` \n Sets the elevation angle. :param scm_theta: float Range: 0 to 179.9 """ param = Conversions.decimal_value_to_str(scm_theta) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:THETa {param}')
def clone(self) -> 'ScmCls': """ 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 = ScmCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group