Reference Source
public class | source

Command

Extends:

devapt-core-common/dist/js/base/loggable~LoggableNameTypeSettingsLoggable → Command

Direct Subclass:

DisplayCommand, WorkerCommand

Constructor Summary

Public Constructor
public abstract

constructor(arg_runtime: object, arg_settings: object, arg_log_context: string | undefined): nothing

Creates an instance of Command, do not use directly but in a sub class.

Member Summary

Public Members
public

Method Summary

Public Methods
public

do(): Promise

Do command.

public

Undo command.

Private Methods
private

Do command.

private

Undo command.

Inherited Summary

From class NameTypeSettingsLoggable
public
private
private
private

_ui: *

public

Get instance name.

public

Get router.

public

Get runtime.

public

Get instance settings.

public

get_state_store(): Store

Get runtime state store.

public

Get instance type.

public

get_ui(): UI

Get UI.

public

Check if instance settings is valid.

Public Constructors

public abstract constructor(arg_runtime: object, arg_settings: object, arg_log_context: string | undefined): nothing source

Creates an instance of Command, do not use directly but in a sub class.

Override:

NameTypeSettingsLoggable#constructor

Params:

NameTypeAttributeDescription
arg_runtime object

runtime.

arg_settings object

instance settings.

arg_log_context string | undefined

context of traces of this instance (optional).

Return:

nothing

Public Members

public is_command: boolean source

Public Methods

public do(): Promise source

Do command.

Return:

Promise

public undo(): Promise source

Undo command.

Return:

Promise

Private Methods

private _do(): Promise source

Do command.

Return:

Promise

private _undo(): Promise source

Undo command.

Return:

Promise