Source code for RsSmw.Implementations.Source.Fsimulator.DsSimulation.User.Tx.Vehicle.User

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 UserCls:
	"""
	| Commands in total: 2
	| Subgroups: 0
	| Direct child commands: 2
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("user", core, parent)

[docs] def get_catalog(self) -> List[str]: """ ``[SOURce<HW>]:FSIMulator:DSSimulation:USER:TX:VEHicle:USER:CATalog`` \n Snippet: ``value: List[str] = driver.source.fsimulator.dsSimulation.user.tx.vehicle.user.get_catalog()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:DSSimulation:USER:TX:VEHicle:USER:CATalog?') return Conversions.str_to_str_list(response)
[docs] def get_select(self) -> str: """ ``[SOURce<HW>]:FSIMulator:DSSimulation:USER:TX:VEHicle:USER:SELect`` \n Snippet: ``value: str = driver.source.fsimulator.dsSimulation.user.tx.vehicle.user.get_select()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:DSSimulation:USER:TX:VEHicle:USER:SELect?') return trim_str_response(response)
[docs] def set_select(self, veh_user_select: str) -> None: """ ``[SOURce<HW>]:FSIMulator:DSSimulation:USER:TX:VEHicle:USER:SELect`` \n Snippet: ``driver.source.fsimulator.dsSimulation.user.tx.vehicle.user.set_select(veh_user_select = 'abc')`` \n No help available """ param = Conversions.value_to_quoted_str(veh_user_select) self._core.io.write(f'SOURce<HwInstance>:FSIMulator:DSSimulation:USER:TX:VEHicle:USER:SELect {param}')