from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
from ....... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ProfileCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("profile", core, parent)
[docs]
def set(self, profile: enums.FadingProfileA, fadingGroup=repcap.FadingGroup.Default, path=repcap.Path.Default) -> None:
"""
``[SOURce<HW>]:FSIMulator:DEL:GROup<ST>:PATH<CH>:PROFile`` \n
Snippet: ``driver.source.fsimulator.delPy.group.path.profile.set(profile = enums.FadingProfileA.BELLindoor, fadingGroup = repcap.FadingGroup.Default, path = repcap.Path.Default)`` \n
Selects the fading profile for the paths.
:param profile: SPATh | RAYLeigh | PDOPpler | RICE | CPHase | OGAUs | TGAUs | DGAUs | WDOPpler | WRICe | GDOPpler | GFD8 | GFD1 | WATTerson | CUSTom | SCM | BELLindoor | BELVehicle SPAT static transmission path PDOPpler | RAYLeigh | RICE | CUSTom | SCM pure Doppler | Rayleigh | Rice | Custom | SCM CPHase constant phase OGAUs | TGAUs | DGAUs | GDOPpler | GFD8 | GFD1 GAUS1 | GAUS2 | GAUSDAB | Gauss Doppler | Gauss (0.08 fd) | Gauss (0.01 fd) WATTerson Gauss (Watterson) WDOPpler | WRICe WiMAX Doppler | WiMAX Rice BELLindoor | BELVehicle Bell Shape tgn Indoor, Bell Shape tgn Moving Vehicle
:param fadingGroup: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Group')
:param path: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Path')
"""
param = Conversions.enum_scalar_to_str(profile, enums.FadingProfileA)
fadingGroup_cmd_val = self._cmd_group.get_repcap_cmd_value(fadingGroup, repcap.FadingGroup)
path_cmd_val = self._cmd_group.get_repcap_cmd_value(path, repcap.Path)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:DEL:GROup{fadingGroup_cmd_val}:PATH{path_cmd_val}:PROFile {param}')
# noinspection PyTypeChecker
[docs]
def get(self, fadingGroup=repcap.FadingGroup.Default, path=repcap.Path.Default) -> enums.FadingProfileA:
"""
``[SOURce<HW>]:FSIMulator:DEL:GROup<ST>:PATH<CH>:PROFile`` \n
Snippet: ``value: enums.FadingProfileA = driver.source.fsimulator.delPy.group.path.profile.get(fadingGroup = repcap.FadingGroup.Default, path = repcap.Path.Default)`` \n
Selects the fading profile for the paths.
:param fadingGroup: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Group')
:param path: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Path')
:return: profile: SPATh | RAYLeigh | PDOPpler | RICE | CPHase | OGAUs | TGAUs | DGAUs | WDOPpler | WRICe | GDOPpler | GFD8 | GFD1 | WATTerson | CUSTom | SCM | BELLindoor | BELVehicle SPAT static transmission path PDOPpler | RAYLeigh | RICE | CUSTom | SCM pure Doppler | Rayleigh | Rice | Custom | SCM CPHase constant phase OGAUs | TGAUs | DGAUs | GDOPpler | GFD8 | GFD1 GAUS1 | GAUS2 | GAUSDAB | Gauss Doppler | Gauss (0.08 fd) | Gauss (0.01 fd) WATTerson Gauss (Watterson) WDOPpler | WRICe WiMAX Doppler | WiMAX Rice BELLindoor | BELVehicle Bell Shape tgn Indoor, Bell Shape tgn Moving Vehicle
"""
fadingGroup_cmd_val = self._cmd_group.get_repcap_cmd_value(fadingGroup, repcap.FadingGroup)
path_cmd_val = self._cmd_group.get_repcap_cmd_value(path, repcap.Path)
response = self._core.io.query_str(f'SOURce<HwInstance>:FSIMulator:DEL:GROup{fadingGroup_cmd_val}:PATH{path_cmd_val}:PROFile?')
return Conversions.str_to_scalar_enum(response, enums.FadingProfileA)