from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.StructBase import StructBase
from ......Internal.ArgStruct import ArgStruct
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class ThroughputCls:
"""Throughput commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("throughput", core, parent)
# noinspection PyTypeChecker
[docs]
class FetchStruct(StructBase):
"""Response structure. Fields: \n
- Reliability: int: See 'Reliability indicator'
- Rel_Avg: float: Average throughput as percentage of scheduled throughput
- Abs_Ack: int: Average throughput in bit/s
- Abs_Scheduled: int: Scheduled throughput in bit/s"""
__meta_args_list = [
ArgStruct.scalar_int('Reliability', 'Reliability'),
ArgStruct.scalar_float('Rel_Avg'),
ArgStruct.scalar_int('Abs_Ack'),
ArgStruct.scalar_int('Abs_Scheduled')]
def __init__(self):
StructBase.__init__(self, self)
self.Reliability: int = None
self.Rel_Avg: float = None
self.Abs_Ack: int = None
self.Abs_Scheduled: int = None
[docs]
def fetch(self) -> FetchStruct:
"""SCPI: FETCh:SIGNaling:MEASurement:BLER:OVERall:THRoughput \n
Snippet: value: FetchStruct = driver.signaling.measurement.bler.overall.throughput.fetch() \n
Returns the overall DL throughput results of the BLER measurement. \n
:return: structure: for return value, see the help for FetchStruct structure arguments."""
return self._core.io.query_struct(f'FETCh:SIGNaling:MEASurement:BLER:OVERall:THRoughput?', self.__class__.FetchStruct())