from typing import List
from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class HoppingCls:
"""
| Commands in total: 13
| Subgroups: 5
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("hopping", core, parent)
@property
def frequency(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_frequency'):
from .Frequency import FrequencyCls
self._frequency = FrequencyCls(self._core, self._cmd_group)
return self._frequency
@property
def offTime(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_offTime'):
from .OffTime import OffTimeCls
self._offTime = OffTimeCls(self._core, self._cmd_group)
return self._offTime
@property
def ontime(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_ontime'):
from .Ontime import OntimeCls
self._ontime = OntimeCls(self._core, self._cmd_group)
return self._ontime
@property
def power(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_power'):
from .Power import PowerCls
self._power = PowerCls(self._core, self._cmd_group)
return self._power
@property
def repetition(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_repetition'):
from .Repetition import RepetitionCls
self._repetition = RepetitionCls(self._core, self._cmd_group)
return self._repetition
[docs]
def get_catalog(self) -> List[str]:
"""
``[SOURce<HW>]:PULM:TRAin:HOPPing:CATalog`` \n
Snippet: ``value: List[str] = driver.source.pulm.train.hopping.get_catalog()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:PULM:TRAin:HOPPing:CATalog?')
return Conversions.str_to_str_list(response)
[docs]
def delete(self, filename: str) -> None:
"""
``[SOURce<HW>]:PULM:TRAin:HOPPing:DELete`` \n
Snippet: ``driver.source.pulm.train.hopping.delete(filename = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SOURce<HwInstance>:PULM:TRAin:HOPPing:DELete {param}')
[docs]
def get_select(self) -> str:
"""
``[SOURce<HW>]:PULM:TRAin:HOPPing:SELect`` \n
Snippet: ``value: str = driver.source.pulm.train.hopping.get_select()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:PULM:TRAin:HOPPing:SELect?')
return trim_str_response(response)
[docs]
def set_select(self, filename: str) -> None:
"""
``[SOURce<HW>]:PULM:TRAin:HOPPing:SELect`` \n
Snippet: ``driver.source.pulm.train.hopping.set_select(filename = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SOURce<HwInstance>:PULM:TRAin:HOPPing:SELect {param}')
def clone(self) -> 'HoppingCls':
"""
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 = HoppingCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group