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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class NodeCls:
	"""
	| Commands in total: 142
	| Subgroups: 4
	| Direct child commands: 1
	"""

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

	@property
	def carMapping(self):
		"""
		| Commands in total: 2
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_carMapping'):
			from .CarMapping import CarMappingCls
			self._carMapping = CarMappingCls(self._core, self._cmd_group)
		return self._carMapping

	@property
	def cc(self):
		"""
		| Commands in total: 7
		| Subgroups: 1
		| Direct child commands: 6
		"""
		if not hasattr(self, '_cc'):
			from .Cc import CcCls
			self._cc = CcCls(self._core, self._cmd_group)
		return self._cc

	@property
	def cell(self):
		"""
		| Commands in total: 131
		| Subgroups: 24
		| 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 rfPhase(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_rfPhase'):
			from .RfPhase import RfPhaseCls
			self._rfPhase = RfPhaseCls(self._core, self._cmd_group)
		return self._rfPhase

[docs] def get_ncarrier(self) -> int: """ ``[SOURce<HW>]:BB:NR5G:NODE:NCARrier`` \n Snippet: ``value: int = driver.source.bb.nr5G.node.get_ncarrier()`` \n Sets the number of simulated carriers. When used in a previously configured system, reconfigures the number of simulated carriers. :return: num_carrier: integer Range: 1 to 16 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:NODE:NCARrier?') return Conversions.str_to_int(response)
def clone(self) -> 'NodeCls': """ 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 = NodeCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group