from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SelectionCls:
"""
| Commands in total: 33
| Subgroups: 10
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("selection", core, parent)
@property
def beidou(self):
"""
| Commands in total: 4
| Subgroups: 0
| Direct child commands: 4
"""
if not hasattr(self, '_beidou'):
from .Beidou import BeidouCls
self._beidou = BeidouCls(self._core, self._cmd_group)
return self._beidou
@property
def channels(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_channels'):
from .Channels import ChannelsCls
self._channels = ChannelsCls(self._core, self._cmd_group)
return self._channels
@property
def eobscuration(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_eobscuration'):
from .Eobscuration import EobscurationCls
self._eobscuration = EobscurationCls(self._core, self._cmd_group)
return self._eobscuration
@property
def galileo(self):
"""
| Commands in total: 4
| Subgroups: 0
| Direct child commands: 4
"""
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: 4
| Subgroups: 0
| Direct child commands: 4
"""
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: 4
| Subgroups: 0
| Direct child commands: 4
"""
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: 4
| Subgroups: 0
| Direct child commands: 4
"""
if not hasattr(self, '_navic'):
from .Navic import NavicCls
self._navic = NavicCls(self._core, self._cmd_group)
return self._navic
@property
def qzss(self):
"""
| Commands in total: 4
| Subgroups: 0
| Direct child commands: 4
"""
if not hasattr(self, '_qzss'):
from .Qzss import QzssCls
self._qzss = QzssCls(self._core, self._cmd_group)
return self._qzss
@property
def reference(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_reference'):
from .Reference import ReferenceCls
self._reference = ReferenceCls(self._core, self._cmd_group)
return self._reference
@property
def sbas(self):
"""
| Commands in total: 4
| Subgroups: 0
| Direct child commands: 4
"""
if not hasattr(self, '_sbas'):
from .Sbas import SbasCls
self._sbas = SbasCls(self._core, self._cmd_group)
return self._sbas
# noinspection PyTypeChecker
[docs]
def get_mode(self) -> enums.SelCriteria:
"""
``[SOURce<HW>]:BB:GNSS:SV:SELection:MODE`` \n
Snippet: ``value: enums.SelCriteria = driver.source.bb.gnss.sv.selection.get_mode()`` \n
Selects a criterium to define the initial satellite constellation.
:return: selection_mode: MANual | ELEVation | VISibility | DOP | ADOP MANual Manual selection to add active space vehicles of the satellite constellation and remove inactive space vehicles from the satellite constellation. You can also activate invisible space vehicles. ELEVation Automatic selection of space vehicles according to their highest elevation angle. VISibility Automatic selection of space vehicles according to their longest visibility time. DOP Automatic selection with good dilution of precision (DOP) values at simulation start. ADOP Adaptive DOP mode providing automatic selection with good DOP values at simulation start and during runtime.
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SV:SELection:MODE?')
return Conversions.str_to_scalar_enum(response, enums.SelCriteria)
[docs]
def set_mode(self, selection_mode: enums.SelCriteria) -> None:
"""
``[SOURce<HW>]:BB:GNSS:SV:SELection:MODE`` \n
Snippet: ``driver.source.bb.gnss.sv.selection.set_mode(selection_mode = enums.SelCriteria.ADOP)`` \n
Selects a criterium to define the initial satellite constellation.
:param selection_mode: MANual | ELEVation | VISibility | DOP | ADOP MANual Manual selection to add active space vehicles of the satellite constellation and remove inactive space vehicles from the satellite constellation. You can also activate invisible space vehicles. ELEVation Automatic selection of space vehicles according to their highest elevation angle. VISibility Automatic selection of space vehicles according to their longest visibility time. DOP Automatic selection with good dilution of precision (DOP) values at simulation start. ADOP Adaptive DOP mode providing automatic selection with good DOP values at simulation start and during runtime.
"""
param = Conversions.enum_scalar_to_str(selection_mode, enums.SelCriteria)
self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SV:SELection:MODE {param}')
def clone(self) -> 'SelectionCls':
"""
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 = SelectionCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group