Source code for RsCmwLteSig.Implementations.Sense.UeCapability.UeCategory

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class UeCategoryCls: """UeCategory commands group definition. 3 total commands, 2 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("ueCategory", core, parent) @property def downlink(self): """downlink commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_downlink'): from .Downlink import DownlinkCls self._downlink = DownlinkCls(self._core, self._cmd_group) return self._downlink @property def uplink(self): """uplink commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_uplink'): from .Uplink import UplinkCls self._uplink = UplinkCls(self._core, self._cmd_group) return self._uplink
[docs] def get_value(self) -> int: """SCPI: SENSe:LTE:SIGNaling<instance>:UECapability:UECategory \n Snippet: value: int = driver.sense.ueCapability.ueCategory.get_value() \n Returns the UE category according to the UE capability information. \n :return: ue_category: decimal """ response = self._core.io.query_str('SENSe:LTE:SIGNaling<Instance>:UECapability:UECategory?') return Conversions.str_to_int(response)
def clone(self) -> 'UeCategoryCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = UeCategoryCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group