abstract CoreBase(registry, logSource)

Abstract class to be extended by most core classes. Provides access to the Registry and other core modules.

new abstract CoreBase(registry, logSource)

Create the core base object. This needs to be called in the extending class using `super(registry, 'module_name')`.
Parameters:
Name Type Description
registry Registry the core registry
logSource string module name to be used in UI logs
Since:
  • 2.2.0
Author:

Members

protected logSource :string

The module name to use in UI logs

protected registry :Registry

the core registry

protected system :EventEmitter

the application's event smitter

Methods

protected bank() → {BankController}

Returns:
BankController - the core bank controller

protected db() → {Database}

Returns:
Database - the core database library

protected elgatoDM() → {DeviceController}

Returns:
DeviceController - the core device controller

protected graphics() → {Graphics}

Returns:
Graphics - the core graphics controller

protected instance() → {InstanceController}

Returns:
InstanceController - the core instance controller

protected io() → {InterfaceClient}

Returns:
InterfaceClient - the core interface client

protected log(level, message)

Send a log message to the UI
Parameters:
Name Type Description
level string 'debug' | 'info' | 'warn' | 'error'
message atring the message to print

protected page() → {PageController}

Returns:
PageController - the core page controller

protected schedule() → {ScheduleController}

Returns:
ScheduleController - the core schedule controller

protected services() → {ServiceController}

Returns:
ServiceController - the core service controller

protected userconfig() → {UserConfig}

Returns:
UserConfig - the core user config manager