Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.Cc.Allocation.Pusch

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal.StructBase import StructBase
from .......Internal.ArgStruct import ArgStruct
from ....... import enums
from ....... import repcap


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

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

	@property
	def tdomain(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_tdomain'):
			from .Tdomain import TdomainCls
			self._tdomain = TdomainCls(self._core, self._cmd_group)
		return self._tdomain

	@property
	def rb(self):
		"""
		| Commands in total: 2
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_rb'):
			from .Rb import RbCls
			self._rb = RbCls(self._core, self._cmd_group)
		return self._rb

	@property
	def mscheme(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_mscheme'):
			from .Mscheme import MschemeCls
			self._mscheme = MschemeCls(self._core, self._cmd_group)
		return self._mscheme

	@property
	def acontiguous(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_acontiguous'):
			from .Acontiguous import AcontiguousCls
			self._acontiguous = AcontiguousCls(self._core, self._cmd_group)
		return self._acontiguous

	@property
	def additional(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_additional'):
			from .Additional import AdditionalCls
			self._additional = AdditionalCls(self._core, self._cmd_group)
		return self._additional

	@property
	def sgeneration(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_sgeneration'):
			from .Sgeneration import SgenerationCls
			self._sgeneration = SgenerationCls(self._core, self._cmd_group)
		return self._sgeneration

	@property
	def nlayers(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_nlayers'):
			from .Nlayers import NlayersCls
			self._nlayers = NlayersCls(self._core, self._cmd_group)
		return self._nlayers

	# noinspection PyTypeChecker
[docs] class PuschStruct(StructBase): """ Structure for setting input parameters. Fields: \n - 1 Mapping_Type: enums.MappingType: No parameter help available - 2 No_Symbols: int: No parameter help available - 3 Start_Symbol: int: No parameter help available - 4 Auto: bool: No parameter help available - 5 No_Rbs: int: No parameter help available - 6 Start_Rb: int: No parameter help available - 7 Mod_Scheme: enums.ModulationScheme: No parameter help available """ __meta_args_list = [ ArgStruct.scalar_enum('Mapping_Type', enums.MappingType), ArgStruct.scalar_int('No_Symbols'), ArgStruct.scalar_int('Start_Symbol'), ArgStruct.scalar_bool('Auto'), ArgStruct.scalar_int('No_Rbs'), ArgStruct.scalar_int('Start_Rb'), ArgStruct.scalar_enum('Mod_Scheme', enums.ModulationScheme)] def __init__(self): StructBase.__init__(self, self) self.Mapping_Type: enums.MappingType=None self.No_Symbols: int=None self.Start_Symbol: int=None self.Auto: bool=None self.No_Rbs: int=None self.Start_Rb: int=None self.Mod_Scheme: enums.ModulationScheme=None
[docs] def set(self, structure: PuschStruct, carrierComponent=repcap.CarrierComponent.Nr1, allocation=repcap.Allocation.Default) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>[:CC<no>]:ALLocation<Allocation>:PUSCh`` \n Snippet with structure: \n structure = driver.configure.nrSubMeas.cc.allocation.pusch.PuschStruct() \n structure.Mapping_Type: enums.MappingType = enums.MappingType.A \n structure.No_Symbols: int = 1 \n structure.Start_Symbol: int = 1 \n structure.Auto: bool = False \n structure.No_Rbs: int = 1 \n structure.Start_Rb: int = 1 \n structure.Mod_Scheme: enums.ModulationScheme = enums.ModulationScheme.AUTO \n driver.configure.nrSubMeas.cc.allocation.pusch.set(structure, carrierComponent = repcap.CarrierComponent.Nr1, allocation = repcap.Allocation.Default) \n No help available :param structure: for set value, see the help for PuschStruct structure arguments. :param carrierComponent: optional repeated capability selector. Default value: Nr1 :param allocation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Allocation') """ carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) allocation_cmd_val = self._cmd_group.get_repcap_cmd_value(allocation, repcap.Allocation) self._core.io.write_struct(f'CONFigure:NRSub:MEASurement<Instance>:CC{carrierComponent_cmd_val}:ALLocation{allocation_cmd_val}:PUSCh', structure)
[docs] def get(self, carrierComponent=repcap.CarrierComponent.Nr1, allocation=repcap.Allocation.Default) -> PuschStruct: """ ``CONFigure:NRSub:MEASurement<Instance>[:CC<no>]:ALLocation<Allocation>:PUSCh`` \n Snippet: ``value: PuschStruct = driver.configure.nrSubMeas.cc.allocation.pusch.get(carrierComponent = repcap.CarrierComponent.Nr1, allocation = repcap.Allocation.Default)`` \n No help available :param carrierComponent: optional repeated capability selector. Default value: Nr1 :param allocation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Allocation') :return: structure: for return value, see the help for PuschStruct structure arguments. """ carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) allocation_cmd_val = self._cmd_group.get_repcap_cmd_value(allocation, repcap.Allocation) return self._core.io.query_struct(f'CONFigure:NRSub:MEASurement<Instance>:CC{carrierComponent_cmd_val}:ALLocation{allocation_cmd_val}:PUSCh?', self.__class__.PuschStruct())
def clone(self) -> 'PuschCls': """ 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 = PuschCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group