Source code for RsSmbv.Implementations.Source.Bb.Nr5G.Node.Cell.Lte.Patt

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class PattCls: """Patt commands group definition. 4 total commands, 4 Subgroups, 0 group commands Repeated Capability: PatternNull, default value after init: PatternNull.Nr0""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("patt", core, parent) self._cmd_group.rep_cap = RepeatedCapability(self._cmd_group.group_name, 'repcap_patternNull_get', 'repcap_patternNull_set', repcap.PatternNull.Nr0) def repcap_patternNull_set(self, patternNull: repcap.PatternNull) -> 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 PatternNull.Default Default value after init: PatternNull.Nr0""" self._cmd_group.set_repcap_enum_value(patternNull) def repcap_patternNull_get(self) -> repcap.PatternNull: """Returns the current default repeated capability for the child set/get methods""" # noinspection PyTypeChecker return self._cmd_group.get_repcap_enum_value() @property def cbw(self): """cbw commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_cbw'): from .Cbw import CbwCls self._cbw = CbwCls(self._core, self._cmd_group) return self._cbw @property def nap(self): """nap commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_nap'): from .Nap import NapCls self._nap = NapCls(self._core, self._cmd_group) return self._nap @property def pointA(self): """pointA commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_pointA'): from .PointA import PointACls self._pointA = PointACls(self._core, self._cmd_group) return self._pointA @property def vshift(self): """vshift commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_vshift'): from .Vshift import VshiftCls self._vshift = VshiftCls(self._core, self._cmd_group) return self._vshift def clone(self) -> 'PattCls': """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 = PattCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group