Source code for RsSmw.Implementations.Source.Cemulation.DsSimulation.TowerToAir

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TowerToAirCls:
	"""
	| Commands in total: 21
	| Subgroups: 7
	| Direct child commands: 4
	"""

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

	@property
	def altitude(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_altitude'):
			from .Altitude import AltitudeCls
			self._altitude = AltitudeCls(self._core, self._cmd_group)
		return self._altitude

	@property
	def angle(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_angle'):
			from .Angle import AngleCls
			self._angle = AngleCls(self._core, self._cmd_group)
		return self._angle

	@property
	def flength(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_flength'):
			from .Flength import FlengthCls
			self._flength = FlengthCls(self._core, self._cmd_group)
		return self._flength

	@property
	def radius(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_radius'):
			from .Radius import RadiusCls
			self._radius = RadiusCls(self._core, self._cmd_group)
		return self._radius

	@property
	def rate(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_rate'):
			from .Rate import RateCls
			self._rate = RateCls(self._core, self._cmd_group)
		return self._rate

	@property
	def speed(self):
		"""
		| Commands in total: 6
		| Subgroups: 0
		| Direct child commands: 6
		"""
		if not hasattr(self, '_speed'):
			from .Speed import SpeedCls
			self._speed = SpeedCls(self._core, self._cmd_group)
		return self._speed

	@property
	def trip(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_trip'):
			from .Trip import TripCls
			self._trip = TripCls(self._core, self._cmd_group)
		return self._trip

[docs] def get_cacceleration(self) -> bool: """ ``[SOURce<HW>]:CEMulation:DSSimulation:TOWertoair:CACCeleration`` \n Snippet: ``value: bool = driver.source.cemulation.dsSimulation.towerToAir.get_cacceleration()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:DSSimulation:TOWertoair:CACCeleration?') return Conversions.str_to_bool(response)
[docs] def set_cacceleration(self, const_acceleration: bool) -> None: """ ``[SOURce<HW>]:CEMulation:DSSimulation:TOWertoair:CACCeleration`` \n Snippet: ``driver.source.cemulation.dsSimulation.towerToAir.set_cacceleration(const_acceleration = False)`` \n No help available """ param = Conversions.bool_to_str(const_acceleration) self._core.io.write(f'SOURce<HwInstance>:CEMulation:DSSimulation:TOWertoair:CACCeleration {param}')
[docs] def preset(self) -> None: """ ``[SOURce<HW>]:CEMulation:DSSimulation:TOWertoair:PRESet`` \n Snippet: ``driver.source.cemulation.dsSimulation.towerToAir.preset()`` \n No help available """ self._core.io.write(f'SOURce<HwInstance>:CEMulation:DSSimulation:TOWertoair:PRESet')
[docs] def preset_with_opc(self, opc_timeout_ms: int = -1) -> None: """ ``[SOURce<HW>]:CEMulation:DSSimulation:TOWertoair:PRESet`` \n Snippet: ``driver.source.cemulation.dsSimulation.towerToAir.preset_with_opc()`` \n No help available Same as preset, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value. :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ self._core.io.write_with_opc(f'SOURce<HwInstance>:CEMulation:DSSimulation:TOWertoair:PRESet', opc_timeout_ms)
# noinspection PyTypeChecker
[docs] def get_terrain(self) -> enums.FadDssTerrType: """ ``[SOURce<HW>]:CEMulation:DSSimulation:TOWertoair:TERRain`` \n Snippet: ``value: enums.FadDssTerrType = driver.source.cemulation.dsSimulation.towerToAir.get_terrain()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:DSSimulation:TOWertoair:TERRain?') return Conversions.str_to_scalar_enum(response, enums.FadDssTerrType)
[docs] def set_terrain(self, terrain_type: enums.FadDssTerrType) -> None: """ ``[SOURce<HW>]:CEMulation:DSSimulation:TOWertoair:TERRain`` \n Snippet: ``driver.source.cemulation.dsSimulation.towerToAir.set_terrain(terrain_type = enums.FadDssTerrType.FORest)`` \n No help available """ param = Conversions.enum_scalar_to_str(terrain_type, enums.FadDssTerrType) self._core.io.write(f'SOURce<HwInstance>:CEMulation:DSSimulation:TOWertoair:TERRain {param}')
# noinspection PyTypeChecker
[docs] def get_type_py(self) -> enums.FadDssVehTypeAir: """ ``[SOURce<HW>]:CEMulation:DSSimulation:TOWertoair:TYPE`` \n Snippet: ``value: enums.FadDssVehTypeAir = driver.source.cemulation.dsSimulation.towerToAir.get_type_py()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:DSSimulation:TOWertoair:TYPE?') return Conversions.str_to_scalar_enum(response, enums.FadDssVehTypeAir)
[docs] def set_type_py(self, air_vehicle_type: enums.FadDssVehTypeAir) -> None: """ ``[SOURce<HW>]:CEMulation:DSSimulation:TOWertoair:TYPE`` \n Snippet: ``driver.source.cemulation.dsSimulation.towerToAir.set_type_py(air_vehicle_type = enums.FadDssVehTypeAir.AHELicopter)`` \n No help available """ param = Conversions.enum_scalar_to_str(air_vehicle_type, enums.FadDssVehTypeAir) self._core.io.write(f'SOURce<HwInstance>:CEMulation:DSSimulation:TOWertoair:TYPE {param}')
def clone(self) -> 'TowerToAirCls': """ 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 = TowerToAirCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group