Skip to content

@sebasoft/neuron-js


Defined in: abstracts/AbstractRule.ts:6

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

Extends

Extended by

Constructors

Constructor

new AbstractRule(id, type, conditions, actions, options): AbstractRule

Defined in: abstracts/AbstractRule.ts:7

Parameters

id

string

type

string

conditions

ConditionInterface<ConditionOptions>[]

actions

ActionInterface<ActionOptions>[]

options

RuleOptions

Returns

AbstractRule

Overrides

AbstractElement.constructor

Properties

actions

readonly actions: ActionInterface<ActionOptions>[]

Defined in: abstracts/AbstractRule.ts:11


conditions

readonly conditions: ConditionInterface<ConditionOptions>[]

Defined in: abstracts/AbstractRule.ts:10


id

readonly id: string

Defined in: abstracts/AbstractElement.ts:7

Unique identifier for the element instance.

Inherited from

AbstractElement.id


options

readonly options: RuleOptions

Defined in: abstracts/AbstractElement.ts:9

Configuration options specific to this element instance.

Inherited from

AbstractElement.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.

Inherited from

AbstractElement.type

Methods

toJSON()

abstract toJSON(): object

Defined in: abstracts/AbstractElement.ts:12

Returns

object

Inherited from

AbstractElement.toJSON