from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........ import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TrajectoryCls:
"""
| Commands in total: 12
| Subgroups: 3
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("trajectory", core, parent)
@property
def ephemeris(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_ephemeris'):
from .Ephemeris import EphemerisCls
self._ephemeris = EphemerisCls(self._core, self._cmd_group)
return self._ephemeris
@property
def fapoint(self):
"""
| Commands in total: 3
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_fapoint'):
from .Fapoint import FapointCls
self._fapoint = FapointCls(self._core, self._cmd_group)
return self._fapoint
@property
def tdf(self):
"""
| Commands in total: 6
| Subgroups: 2
| Direct child commands: 3
"""
if not hasattr(self, '_tdf'):
from .Tdf import TdfCls
self._tdf = TdfCls(self._core, self._cmd_group)
return self._tdf
# noinspection PyTypeChecker
[docs]
def get_value(self) -> enums.FadDssUsrTraj:
"""
``[SOURce<HW>]:FSIMulator:DSSimulation:USER:TX:TRAJectory`` \n
Snippet: ``value: enums.FadDssUsrTraj = driver.source.fsimulator.dsSimulation.user.tx.trajectory.get_value()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:FSIMulator:DSSimulation:USER:TX:TRAJectory?')
return Conversions.str_to_scalar_enum(response, enums.FadDssUsrTraj)
[docs]
def set_value(self, trajectory: enums.FadDssUsrTraj) -> None:
"""
``[SOURce<HW>]:FSIMulator:DSSimulation:USER:TX:TRAJectory`` \n
Snippet: ``driver.source.fsimulator.dsSimulation.user.tx.trajectory.set_value(trajectory = enums.FadDssUsrTraj.EPHemeris)`` \n
No help available
"""
param = Conversions.enum_scalar_to_str(trajectory, enums.FadDssUsrTraj)
self._core.io.write(f'SOURce<HwInstance>:FSIMulator:DSSimulation:USER:TX:TRAJectory {param}')
def clone(self) -> 'TrajectoryCls':
"""
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 = TrajectoryCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group