Source code for RsCMX_Signaling.Implementations.Sense.Signaling.Nradio.Cell.Bwp

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal.RepeatedCapability import RepeatedCapability
from ....... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class BwpCls: """Bwp commands group definition. 10 total commands, 6 Subgroups, 0 group commands Repeated Capability: BwParts, default value after init: BwParts.Nr1""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("bwp", core, parent) self._cmd_group.rep_cap = RepeatedCapability(self._cmd_group.group_name, 'repcap_bwParts_get', 'repcap_bwParts_set', repcap.BwParts.Nr1) def repcap_bwParts_set(self, bwParts: repcap.BwParts) -> None: """Repeated Capability default value numeric suffix. This value is used, if you do not explicitely set it in the child set/get methods, or if you leave it to BwParts.Default Default value after init: BwParts.Nr1""" self._cmd_group.set_repcap_enum_value(bwParts) def repcap_bwParts_get(self) -> repcap.BwParts: """Returns the current default repeated capability for the child set/get methods""" # noinspection PyTypeChecker return self._cmd_group.get_repcap_enum_value() @property def id(self): """id commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_id'): from .Id import IdCls self._id = IdCls(self._core, self._cmd_group) return self._id @property def power(self): """power commands group. 1 Sub-classes, 0 commands.""" if not hasattr(self, '_power'): from .Power import PowerCls self._power = PowerCls(self._core, self._cmd_group) return self._power @property def pucch(self): """pucch commands group. 2 Sub-classes, 0 commands.""" if not hasattr(self, '_pucch'): from .Pucch import PucchCls self._pucch = PucchCls(self._core, self._cmd_group) return self._pucch @property def ueScheduling(self): """ueScheduling commands group. 1 Sub-classes, 0 commands.""" if not hasattr(self, '_ueScheduling'): from .UeScheduling import UeSchedulingCls self._ueScheduling = UeSchedulingCls(self._core, self._cmd_group) return self._ueScheduling @property def harq(self): """harq commands group. 2 Sub-classes, 0 commands.""" if not hasattr(self, '_harq'): from .Harq import HarqCls self._harq = HarqCls(self._core, self._cmd_group) return self._harq @property def cqiReporting(self): """cqiReporting commands group. 2 Sub-classes, 0 commands.""" if not hasattr(self, '_cqiReporting'): from .CqiReporting import CqiReportingCls self._cqiReporting = CqiReportingCls(self._core, self._cmd_group) return self._cqiReporting def clone(self) -> 'BwpCls': """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 = BwpCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group