Source code for RsSmw.Implementations.System.Time.DaylightSavingTime.Rule

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

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

[docs] def get_catalog(self) -> str: """ ``SYSTem:TIME:DSTime:RULE:CATalog`` \n Snippet: ``value: str = driver.system.time.daylightSavingTime.rule.get_catalog()`` \n No help available """ response = self._core.io.query_str('SYSTem:TIME:DSTime:RULE:CATalog?') return trim_str_response(response)
[docs] def get_value(self) -> str: """ ``SYSTem:TIME:DSTime:RULE`` \n Snippet: ``value: str = driver.system.time.daylightSavingTime.rule.get_value()`` \n No help available """ response = self._core.io.query_str('SYSTem:TIME:DSTime:RULE?') return trim_str_response(response)
[docs] def set_value(self, pseudo_string: str) -> None: """ ``SYSTem:TIME:DSTime:RULE`` \n Snippet: ``driver.system.time.daylightSavingTime.rule.set_value(pseudo_string = 'abc')`` \n No help available """ param = Conversions.value_to_quoted_str(pseudo_string) self._core.io.write(f'SYSTem:TIME:DSTime:RULE {param}')