Source code for RsSmbv.Implementations.Source.Pulm.Train.Hopping.Ontime

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

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

[docs] def get_points(self) -> int: """ ``[SOURce<HW>]:PULM:TRAin:HOPPing:ONTime:POINts`` \n Snippet: ``value: int = driver.source.pulm.train.hopping.ontime.get_points()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:PULM:TRAin:HOPPing:ONTime:POINts?') return Conversions.str_to_int(response)
[docs] def get_value(self) -> str: """ ``[SOURce<HW>]:PULM:TRAin:HOPPing:ONTime`` \n Snippet: ``value: str = driver.source.pulm.train.hopping.ontime.get_value()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:PULM:TRAin:HOPPing:ONTime?') return trim_str_response(response)
[docs] def set_value(self, ontime: str) -> None: """ ``[SOURce<HW>]:PULM:TRAin:HOPPing:ONTime`` \n Snippet: ``driver.source.pulm.train.hopping.ontime.set_value(ontime = 'abc')`` \n No help available """ param = Conversions.value_to_quoted_str(ontime) self._core.io.write(f'SOURce<HwInstance>:PULM:TRAin:HOPPing:ONTime {param}')