Reference Source
public class | source

RuntimeBase

Extends:

LoggableErrorableSettingsable → RuntimeBase

Base class for runtime - main library interface.

Constructor Summary

Public Constructor
public

constructor(arg_log_context: string): nothing

Create Runtime base instance.

Member Summary

Public Members
public

Runtime state (defautl undefined).

public

Class type flag.

Private Members
private

Runtime state store (defautl undefined).

Method Summary

Public Methods
public

Get runtime logger manager.

public

Get state store, a Redux data store.

public

Get store reducers.

public

handle_store_change(): nothing

Handle Redux store changes.

Inherited Summary

From class Loggable
public

Log context.

public

Class type flag.

public

Trace is enabled for this flag.

private

Logger manager instance (default undefined)

public

debug(args: string | array): nothing

Trace DEBUG formatted message.

public

disable_trace(): nothing

Disable traces.

public

enable_trace(): nothing

Enable traces.

public

enter_group(arg_group: string): nothing

Trace INFO message on "enter trace group".

public

error(args: string | array): nothing

Trace ERROR formatted message.

public

Define get class name method for non Instance classes.

public

Get instance context.

public

Get logger manager.

public

Define get instance name method for non Instance classes.

public

Get trace flag.

public

info(args: string | array): nothing

Trace INFO formatted message.

public

leave_group(arg_group: string): nothing

Trace INFO message on "leave trace group".

public

separate_level_1(): nothing

Trace INFO trace level 1 separator.

public

separate_level_2(): nothing

Trace INFO trace level 2 separator.

public

separate_level_3(): nothing

Trace INFO trace level 3 separator.

public

set_trace(arg_value: boolean): nothing

Set trace flag.

public

should_trace(arg_traces_cfg: object): boolean

Calculate should trace flag.

public

should_trace_class(arg_traces_cfg: object): boolean

Calculate should trace flag for classes.

public

should_trace_collection_item(arg_traces_cfg: object, arg_collection_name: string, arg_this_item_accessor: string): boolean

Calculate should trace flag for given collection of names or patterns.

public

should_trace_module(arg_traces_cfg: object): boolean

Calculate should trace flag for modules.

public

should_trace_name(arg_traces_cfg: object): boolean

Calculate should trace flag for instances names.

public

Toggle trace flag.

public

Update trace enabled flag.

public

warn(args: string | array): nothing

Trace WARN formatted message.

From class Errorable
private

Error text (default null).

private

Has error flag (default false).

public

error(arg_msg: string): nothing

Set an error.

public

Default helper for "not implemented" error.

public

Get error message.

public

Test is an error is set.

From class Settingsable
public

$settings: object | Immutable.Map

Instance settings (default undefined).

public

Class type flag.

public

get_setting(arg_name: string | array, arg_default: any): any

Get a value in settings for given key.

public

get_setting_js(arg_name: string | array, arg_default: any): any

Get a value in settings for given key.

public

get_settings(): Immutable.Map

Get instance settings.

public

get_settings_js(): Immutable.Map

Get instance settings.

public

has_setting(arg_name: string): boolean

Test if a key exists in settings.

public

set_setting(arg_name: string, arg_value: any): nothing

Set a value in settings for given key.

public

set_settings(arg_settings: Immutable.Map): nothing

Set instance settings.

Public Constructors

public constructor(arg_log_context: string): nothing source

Create Runtime base instance.

Override:

Settingsable#constructor

Params:

NameTypeAttributeDescription
arg_log_context string

logging context.

Return:

nothing

Public Members

public current_state: object source

Runtime state (defautl undefined).

public is_base_runtime: boolean source

Class type flag.

Private Members

private _state_store: object source

Runtime state store (defautl undefined).

Public Methods

public get_logger_manager(): LoggerManager source

Get runtime logger manager.

Override:

Loggable#get_logger_manager

Return:

LoggerManager

public get_state_store(): object source

Get state store, a Redux data store.

Return:

object

Redux state store.

public get_store_reducers(): function source

Get store reducers.

Return:

function

reducer pure function: (previous state, action) => new state

public handle_store_change(): nothing source

Handle Redux store changes.

Return:

nothing