from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........ import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PredefinedCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("predefined", core, parent)
# noinspection PyTypeChecker
[docs]
def get_category(self) -> enums.FadDssUsrVehCat:
"""
``[SOURce<HW>]:FSIMulator:DSSimulation:USER:RX:VEHicle:PREDefined:CATegory`` \n
Snippet: ``value: enums.FadDssUsrVehCat = driver.source.fsimulator.dsSimulation.user.rx.vehicle.predefined.get_category()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:DSSimulation:USER:RX:VEHicle:PREDefined:CATegory?')
return Conversions.str_to_scalar_enum(response, enums.FadDssUsrVehCat)
[docs]
def set_category(self, veh_pred_cat: enums.FadDssUsrVehCat) -> None:
"""
``[SOURce<HW>]:FSIMulator:DSSimulation:USER:RX:VEHicle:PREDefined:CATegory`` \n
Snippet: ``driver.source.fsimulator.dsSimulation.user.rx.vehicle.predefined.set_category(veh_pred_cat = enums.FadDssUsrVehCat.AIR)`` \n
No help available
"""
param = Conversions.enum_scalar_to_str(veh_pred_cat, enums.FadDssUsrVehCat)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:DSSimulation:USER:RX:VEHicle:PREDefined:CATegory {param}')
# noinspection PyTypeChecker
[docs]
def get_type_py(self) -> enums.FadDssVehTypeAll:
"""
``[SOURce<HW>]:FSIMulator:DSSimulation:USER:RX:VEHicle:PREDefined:TYPE`` \n
Snippet: ``value: enums.FadDssVehTypeAll = driver.source.fsimulator.dsSimulation.user.rx.vehicle.predefined.get_type_py()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:DSSimulation:USER:RX:VEHicle:PREDefined:TYPE?')
return Conversions.str_to_scalar_enum(response, enums.FadDssVehTypeAll)
[docs]
def set_type_py(self, veh_pred_type: enums.FadDssVehTypeAll) -> None:
"""
``[SOURce<HW>]:FSIMulator:DSSimulation:USER:RX:VEHicle:PREDefined:TYPE`` \n
Snippet: ``driver.source.fsimulator.dsSimulation.user.rx.vehicle.predefined.set_type_py(veh_pred_type = enums.FadDssVehTypeAll.AHELicopter)`` \n
No help available
"""
param = Conversions.enum_scalar_to_str(veh_pred_type, enums.FadDssVehTypeAll)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:DSSimulation:USER:RX:VEHicle:PREDefined:TYPE {param}')