Source code for RsFsw.Implementations.Diagnostic.Hums.Utilization.Activity.Tracking.State

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

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

[docs] def set(self, idn: float, state: bool) -> None: """ ``DIAGnostic:HUMS:UTILization:ACTivity:TRACking:STATe`` \n Snippet: ``driver.diagnostic.hums.utilization.activity.tracking.state.set(idn = 1.0, state = False)`` \n No help available """ param = ArgSingleList().compose_cmd_string(ArgSingle('idn', idn, DataType.Float), ArgSingle('state', state, DataType.Boolean)) self._core.io.write(f'DIAGnostic:HUMS:UTILization:ACTivity:TRACking:STATe {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class StateStruct(StructBase): """ Response structure. Fields: \n - 1 Idn: float: No parameter help available - 2 State: bool: No parameter help available """ __meta_args_list = [ ArgStruct.scalar_float('Idn'), ArgStruct.scalar_bool('State')] def __init__(self): StructBase.__init__(self, self) self.Idn: float = None self.State: bool = None
[docs] def get(self) -> StateStruct: """ ``DIAGnostic:HUMS:UTILization:ACTivity:TRACking:STATe`` \n Snippet: ``value: StateStruct = driver.diagnostic.hums.utilization.activity.tracking.state.get()`` \n No help available :return: structure: for return value, see the help for StateStruct structure arguments. """ return self._core.io.query_struct(f'DIAGnostic:HUMS:UTILization:ACTivity:TRACking:STATe?', self.__class__.StateStruct())