from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions
from ......... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class CaggregationCls:
"""Caggregation commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("caggregation", core, parent)
[docs]
def set(self, enable: bool, areaReduced=repcap.AreaReduced.Default) -> None:
"""SCPI: CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:STANdard:AREA<nr>:CAGGregation \n
Snippet: driver.configure.nrSubMeas.multiEval.limit.seMask.standard.area.caggregation.set(enable = False, areaReduced = repcap.AreaReduced.Default) \n
Configures the activation state of area number <no> of the standard emission mask for NR SA with carrier aggregation. \n
:param enable: OFF: disables the limit check for this area ON: enables the limit check for this area
:param areaReduced: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Area')
"""
param = Conversions.bool_to_str(enable)
areaReduced_cmd_val = self._cmd_group.get_repcap_cmd_value(areaReduced, repcap.AreaReduced)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:STANdard:AREA{areaReduced_cmd_val}:CAGGregation {param}')
[docs]
def get(self, areaReduced=repcap.AreaReduced.Default) -> bool:
"""SCPI: CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:STANdard:AREA<nr>:CAGGregation \n
Snippet: value: bool = driver.configure.nrSubMeas.multiEval.limit.seMask.standard.area.caggregation.get(areaReduced = repcap.AreaReduced.Default) \n
Configures the activation state of area number <no> of the standard emission mask for NR SA with carrier aggregation. \n
:param areaReduced: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Area')
:return: enable: OFF: disables the limit check for this area ON: enables the limit check for this area"""
areaReduced_cmd_val = self._cmd_group.get_repcap_cmd_value(areaReduced, repcap.AreaReduced)
response = self._core.io.query_str(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:STANdard:AREA{areaReduced_cmd_val}:CAGGregation?')
return Conversions.str_to_bool(response)