Defined in: index.ts:65
The Neuron class serves as the central component registry for the rules engine. It manages the availability and instantiation of Parameters, Conditions, Actions, and Rules.
Constructors
Constructor
new Neuron():
Neuron
Defined in: index.ts:76
Creates a new Neuron instance and registers the default built-in plugins.
Returns
Neuron
Methods
getAction()
getAction(
type):ActionConstructor|undefined
Defined in: index.ts:130
Retrieves an action constructor by type.
Parameters
type
string
Returns
ActionConstructor | undefined
getCondition()
getCondition(
type):ConditionConstructor|undefined
Defined in: index.ts:120
Retrieves a condition constructor by type.
Parameters
type
string
Returns
ConditionConstructor | undefined
getParameter()
getParameter(
type):ParameterConstructor<any> |undefined
Defined in: index.ts:110
Retrieves a parameter constructor by type.
Parameters
type
string
Returns
ParameterConstructor<any> | undefined
getRule()
getRule(
type):RuleConstructor|undefined
Defined in: index.ts:140
Retrieves a rule constructor by type.
Parameters
type
string
Returns
RuleConstructor | undefined
registerAction()
registerAction(
type,ctor):void
Defined in: index.ts:125
Registers a custom action type.
Parameters
type
string
ctor
Returns
void
registerCondition()
registerCondition(
type,ctor):void
Defined in: index.ts:115
Registers a custom condition type.
Parameters
type
string
ctor
Returns
void
registerParameter()
registerParameter(
type,ctor):void
Defined in: index.ts:105
Registers a custom parameter type.
Parameters
type
string
ctor
Returns
void
registerRule()
registerRule(
type,ctor):void
Defined in: index.ts:135
Registers a custom rule type.
Parameters
type
string
ctor
Returns
void
