from typing import List

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 IqCls:
	"""Iq commands group definition. 3 total commands, 0 Subgroups, 3 group commands"""

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

	def get_start(self) -> str:
		"""DIAGnostic:BASE:SALignment:PATH:IQ:STARt \n
		Snippet: value: str = driver.diagnostic.salignment.path.iq.get_start() \n
		No command help available \n
			:return: path: No help available
		"""
		response = self._core.io.query_str('DIAGnostic:BASE:SALignment:PATH:IQ:STARt?')
		return trim_str_response(response)

	def set_start(self, path: str) -> None:
		"""DIAGnostic:BASE:SALignment:PATH:IQ:STARt \n
		Snippet: driver.diagnostic.salignment.path.iq.set_start(path = 'abc') \n
		No command help available \n
			:param path: No help available
		"""
		param = Conversions.value_to_quoted_str(path)
		self._core.io.write(f'DIAGnostic:BASE:SALignment:PATH:IQ:STARt {param}')

	def get_state(self) -> List[str]:
		"""DIAGnostic:BASE:SALignment:PATH:IQ:STATe \n
		Snippet: value: List[str] = driver.diagnostic.salignment.path.iq.get_state() \n
		No command help available \n
			:return: state: No help available
		"""
		response = self._core.io.query_str('DIAGnostic:BASE:SALignment:PATH:IQ:STATe?')
		return Conversions.str_to_str_list(response)

	def get_value(self) -> List[str]:
		"""DIAGnostic:BASE:SALignment:PATH:IQ \n
		Snippet: value: List[str] = driver.diagnostic.salignment.path.iq.get_value() \n
		No command help available \n
			:return: path_list: No help available
		"""
		response = self._core.io.query_str('DIAGnostic:BASE:SALignment:PATH:IQ?')
		return Conversions.str_to_str_list(response)
