Source code for RsSmw.Implementations.Sconfiguration.Bextension.Setup

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


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

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

	@property
	def file(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_file'):
			from .File import FileCls
			self._file = FileCls(self._core, self._cmd_group)
		return self._file

	@property
	def predefined(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_predefined'):
			from .Predefined import PredefinedCls
			self._predefined = PredefinedCls(self._core, self._cmd_group)
		return self._predefined

	# noinspection PyTypeChecker
[docs] def get_status(self) -> enums.RfPortStatus: """ ``SCONfiguration:BEXTension:SETup:STATus`` \n Snippet: ``value: enums.RfPortStatus = driver.sconfiguration.bextension.setup.get_status()`` \n No help available """ response = self._core.io.query_str('SCONfiguration:BEXTension:SETup:STATus?') return Conversions.str_to_scalar_enum(response, enums.RfPortStatus)
def clone(self) -> 'SetupCls': """ 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 = SetupCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group