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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LosCls:
	"""
	| Commands in total: 12
	| Subgroups: 3
	| Direct child commands: 3
	"""

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

	@property
	def arrival(self):
		"""
		| Commands in total: 2
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_arrival'):
			from .Arrival import ArrivalCls
			self._arrival = ArrivalCls(self._core, self._cmd_group)
		return self._arrival

	@property
	def departure(self):
		"""
		| Commands in total: 2
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_departure'):
			from .Departure import DepartureCls
			self._departure = DepartureCls(self._core, self._cmd_group)
		return self._departure

	@property
	def random(self):
		"""
		| Commands in total: 5
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_random'):
			from .Random import RandomCls
			self._random = RandomCls(self._core, self._cmd_group)
		return self._random

[docs] def get_distance(self) -> float: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:DISTance`` \n Snippet: ``value: float = driver.source.fsimulator.scm.los.get_distance()`` \n Sets the distance between the base station (BS) and the user terminal (UT) . :return: los_3_ddistance: float Range: 0 to 1000 """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:LOS:DISTance?') return Conversions.str_to_float(response)
[docs] def set_distance(self, los_3_ddistance: float) -> None: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:DISTance`` \n Snippet: ``driver.source.fsimulator.scm.los.set_distance(los_3_ddistance = 1.0)`` \n Sets the distance between the base station (BS) and the user terminal (UT) . :param los_3_ddistance: float Range: 0 to 1000 """ param = Conversions.decimal_value_to_str(los_3_ddistance) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:LOS:DISTance {param}')
[docs] def get_kfactor(self) -> float: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:KFACtor`` \n Snippet: ``value: float = driver.source.fsimulator.scm.los.get_kfactor()`` \n Sets the ricean K factor. :return: factor: float Range: -50 to 0 """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:LOS:KFACtor?') return Conversions.str_to_float(response)
[docs] def set_kfactor(self, factor: float) -> None: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:KFACtor`` \n Snippet: ``driver.source.fsimulator.scm.los.set_kfactor(factor = 1.0)`` \n Sets the ricean K factor. :param factor: float Range: -50 to 0 """ param = Conversions.decimal_value_to_str(factor) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:LOS:KFACtor {param}')
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:STATe`` \n Snippet: ``value: bool = driver.source.fsimulator.scm.los.get_state()`` \n Adds a line-of-sight (LOS) component to the cluster. :return: state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:SCM:LOS:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce<HW>]:FSIMulator:SCM:LOS:STATe`` \n Snippet: ``driver.source.fsimulator.scm.los.set_state(state = False)`` \n Adds a line-of-sight (LOS) component to the cluster. :param state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:SCM:LOS:STATe {param}')
def clone(self) -> 'LosCls': """ 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 = LosCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group