from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class ScalarCls:
"""Scalar commands group definition. 20 total commands, 5 Subgroups, 0 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("scalar", core, parent)
@property
def voltage(self):
"""voltage commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_voltage'):
from .Voltage import VoltageCls
self._voltage = VoltageCls(self._core, self._cmd_group)
return self._voltage
@property
def current(self):
"""current commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_current'):
from .Current import CurrentCls
self._current = CurrentCls(self._core, self._cmd_group)
return self._current
@property
def energy(self):
"""energy commands group. 0 Sub-classes, 3 commands."""
if not hasattr(self, '_energy'):
from .Energy import EnergyCls
self._energy = EnergyCls(self._core, self._cmd_group)
return self._energy
@property
def power(self):
"""power commands group. 0 Sub-classes, 5 commands."""
if not hasattr(self, '_power'):
from .Power import PowerCls
self._power = PowerCls(self._core, self._cmd_group)
return self._power
@property
def statistic(self):
"""statistic commands group. 0 Sub-classes, 2 commands."""
if not hasattr(self, '_statistic'):
from .Statistic import StatisticCls
self._statistic = StatisticCls(self._core, self._cmd_group)
return self._statistic