Skip to content

@sebasoft/neuron-js


Defined in: abstracts/AbstractElement.ts:3

Represents the base interface for all elements within the rules engine. Elements are the building blocks of scripts, pulses, actions, conditions, and parameters.

Extended by ​

Type Parameters ​

TOptions ​

TOptions = any

The type of configuration options for this element.

Implements ​

Constructors ​

Constructor ​

new AbstractElement<TOptions>(id, type, options): AbstractElement<TOptions>

Defined in: abstracts/AbstractElement.ts:6

Parameters ​

id ​

string

type ​

string

options ​

TOptions

Returns ​

AbstractElement<TOptions>

Properties ​

id ​

readonly id: string

Defined in: abstracts/AbstractElement.ts:7

Unique identifier for the element instance.

Implementation of ​

ElementInterface.id


options ​

readonly options: TOptions

Defined in: abstracts/AbstractElement.ts:9

Configuration options specific to this element instance.

Implementation of ​

ElementInterface.options


type ​

readonly type: string

Defined in: abstracts/AbstractElement.ts:8

The registered type name of the element. This type is used by the Registry (Neuron) to look up the correct implementation.

Implementation of ​

ElementInterface.type

Methods ​

toJSON() ​

abstract toJSON(): object

Defined in: abstracts/AbstractElement.ts:12

Returns ​

object