API Docs for: 2.6
Show:

operator Class

Module: operator

Provides the operator functions.

Item Index

Methods

Properties

Methods

config

(
  • path
)

Configures the groups of the operator panel.

The method can throw an Exception.

Parameters:

  • path String

    The file path of the configuration file. It must use the JSON syntax.

getJSONGroups

() Object

Returns the JSON representation of operator panel groups.

Returns:

Object:

The JSON representation of operator panel groups.

setLogger

(
  • log
)
static

Set the logger to be used.

Parameters:

  • log Object

    The logger object. It must have at least three methods: info, warn and error as console object.

Properties

groups

Object private

The list of the groups of the operator panel. The keys are the names of the groups and the values are the Group objects.

Default: {}

IDLOG

String private final

The module identifier used by the logger.

Default: [operator]

logger

Object private

The logger. It must have at least three methods: info, warn and error.

Default: console