from typing import List
from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class McsTableCls:
"""McsTable commands group definition. 2 total commands, 1 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mcsTable", core, parent)
@property
def ssubframe(self):
"""ssubframe commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_ssubframe'):
from .Ssubframe import SsubframeCls
self._ssubframe = SsubframeCls(self._core, self._cmd_group)
return self._ssubframe
[docs]
def get_user_defined(self) -> List[int]:
"""SCPI: CONFigure:LTE:SIGNaling<instance>:CONNection[:PCC]:FCRI:DL:MCSTable:UDEFined \n
Snippet: value: List[int] = driver.configure.connection.pcc.fcri.downlink.mcsTable.get_user_defined() \n
Configures a user-defined mapping table that assigns an MCS index value to each possible reported wideband CQI index
value. The table is used for the scheduling type 'Follow WB CQI-RI' if the table mode is set to UDEFined. \n
:return: mcs: numeric Comma-separated list of 15 MCS values, for reported CQI index value 1 to 15 The range is restricted by the highest allowed modulation scheme: max 27 with 256-QAM, max 26 with 1024-QAM. Range: 0 to 28
"""
response = self._core.io.query_bin_or_ascii_int_list('CONFigure:LTE:SIGNaling<Instance>:CONNection:PCC:FCRI:DL:MCSTable:UDEFined?')
return response
[docs]
def set_user_defined(self, mcs: List[int]) -> None:
"""SCPI: CONFigure:LTE:SIGNaling<instance>:CONNection[:PCC]:FCRI:DL:MCSTable:UDEFined \n
Snippet: driver.configure.connection.pcc.fcri.downlink.mcsTable.set_user_defined(mcs = [1, 2, 3]) \n
Configures a user-defined mapping table that assigns an MCS index value to each possible reported wideband CQI index
value. The table is used for the scheduling type 'Follow WB CQI-RI' if the table mode is set to UDEFined. \n
:param mcs: numeric Comma-separated list of 15 MCS values, for reported CQI index value 1 to 15 The range is restricted by the highest allowed modulation scheme: max 27 with 256-QAM, max 26 with 1024-QAM. Range: 0 to 28
"""
param = Conversions.list_to_csv_str(mcs)
self._core.io.write(f'CONFigure:LTE:SIGNaling<Instance>:CONNection:PCC:FCRI:DL:MCSTable:UDEFined {param}')
def clone(self) -> 'McsTableCls':
"""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 = McsTableCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group