Source code for RsFsw.Implementations.Diagnostic.Hums.Utilization

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class UtilizationCls:
	"""
	| Commands in total: 4
	| Subgroups: 2
	| Direct child commands: 1
	"""

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

	@property
	def history(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_history'):
			from .History import HistoryCls
			self._history = HistoryCls(self._core, self._cmd_group)
		return self._history

	@property
	def activity(self):
		"""
		| Commands in total: 2
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_activity'):
			from .Activity import ActivityCls
			self._activity = ActivityCls(self._core, self._cmd_group)
		return self._activity

[docs] def get(self) -> bytes: """ ``DIAGnostic:HUMS:UTILization`` \n Snippet: ``value: bytes = driver.diagnostic.hums.utilization.get()`` \n No help available """ response = self._core.io.query_bin_block_ERROR(f'DIAGnostic:HUMS:UTILization?') return response
def clone(self) -> 'UtilizationCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = UtilizationCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group