from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AdditionalCls:
"""
| Commands in total: 5
| Subgroups: 3
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("additional", core, parent)
@property
def lcMask(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_lcMask'):
from .LcMask import LcMaskCls
self._lcMask = LcMaskCls(self._core, self._cmd_group)
return self._lcMask
@property
def power(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_power'):
from .Power import PowerCls
self._power = PowerCls(self._core, self._cmd_group)
return self._power
@property
def tdelay(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_tdelay'):
from .Tdelay import TdelayCls
self._tdelay = TdelayCls(self._core, self._cmd_group)
return self._tdelay
[docs]
def get_count(self) -> int:
"""
``[SOURce<HW>]:BB:C2K:MSTation:ADDitional:COUNt`` \n
Snippet: ``value: int = driver.source.bb.c2K.mstation.additional.get_count()`` \n
Sets the number of additional mobile stations.
:return: count: integer Range: 1 to 64
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:C2K:MSTation:ADDitional:COUNt?')
return Conversions.str_to_int(response)
[docs]
def set_count(self, count: int) -> None:
"""
``[SOURce<HW>]:BB:C2K:MSTation:ADDitional:COUNt`` \n
Snippet: ``driver.source.bb.c2K.mstation.additional.set_count(count = 1)`` \n
Sets the number of additional mobile stations.
:param count: integer Range: 1 to 64
"""
param = Conversions.decimal_value_to_str(count)
self._core.io.write(f'SOURce<HwInstance>:BB:C2K:MSTation:ADDitional:COUNt {param}')
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:C2K:MSTation:ADDitional:STATe`` \n
Snippet: ``value: bool = driver.source.bb.c2K.mstation.additional.get_state()`` \n
The command activates additional mobile stations.
:return: state: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:C2K:MSTation:ADDitional:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, state: bool) -> None:
"""
``[SOURce<HW>]:BB:C2K:MSTation:ADDitional:STATe`` \n
Snippet: ``driver.source.bb.c2K.mstation.additional.set_state(state = False)`` \n
The command activates additional mobile stations.
:param state: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SOURce<HwInstance>:BB:C2K:MSTation:ADDitional:STATe {param}')
def clone(self) -> 'AdditionalCls':
"""
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 = AdditionalCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group