Source code for RsSmw.Implementations.Source.Bb.Nr5G.Scheduling

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SchedulingCls:
	"""
	| Commands in total: 593
	| Subgroups: 2
	| Direct child commands: 3
	"""

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

	@property
	def cell(self):
		"""
		| Commands in total: 589
		| 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

	@property
	def sfn(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_sfn'):
			from .Sfn import SfnCls
			self._sfn = SfnCls(self._core, self._cmd_group)
		return self._sfn

[docs] def get_ncarrier(self) -> int: """ ``[SOURce<HW>]:BB:NR5G:SCHed:NCARrier`` \n Snippet: ``value: int = driver.source.bb.nr5G.scheduling.get_ncarrier()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:SCHed:NCARrier?') return Conversions.str_to_int(response)
# noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.AutoManualMode: """ ``[SOURce<HW>]:BB:NR5G:SCHeduling:MODE`` \n Snippet: ``value: enums.AutoManualMode = driver.source.bb.nr5G.scheduling.get_mode()`` \n Defines how the scheduling and the content of the different PDSCH allocations is defined and performed. :return: scheduling_mode: MANual | AUTO MANual No cross-reference between the settings made for the CORESET DCIs and the PDSCHs settings. Configure the PDSCH allocations manually. AUTO Content and scheduling of the PDSCH according to the configuration of the CORESET DCIs. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:SCHeduling:MODE?') return Conversions.str_to_scalar_enum(response, enums.AutoManualMode)
[docs] def get_rs_space(self) -> bool: """ ``[SOURce<HW>]:BB:NR5G:SCHeduling:RSSPace`` \n Snippet: ``value: bool = driver.source.bb.nr5G.scheduling.get_rs_space()`` \n If enabled, the CCE start index is selected automatically to be within the current search space. :return: restr_to_sspace: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:SCHeduling:RSSPace?') return Conversions.str_to_bool(response)
def clone(self) -> 'SchedulingCls': """ 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 = SchedulingCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group