Defined in: abstracts/AbstractCondition.ts:7
Represents the base interface for all elements within the rules engine. Elements are the building blocks of scripts, pulses, actions, conditions, and parameters.
Extends
AbstractElement<TOptions>
Type Parameters
TOptions
TOptions extends ConditionOptions = ConditionOptions
The type of configuration options for this element.
Constructors
Constructor
new AbstractCondition<
TOptions>(id,type,rawParams,options,neuron):AbstractCondition<TOptions>
Defined in: abstracts/AbstractCondition.ts:15
Parameters
id
string
type
string
rawParams
ParameterInterface<any, any>[]
options
TOptions
neuron
Returns
AbstractCondition<TOptions>
Overrides
Properties
id
readonlyid:string
Defined in: abstracts/AbstractElement.ts:7
Unique identifier for the element instance.
Inherited from
neuron
protectedreadonlyneuron:Neuron
Defined in: abstracts/AbstractCondition.ts:20
options
readonlyoptions:TOptions
Defined in: abstracts/AbstractElement.ts:9
Configuration options specific to this element instance.
Inherited from
params
readonlyparams:Map<string, {getValue:unknown; }>
Defined in: abstracts/AbstractCondition.ts:10
rawParams
readonlyrawParams:ParameterInterface<any,any>[]
Defined in: abstracts/AbstractCondition.ts:18
type
readonlytype: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
Methods
toJSON()
toJSON():
object
Defined in: abstracts/AbstractCondition.ts:26
Returns
object
