from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class HsTrainCls:
"""
| Commands in total: 11
| Subgroups: 3
| Direct child commands: 6
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("hsTrain", core, parent)
@property
def distance(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_distance'):
from .Distance import DistanceCls
self._distance = DistanceCls(self._core, self._cmd_group)
return self._distance
@property
def downlink(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_downlink'):
from .Downlink import DownlinkCls
self._downlink = DownlinkCls(self._core, self._cmd_group)
return self._downlink
@property
def path(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_path'):
from .Path import PathCls
self._path = PathCls(self._core, self._cmd_group)
return self._path
[docs]
def get_fdoppler(self) -> float:
"""
``[SOURce<HW>]:CEMulation:HSTRain:FDOPpler`` \n
Snippet: ``value: float = driver.source.cemulation.hsTrain.get_fdoppler()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:HSTRain:FDOPpler?')
return Conversions.str_to_float(response)
[docs]
def get_kfactor(self) -> float:
"""
``[SOURce<HW>]:CEMulation:HSTRain:KFACtor`` \n
Snippet: ``value: float = driver.source.cemulation.hsTrain.get_kfactor()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:HSTRain:KFACtor?')
return Conversions.str_to_float(response)
[docs]
def set_kfactor(self, kfactor: float) -> None:
"""
``[SOURce<HW>]:CEMulation:HSTRain:KFACtor`` \n
Snippet: ``driver.source.cemulation.hsTrain.set_kfactor(kfactor = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(kfactor)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:HSTRain:KFACtor {param}')
# noinspection PyTypeChecker
[docs]
def get_profile(self) -> enums.FadingProfileB:
"""
``[SOURce<HW>]:CEMulation:HSTRain:PROFile`` \n
Snippet: ``value: enums.FadingProfileB = driver.source.cemulation.hsTrain.get_profile()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:HSTRain:PROFile?')
return Conversions.str_to_scalar_enum(response, enums.FadingProfileB)
[docs]
def set_profile(self, profile: enums.FadingProfileB) -> None:
"""
``[SOURce<HW>]:CEMulation:HSTRain:PROFile`` \n
Snippet: ``driver.source.cemulation.hsTrain.set_profile(profile = enums.FadingProfileB.BELLindoor)`` \n
No help available
"""
param = Conversions.enum_scalar_to_str(profile, enums.FadingProfileB)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:HSTRain:PROFile {param}')
[docs]
def get_soffset(self) -> float:
"""
``[SOURce<HW>]:CEMulation:HSTRain:SOFFset`` \n
Snippet: ``value: float = driver.source.cemulation.hsTrain.get_soffset()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:HSTRain:SOFFset?')
return Conversions.str_to_float(response)
[docs]
def set_soffset(self, start_offset: float) -> None:
"""
``[SOURce<HW>]:CEMulation:HSTRain:SOFFset`` \n
Snippet: ``driver.source.cemulation.hsTrain.set_soffset(start_offset = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(start_offset)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:HSTRain:SOFFset {param}')
[docs]
def get_speed(self) -> float:
"""
``[SOURce<HW>]:CEMulation:HSTRain:SPEed`` \n
Snippet: ``value: float = driver.source.cemulation.hsTrain.get_speed()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:HSTRain:SPEed?')
return Conversions.str_to_float(response)
[docs]
def set_speed(self, speed: float) -> None:
"""
``[SOURce<HW>]:CEMulation:HSTRain:SPEed`` \n
Snippet: ``driver.source.cemulation.hsTrain.set_speed(speed = 1.0)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(speed)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:HSTRain:SPEed {param}')
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:CEMulation:HSTRain:STATe`` \n
Snippet: ``value: bool = driver.source.cemulation.hsTrain.get_state()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:HSTRain:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, state: bool) -> None:
"""
``[SOURce<HW>]:CEMulation:HSTRain:STATe`` \n
Snippet: ``driver.source.cemulation.hsTrain.set_state(state = False)`` \n
No help available
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SOURce<HwInstance>:CEMulation:HSTRain:STATe {param}')
def clone(self) -> 'HsTrainCls':
"""
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 = HsTrainCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group