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 PlmnCls:
"""Plmn commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("plmn", core, parent)
[docs]
def set(self, name_plmn: str, mcc: str = None, mnc: str = None) -> None:
"""SCPI: CREate:SIGNaling:TOPology:PLMN \n
Snippet: driver.create.signaling.topology.plmn.set(name_plmn = 'abc', mcc = 'abc', mnc = 'abc') \n
Creates a PLMN and optionally defines the MCC and MNC of the PLMN. 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_plmn: Assigns a name to the PLMN. The string is used in other commands to select this PLMN.
:param mcc: No help available
:param mnc: No help available
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('name_plmn', name_plmn, DataType.String), ArgSingle('mcc', mcc, DataType.String, None, is_optional=True), ArgSingle('mnc', mnc, DataType.String, None, is_optional=True))
self._core.io.write(f'CREate:SIGNaling:TOPology:PLMN {param}'.rstrip())