from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class BbCls:
"""
| Commands in total: 25
| Subgroups: 3
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("bb", core, parent)
@property
def bnc(self):
"""
| Commands in total: 4
| Subgroups: 0
| Direct child commands: 4
"""
if not hasattr(self, '_bnc'):
from .Bnc import BncCls
self._bnc = BncCls(self._core, self._cmd_group)
return self._bnc
@property
def data(self):
"""
| Commands in total: 8
| Subgroups: 2
| Direct child commands: 6
"""
if not hasattr(self, '_data'):
from .Data import DataCls
self._data = DataCls(self._core, self._cmd_group)
return self._data
@property
def generator(self):
"""
| Commands in total: 12
| Subgroups: 5
| Direct child commands: 3
"""
if not hasattr(self, '_generator'):
from .Generator import GeneratorCls
self._generator = GeneratorCls(self._core, self._cmd_group)
return self._generator
[docs]
def get_connection(self) -> bool:
"""
``TEST:BB:CONNection`` \n
Snippet: ``value: bool = driver.test.bb.get_connection()`` \n
No help available
"""
response = self._core.io.query_str('TEST:BB:CONNection?')
return Conversions.str_to_bool(response)
def clone(self) -> 'BbCls':
"""
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 = BbCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group