from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class UserCls:
"""User commands group definition. 7 total commands, 4 Subgroups, 0 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("user", core, parent)
@property
def ack(self):
"""ack commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_ack'):
from .Ack import AckCls
self._ack = AckCls(self._core, self._cmd_group)
return self._ack
@property
def dtx(self):
"""dtx commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_dtx'):
from .Dtx import DtxCls
self._dtx = DtxCls(self._core, self._cmd_group)
return self._dtx
@property
def minOffset(self):
"""minOffset commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_minOffset'):
from .MinOffset import MinOffsetCls
self._minOffset = MinOffsetCls(self._core, self._cmd_group)
return self._minOffset
@property
def retransm(self):
"""retransm commands group. 4 Sub-classes, 0 commands."""
if not hasattr(self, '_retransm'):
from .Retransm import RetransmCls
self._retransm = RetransmCls(self._core, self._cmd_group)
return self._retransm
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