Source code for RsSmw.Implementations.Source.Cemulation.Globale

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


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

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

[docs] def get_seed(self) -> int: """ ``[SOURce<HW>]:CEMulation:GLOBal:SEED`` \n Snippet: ``value: int = driver.source.cemulation.globale.get_seed()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:GLOBal:SEED?') return Conversions.str_to_int(response)
[docs] def set_seed(self, seed: int) -> None: """ ``[SOURce<HW>]:CEMulation:GLOBal:SEED`` \n Snippet: ``driver.source.cemulation.globale.set_seed(seed = 1)`` \n No help available """ param = Conversions.decimal_value_to_str(seed) self._core.io.write(f'SOURce<HwInstance>:CEMulation:GLOBal:SEED {param}')