from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class SpectrumCls:
"""Spectrum commands group definition. 48 total commands, 8 Subgroups, 0 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("spectrum", core, parent)
@property
def uePower(self):
"""uePower commands group. 3 Sub-classes, 0 commands."""
if not hasattr(self, '_uePower'):
from .UePower import UePowerCls
self._uePower = UePowerCls(self._core, self._cmd_group)
return self._uePower
@property
def emask(self):
"""emask commands group. 10 Sub-classes, 0 commands."""
if not hasattr(self, '_emask'):
from .Emask import EmaskCls
self._emask = EmaskCls(self._core, self._cmd_group)
return self._emask
@property
def cpower(self):
"""cpower commands group. 3 Sub-classes, 0 commands."""
if not hasattr(self, '_cpower'):
from .Cpower import CpowerCls
self._cpower = CpowerCls(self._core, self._cmd_group)
return self._cpower
@property
def aclr(self):
"""aclr commands group. 2 Sub-classes, 0 commands."""
if not hasattr(self, '_aclr'):
from .Aclr import AclrCls
self._aclr = AclrCls(self._core, self._cmd_group)
return self._aclr
@property
def obw(self):
"""obw commands group. 3 Sub-classes, 0 commands."""
if not hasattr(self, '_obw'):
from .Obw import ObwCls
self._obw = ObwCls(self._core, self._cmd_group)
return self._obw
@property
def current(self):
"""current commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_current'):
from .Current import CurrentCls
self._current = CurrentCls(self._core, self._cmd_group)
return self._current
@property
def average(self):
"""average commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_average'):
from .Average import AverageCls
self._average = AverageCls(self._core, self._cmd_group)
return self._average
@property
def maximum(self):
"""maximum commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_maximum'):
from .Maximum import MaximumCls
self._maximum = MaximumCls(self._core, self._cmd_group)
return self._maximum
def clone(self) -> 'SpectrumCls':
"""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 = SpectrumCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group