from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SinfoCls:
"""Sinfo commands group definition. 5 total commands, 5 Subgroups, 0 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sinfo", core, parent)
@property
def cfactor(self):
"""cfactor commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_cfactor'):
from .Cfactor import CfactorCls
self._cfactor = CfactorCls(self._core, self._cmd_group)
return self._cfactor
@property
def fpath(self):
"""fpath commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_fpath'):
from .Fpath import FpathCls
self._fpath = FpathCls(self._core, self._cmd_group)
return self._fpath
@property
def obw(self):
"""obw commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_obw'):
from .Obw import ObwCls
self._obw = ObwCls(self._core, self._cmd_group)
return self._obw
@property
def slength(self):
"""slength commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_slength'):
from .Slength import SlengthCls
self._slength = SlengthCls(self._core, self._cmd_group)
return self._slength
@property
def symbolRate(self):
"""symbolRate commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_symbolRate'):
from .SymbolRate import SymbolRateCls
self._symbolRate = SymbolRateCls(self._core, self._cmd_group)
return self._symbolRate
def clone(self) -> 'SinfoCls':
"""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 = SinfoCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group