Source code for RsSmw.Implementations.Source.Bb.Oneweb.Downlink.Mimo

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


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

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

	@property
	def apm(self):
		"""
		| Commands in total: 4
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_apm'):
			from .Apm import ApmCls
			self._apm = ApmCls(self._core, self._cmd_group)
		return self._apm

	# noinspection PyTypeChecker
[docs] def get_antenna(self) -> enums.OneWebSimAnt: """ ``[SOURce<HW>]:BB:ONEWeb:DL:MIMO:ANTenna`` \n Snippet: ``value: enums.OneWebSimAnt = driver.source.bb.oneweb.downlink.mimo.get_antenna()`` \n Queries the simulated antenna. :return: antenna: ANT1 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:MIMO:ANTenna?') return Conversions.str_to_scalar_enum(response, enums.OneWebSimAnt)
# noinspection PyTypeChecker
[docs] def get_configuration(self) -> enums.OneWebGlobMimoConf: """ ``[SOURce<HW>]:BB:ONEWeb:DL:MIMO:CONFiguration`` \n Snippet: ``value: enums.OneWebGlobMimoConf = driver.source.bb.oneweb.downlink.mimo.get_configuration()`` \n Queries the global MIMO configuration. :return: configuration: TX1 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ONEWeb:DL:MIMO:CONFiguration?') return Conversions.str_to_scalar_enum(response, enums.OneWebGlobMimoConf)
def clone(self) -> 'MimoCls': """ 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 = MimoCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group