from typing import List
from .........Internal.Core import Core
from .........Internal.CommandsGroup import CommandsGroup
from .........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ActiveCls:
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("active", core, parent)
@property
def state(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_state'):
from .State import StateCls
self._state = StateCls(self._core, self._cmd_group)
return self._state
[docs]
def set(self, active_count: List[float]) -> None:
"""
``CONFigure:WLAN:RUConfig:COUNt:ACTive`` \n
Snippet: ``driver.applications.k91Wlan.configure.wlan.ruConfig.count.active.set(active_count = [1.1, 2.2, 3.3])`` \n
Determines the RUs for which the results are evaluated. Tip: to select or deselect all RUs at once, use method
``RsFsw.applications.k91Wlan.configure.wlan.ruConfig.count.active.state.set()`` .
:param active_count: integer Comma-separated list of resource unit numbers from the PPDU configuration table.
"""
param = Conversions.list_to_csv_str(active_count)
self._core.io.write(f'CONFigure:WLAN:RUConfig:COUNt:ACTive {param}')
[docs]
def get(self) -> List[float]:
"""
``CONFigure:WLAN:RUConfig:COUNt:ACTive`` \n
Snippet: ``value: List[float] = driver.applications.k91Wlan.configure.wlan.ruConfig.count.active.get()`` \n
Determines the RUs for which the results are evaluated. Tip: to select or deselect all RUs at once, use method
``RsFsw.applications.k91Wlan.configure.wlan.ruConfig.count.active.state.set()`` .
:return: active_count: integer Comma-separated list of resource unit numbers from the PPDU configuration table.
"""
response = self._core.io.query_bin_or_ascii_float_list(f'CONFigure:WLAN:RUConfig:COUNt:ACTive?')
return response
def clone(self) -> 'ActiveCls':
"""
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 = ActiveCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group