from typing import List
from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from .......Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class UschCls:
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("usch", core, parent)
[docs]
def get_catalog(self) -> List[str]:
"""
``[SOURce<HW>]:BB:W3GPp:MSTation:UDTX:USCH:CATalog`` \n
Snippet: ``value: List[str] = driver.source.bb.w3Gpp.mstation.udtx.usch.get_catalog()`` \n
Queries the files with uplink user scheduling settings (file extension 3g_sch) in the default or the specified directory.
:return: catalog: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:MSTation:UDTX:USCH:CATalog?')
return Conversions.str_to_str_list(response)
[docs]
def delete(self, filename: str) -> None:
"""
``[SOURce<HW>]:BB:W3GPp:MSTation:UDTX:USCH:DELete`` \n
Snippet: ``driver.source.bb.w3Gpp.mstation.udtx.usch.delete(filename = 'abc')`` \n
Deletes the selected file from the default or specified directory. Deleted are files with the file extension 3g_sch.
:param filename: string
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:MSTation:UDTX:USCH:DELete {param}')
[docs]
def get_fselect(self) -> str:
"""
``[SOURce<HW>]:BB:W3GPp:MSTation:UDTX:USCH:FSELect`` \n
Snippet: ``value: str = driver.source.bb.w3Gpp.mstation.udtx.usch.get_fselect()`` \n
Loads the selected file from the default or the specified directory. Loads are files with extension 3g_sch.
:return: filename: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:MSTation:UDTX:USCH:FSELect?')
return trim_str_response(response)
[docs]
def set_fselect(self, filename: str) -> None:
"""
``[SOURce<HW>]:BB:W3GPp:MSTation:UDTX:USCH:FSELect`` \n
Snippet: ``driver.source.bb.w3Gpp.mstation.udtx.usch.set_fselect(filename = 'abc')`` \n
Loads the selected file from the default or the specified directory. Loads are files with extension 3g_sch.
:param filename: string
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:MSTation:UDTX:USCH:FSELect {param}')