from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........ import enums
from ........ import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TcCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("tc", core, parent)
# noinspection PyTypeChecker
[docs]
def get(self, userNull=repcap.UserNull.Default) -> enums.OranTcAll:
"""
``[SOURce<HW>]:BB:NR5G:UBWP:USER<US(CH0)>:ORAN:TC`` \n
Snippet: ``value: enums.OranTcAll = driver.source.bb.nr5G.ubwp.user.oran.tc.get(userNull = repcap.UserNull.Default)`` \n
Selects the ORAN test case for ORAN data generation.
Prerequisites for this command \n
- Turn on ORAN compliant data source (method ``RsSmw.source.bb.nr5G.ubwp.user.oran.usds.get()`` ) .
:param userNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'User')
:return: oran_tc: TC3231_1 | TC3231_2 | TC3231_3 | TC3231_4 | TC3231_5 | TC3231_6 | TC3231_7 | TC3231_8 | TC3231_9 | TC3231_10 | TC3231_11 | TC3231_12 | TC3231_13 | TC3231_14 | TC3231_15 | TC3231_16 | TC3231_17 | TC3251_1 | TC3251_2 | TC3251_3DL | TC3251_3UL | TC3251_5 | TC3251_7 | TC3251_8DL | TC3251_8UL | TC3251_4DL | TC3251_4UL | TC3261_1DL | TC3261_1UL | TC3261_3DL | TC3261_3UL | TC3261_5DL | TC3261_5UL | TC3261_6DL | TC3261_6UL
"""
userNull_cmd_val = self._cmd_group.get_repcap_cmd_value(userNull, repcap.UserNull)
response = self._core.io.query_str(f'SOURce<HwInstance>:BB:NR5G:UBWP:USER{userNull_cmd_val}:ORAN:TC?')
return Conversions.str_to_scalar_enum(response, enums.OranTcAll)