from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.Types import DataType
from ......Internal.ArgSingleList import ArgSingleList
from ......Internal.ArgSingle import ArgSingle
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class FgsCls:
"""Fgs commands group definition. 2 total commands, 1 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("fgs", core, parent)
@property
def ue(self):
"""ue commands group. 1 Sub-classes, 0 commands."""
if not hasattr(self, '_ue'):
from .Ue import UeCls
self._ue = UeCls(self._core, self._cmd_group)
return self._ue
[docs]
def set(self, name_ta_5_g: str, name_plmn: str, ta_code: int = None) -> None:
"""SCPI: CREate:SIGNaling:TOPology:FGS \n
Snippet: driver.create.signaling.topology.fgs.set(name_ta_5_g = 'abc', name_plmn = 'abc', ta_code = 1) \n
Creates a 5GS tracking area in a selected PLMN and optionally defines the TAC. Assign a unique name to each named object
within the test environment. Assigning an already used name can be rejected with an error message, even if the other
object has not the same type as the new object. \n
:param name_ta_5_g: Assigns a name to the tracking area. The string is used in other commands to select this tracking area.
:param name_plmn: PLMN containing the tracking area.
:param ta_code: Tracking area code (TAC) .
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('name_ta_5_g', name_ta_5_g, DataType.String), ArgSingle('name_plmn', name_plmn, DataType.String), ArgSingle('ta_code', ta_code, DataType.Integer, None, is_optional=True))
self._core.io.write(f'CREate:SIGNaling:TOPology:FGS {param}'.rstrip())
def clone(self) -> 'FgsCls':
"""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 = FgsCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group