from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal.RepeatedCapability import RepeatedCapability
from ....... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class UserCls:
"""User commands group definition. 21 total commands, 16 Subgroups, 0 group commands
Repeated Capability: UserIx, default value after init: UserIx.Nr1"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("user", core, parent)
self._cmd_group.rep_cap = RepeatedCapability(self._cmd_group.group_name, 'repcap_userIx_get', 'repcap_userIx_set', repcap.UserIx.Nr1)
def repcap_userIx_set(self, userIx: repcap.UserIx) -> 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 UserIx.Default
Default value after init: UserIx.Nr1"""
self._cmd_group.set_repcap_enum_value(userIx)
def repcap_userIx_get(self) -> repcap.UserIx:
"""Returns the current default repeated capability for the child set/get methods"""
# noinspection PyTypeChecker
return self._cmd_group.get_repcap_enum_value()
@property
def asrs(self):
"""asrs commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_asrs'):
from .Asrs import AsrsCls
self._asrs = AsrsCls(self._core, self._cmd_group)
return self._asrs
@property
def caw(self):
"""caw commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_caw'):
from .Caw import CawCls
self._caw = CawCls(self._core, self._cmd_group)
return self._caw
@property
def ccoding(self):
"""ccoding commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_ccoding'):
from .Ccoding import CcodingCls
self._ccoding = CcodingCls(self._core, self._cmd_group)
return self._ccoding
@property
def cell(self):
"""cell commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_cell'):
from .Cell import CellCls
self._cell = CellCls(self._core, self._cmd_group)
return self._cell
@property
def data(self):
"""data commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_data'):
from .Data import DataCls
self._data = DataCls(self._core, self._cmd_group)
return self._data
@property
def dselect(self):
"""dselect commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_dselect'):
from .Dselect import DselectCls
self._dselect = DselectCls(self._core, self._cmd_group)
return self._dselect
@property
def epdcch(self):
"""epdcch commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_epdcch'):
from .Epdcch import EpdcchCls
self._epdcch = EpdcchCls(self._core, self._cmd_group)
return self._epdcch
@property
def mcsTwo(self):
"""mcsTwo commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_mcsTwo'):
from .McsTwo import McsTwoCls
self._mcsTwo = McsTwoCls(self._core, self._cmd_group)
return self._mcsTwo
@property
def pa(self):
"""pa commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_pa'):
from .Pa import PaCls
self._pa = PaCls(self._core, self._cmd_group)
return self._pa
@property
def pattern(self):
"""pattern commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_pattern'):
from .Pattern import PatternCls
self._pattern = PatternCls(self._core, self._cmd_group)
return self._pattern
@property
def scrambling(self):
"""scrambling commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_scrambling'):
from .Scrambling import ScramblingCls
self._scrambling = ScramblingCls(self._core, self._cmd_group)
return self._scrambling
@property
def sps(self):
"""sps commands group. 5 Sub-classes, 0 commands."""
if not hasattr(self, '_sps'):
from .Sps import SpsCls
self._sps = SpsCls(self._core, self._cmd_group)
return self._sps
@property
def state(self):
"""state commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_state'):
from .State import StateCls
self._state = StateCls(self._core, self._cmd_group)
return self._state
@property
def txm(self):
"""txm commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_txm'):
from .Txm import TxmCls
self._txm = TxmCls(self._core, self._cmd_group)
return self._txm
@property
def uec(self):
"""uec commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_uec'):
from .Uec import UecCls
self._uec = UecCls(self._core, self._cmd_group)
return self._uec
@property
def ueId(self):
"""ueId commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_ueId'):
from .UeId import UeIdCls
self._ueId = UeIdCls(self._core, self._cmd_group)
return self._ueId
def clone(self) -> 'UserCls':
"""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 = UserCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group