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
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DoperatorCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("doperator", core, parent)
[docs]
def set(self, search: str, frame: str, field: str, operator: enums.ConditionOperator) -> None:
"""
``SEARch:TRIGger:MPHY:SSIC:DOPerator`` \n
Snippet: ``driver.search.trigger.mphy.ssic.doperator.set(search = 'abc', frame = 'abc', field = 'abc', operator = enums.ConditionOperator.EQUal)`` \n
Sets the operator to set a specific data pattern to be searched in the selected field of the selected frame.
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('frame', frame, DataType.String), ArgSingle('field', field, DataType.String), ArgSingle('operator', operator, DataType.Enum, enums.ConditionOperator))
self._core.io.write(f'SEARch:TRIGger:MPHY:SSIC:DOPerator {param}'.rstrip())