from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AdGenerationCls:
"""
| Commands in total: 60
| Subgroups: 9
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("adGeneration", core, parent)
@property
def acquisition(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_acquisition'):
from .Acquisition import AcquisitionCls
self._acquisition = AcquisitionCls(self._core, self._cmd_group)
return self._acquisition
@property
def almanac(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_almanac'):
from .Almanac import AlmanacCls
self._almanac = AlmanacCls(self._core, self._cmd_group)
return self._almanac
@property
def beidou(self):
"""
| Commands in total: 9
| Subgroups: 3
| Direct child commands: 0
"""
if not hasattr(self, '_beidou'):
from .Beidou import BeidouCls
self._beidou = BeidouCls(self._core, self._cmd_group)
return self._beidou
@property
def galileo(self):
"""
| Commands in total: 9
| Subgroups: 3
| Direct child commands: 0
"""
if not hasattr(self, '_galileo'):
from .Galileo import GalileoCls
self._galileo = GalileoCls(self._core, self._cmd_group)
return self._galileo
@property
def glonass(self):
"""
| Commands in total: 10
| Subgroups: 4
| Direct child commands: 0
"""
if not hasattr(self, '_glonass'):
from .Glonass import GlonassCls
self._glonass = GlonassCls(self._core, self._cmd_group)
return self._glonass
@property
def gps(self):
"""
| Commands in total: 9
| Subgroups: 3
| Direct child commands: 0
"""
if not hasattr(self, '_gps'):
from .Gps import GpsCls
self._gps = GpsCls(self._core, self._cmd_group)
return self._gps
@property
def navic(self):
"""
| Commands in total: 9
| Subgroups: 3
| Direct child commands: 0
"""
if not hasattr(self, '_navic'):
from .Navic import NavicCls
self._navic = NavicCls(self._core, self._cmd_group)
return self._navic
@property
def navigation(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_navigation'):
from .Navigation import NavigationCls
self._navigation = NavigationCls(self._core, self._cmd_group)
return self._navigation
@property
def qzss(self):
"""
| Commands in total: 9
| Subgroups: 3
| Direct child commands: 0
"""
if not hasattr(self, '_qzss'):
from .Qzss import QzssCls
self._qzss = QzssCls(self._core, self._cmd_group)
return self._qzss
# noinspection PyTypeChecker
[docs]
def get_mode(self) -> enums.Hybrid:
"""
``[SOURce<HW>]:BB:GNSS:ADGeneration:MODE`` \n
Snippet: ``value: enums.Hybrid = driver.source.bb.gnss.adGeneration.get_mode()`` \n
Defines the type of assistance data to be loaded.
:return: mode: GPS | GALileo | GLONass | NAVic | QZSS | SBAS | BEIDou
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:ADGeneration:MODE?')
return Conversions.str_to_scalar_enum(response, enums.Hybrid)
[docs]
def set_mode(self, mode: enums.Hybrid) -> None:
"""
``[SOURce<HW>]:BB:GNSS:ADGeneration:MODE`` \n
Snippet: ``driver.source.bb.gnss.adGeneration.set_mode(mode = enums.Hybrid.BEIDou)`` \n
Defines the type of assistance data to be loaded.
:param mode: GPS | GALileo | GLONass | NAVic | QZSS | SBAS | BEIDou
"""
param = Conversions.enum_scalar_to_str(mode, enums.Hybrid)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:ADGeneration:MODE {param}')
def clone(self) -> 'AdGenerationCls':
"""
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 = AdGenerationCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group