from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PclassCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("pclass", core, parent)
[docs]
def set(self, power_class: enums.PowerClass) -> None:
"""
``[SENSe]:POWer:PCLass`` \n
Snippet: ``driver.applications.k14Xnr5G.sense.power.pclass.set(power_class = enums.PowerClass.PC1)`` \n
Selects the power class of a UE for ACLR measurements.
:param power_class: PC1 | PC1_5 | PC2 | PC3
"""
param = Conversions.enum_scalar_to_str(power_class, enums.PowerClass)
self._core.io.write(f'SENSe:POWer:PCLass {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.PowerClass:
"""
``[SENSe]:POWer:PCLass`` \n
Snippet: ``value: enums.PowerClass = driver.applications.k14Xnr5G.sense.power.pclass.get()`` \n
Selects the power class of a UE for ACLR measurements.
:return: power_class: PC1 | PC1_5 | PC2 | PC3
"""
response = self._core.io.query_str(f'SENSe:POWer:PCLass?')
return Conversions.str_to_scalar_enum(response, enums.PowerClass)