Source code for RsSmw.Implementations.Source.Bb.Eutra.Downlink.Laa

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LaaCls:
	"""
	| Commands in total: 9
	| Subgroups: 1
	| Direct child commands: 1
	"""

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

	@property
	def cell(self):
		"""
		| Commands in total: 8
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_cell'):
			from .Cell import CellCls
			self._cell = CellCls(self._core, self._cmd_group)
		return self._cell

	# noinspection PyTypeChecker
[docs] def get_ce_index(self) -> enums.EutraCcIndexS: """ ``[SOURce<HW>]:BB:EUTRa:DL:LAA:CEINdex`` \n Snippet: ``value: enums.EutraCcIndexS = driver.source.bb.eutra.downlink.laa.get_ce_index()`` \n Selects the LAA SCell for that the LAA is configured. :return: cell_index: SC1 | SC2 | SC3 | SC4 | NONE """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:LAA:CEINdex?') return Conversions.str_to_scalar_enum(response, enums.EutraCcIndexS)
[docs] def set_ce_index(self, cell_index: enums.EutraCcIndexS) -> None: """ ``[SOURce<HW>]:BB:EUTRa:DL:LAA:CEINdex`` \n Snippet: ``driver.source.bb.eutra.downlink.laa.set_ce_index(cell_index = enums.EutraCcIndexS.NONE)`` \n Selects the LAA SCell for that the LAA is configured. :param cell_index: SC1 | SC2 | SC3 | SC4 | NONE """ param = Conversions.enum_scalar_to_str(cell_index, enums.EutraCcIndexS) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:LAA:CEINdex {param}')
def clone(self) -> 'LaaCls': """ 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 = LaaCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group