from ..........Internal.Core import Core
from ..........Internal.CommandsGroup import CommandsGroup
from ..........Internal.RepeatedCapability import RepeatedCapability
from .......... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class PcqiCls:
"""Pcqi commands group definition. 5 total commands, 5 Subgroups, 0 group commands
Repeated Capability: ChannelQualId, default value after init: ChannelQualId.Nr1"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("pcqi", core, parent)
self._cmd_group.rep_cap = RepeatedCapability(self._cmd_group.group_name, 'repcap_channelQualId_get', 'repcap_channelQualId_set', repcap.ChannelQualId.Nr1)
def repcap_channelQualId_set(self, channelQualId: repcap.ChannelQualId) -> 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 ChannelQualId.Default
Default value after init: ChannelQualId.Nr1"""
self._cmd_group.set_repcap_enum_value(channelQualId)
def repcap_channelQualId_get(self) -> repcap.ChannelQualId:
"""Returns the current default repeated capability for the child set/get methods"""
# noinspection PyTypeChecker
return self._cmd_group.get_repcap_enum_value()
@property
def cqi(self):
"""cqi commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_cqi'):
from .Cqi import CqiCls
self._cqi = CqiCls(self._core, self._cmd_group)
return self._cqi
@property
def fromPy(self):
"""fromPy commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_fromPy'):
from .FromPy import FromPyCls
self._fromPy = FromPyCls(self._core, self._cmd_group)
return self._fromPy
@property
def pci(self):
"""pci commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_pci'):
from .Pci import PciCls
self._pci = PciCls(self._core, self._cmd_group)
return self._pci
@property
def to(self):
"""to commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_to'):
from .To import ToCls
self._to = ToCls(self._core, self._cmd_group)
return self._to
@property
def typePy(self):
"""typePy commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_typePy'):
from .TypePy import TypePyCls
self._typePy = TypePyCls(self._core, self._cmd_group)
return self._typePy
def clone(self) -> 'PcqiCls':
"""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 = PcqiCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group