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

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


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

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

	@property
	def restart(self):
		"""
		| Commands in total: 4
		| Subgroups: 1
		| Direct child commands: 2
		"""
		if not hasattr(self, '_restart'):
			from .Restart import RestartCls
			self._restart = RestartCls(self._core, self._cmd_group)
		return self._restart

	@property
	def user(self):
		"""
		| Commands in total: 442
		| Subgroups: 12
		| Direct child commands: 0
		"""
		if not hasattr(self, '_user'):
			from .User import UserCls
			self._user = UserCls(self._core, self._cmd_group)
		return self._user

[docs] def get_nuser(self) -> int: """ ``[SOURce<HW>]:BB:NR5G:UBWP:NUSer`` \n Snippet: ``value: int = driver.source.bb.nr5G.ubwp.get_nuser()`` \n Sets the number of simulated users. :return: num_users: integer Range: 1 to 50 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:UBWP:NUSer?') return Conversions.str_to_int(response)
[docs] def get_sinterval(self) -> int: """ ``[SOURce<HW>]:BB:NR5G:UBWP:SINTerval`` \n Snippet: ``value: int = driver.source.bb.nr5G.ubwp.get_sinterval()`` \n Defines the number of slots after which the data source restarts (restart every <x> slots) . Prerequisites for this command \n - Single numerology setup - method ``RsSmw.source.bb.nr5G.ubwp.restart.value()`` = SLOT :return: slot_interval: integer Range: 1 to 20 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:UBWP:SINTerval?') return Conversions.str_to_int(response)
[docs] def get_soffset(self) -> int: """ ``[SOURce<HW>]:BB:NR5G:UBWP:SOFFset`` \n Snippet: ``value: int = driver.source.bb.nr5G.ubwp.get_soffset()`` \n Defines an offset in terms of slots for the restart of the data source. Prerequisites for this command \n - Single numerology setup - method ``RsSmw.source.bb.nr5G.ubwp.restart.value()`` = SLOT - method ``RsSmw.source.bb.nr5G.ubwp.sinterval()`` > 1 :return: slot_offset: integer Maximum offset = slot interval - 1 Range: 0 to 19 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:UBWP:SOFFset?') return Conversions.str_to_int(response)
def clone(self) -> 'UbwpCls': """ 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 = UbwpCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group