Source code for RsSmw.Implementations.Source.Cemulation.DsSimulation.Shiptoship.Rx.Coordinates.Decimal

from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal.Types import DataType
from ........Internal.StructBase import StructBase
from ........Internal.ArgStruct import ArgStruct
from ........Internal.ArgSingleList import ArgSingleList
from ........Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DecimalCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, longitude: float, latitude: float) -> None: """ ``[SOURce<HW>]:CEMulation:DSSimulation:SHIPtoship:RX:COORdinates:[DECimal]`` \n Snippet: ``driver.source.cemulation.dsSimulation.shiptoship.rx.coordinates.decimal.set(longitude = 1.0, latitude = 1.0)`` \n No help available """ param = ArgSingleList().compose_cmd_string(ArgSingle('longitude', longitude, DataType.Float), ArgSingle('latitude', latitude, DataType.Float)) self._core.io.write(f'SOURce<HwInstance>:CEMulation:DSSimulation:SHIPtoship:RX:COORdinates:DECimal {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class DecimalStruct(StructBase): """ Response structure. Fields: \n - 1 Longitude: float: No parameter help available - 2 Latitude: float: No parameter help available """ __meta_args_list = [ ArgStruct.scalar_float('Longitude'), ArgStruct.scalar_float('Latitude')] def __init__(self): StructBase.__init__(self, self) self.Longitude: float = None self.Latitude: float = None
[docs] def get(self) -> DecimalStruct: """ ``[SOURce<HW>]:CEMulation:DSSimulation:SHIPtoship:RX:COORdinates:[DECimal]`` \n Snippet: ``value: DecimalStruct = driver.source.cemulation.dsSimulation.shiptoship.rx.coordinates.decimal.get()`` \n No help available :return: structure: for return value, see the help for DecimalStruct structure arguments. """ return self._core.io.query_struct(f'SOURce<HwInstance>:CEMulation:DSSimulation:SHIPtoship:RX:COORdinates:DECimal?', self.__class__.DecimalStruct())