Source code for RsFsw.Implementations.Applications.K30_NoiseFigure.Source.Current

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class CurrentCls: """Current commands group definition. 4 total commands, 4 Subgroups, 0 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("current", core, parent) @property def sequence(self): """sequence commands group. 1 Sub-classes, 0 commands.""" if not hasattr(self, '_sequence'): from .Sequence import SequenceCls self._sequence = SequenceCls(self._core, self._cmd_group) return self._sequence @property def auxiliary(self): """auxiliary commands group. 1 Sub-classes, 0 commands.""" if not hasattr(self, '_auxiliary'): from .Auxiliary import AuxiliaryCls self._auxiliary = AuxiliaryCls(self._core, self._cmd_group) return self._auxiliary @property def control(self): """control commands group. 1 Sub-classes, 0 commands.""" if not hasattr(self, '_control'): from .Control import ControlCls self._control = ControlCls(self._core, self._cmd_group) return self._control @property def power(self): """power commands group. 1 Sub-classes, 0 commands.""" if not hasattr(self, '_power'): from .Power import PowerCls self._power = PowerCls(self._core, self._cmd_group) return self._power def clone(self) -> 'CurrentCls': """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 = CurrentCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group