[**@sebasoft/neuron-js**](../../README.md)

***

Defined in: [plugins/parameters/SimpleNumberParameter.ts:4](https://github.com/SebaSOFT/neuron-js/blob/aff482a5bc89c6f9dff62f832acdd1bd10d3a175/src/plugins/parameters/SimpleNumberParameter.ts#L4)

Represents a configurable input value for Actions and Conditions.
Parameters allow for reusable logic templates by decoupling the implementation from the values.

## Extends

- [`AbstractParameter`](AbstractParameter.md)\<`number`\>

## Constructors

### Constructor

> **new SimpleNumberParameter**(`id`, `type`, `name`, `value`, `options`, `defaultValue?`): `SimpleNumberParameter`

Defined in: [abstracts/AbstractParameter.ts:10](https://github.com/SebaSOFT/neuron-js/blob/aff482a5bc89c6f9dff62f832acdd1bd10d3a175/src/abstracts/AbstractParameter.ts#L10)

#### Parameters

##### id

`string`

##### type

`string`

##### name

`string`

##### value

`number` \| `null`

##### options

`any`

##### defaultValue?

`number`

#### Returns

`SimpleNumberParameter`

#### Inherited from

[`AbstractParameter`](AbstractParameter.md).[`constructor`](AbstractParameter.md#constructor)

## Properties

### defaultValue?

> `readonly` `optional` **defaultValue?**: `number`

Defined in: [abstracts/AbstractParameter.ts:16](https://github.com/SebaSOFT/neuron-js/blob/aff482a5bc89c6f9dff62f832acdd1bd10d3a175/src/abstracts/AbstractParameter.ts#L16)

An optional fallback value if the primary value is missing or null.

#### Inherited from

[`AbstractParameter`](AbstractParameter.md).[`defaultValue`](AbstractParameter.md#defaultvalue)

***

### id

> `readonly` **id**: `string`

Defined in: [abstracts/AbstractElement.ts:7](https://github.com/SebaSOFT/neuron-js/blob/aff482a5bc89c6f9dff62f832acdd1bd10d3a175/src/abstracts/AbstractElement.ts#L7)

Unique identifier for the element instance.

#### Inherited from

[`AbstractParameter`](AbstractParameter.md).[`id`](AbstractParameter.md#id)

***

### name

> `readonly` **name**: `string`

Defined in: [abstracts/AbstractParameter.ts:13](https://github.com/SebaSOFT/neuron-js/blob/aff482a5bc89c6f9dff62f832acdd1bd10d3a175/src/abstracts/AbstractParameter.ts#L13)

The semantic name of the parameter (e.g., "recipient", "threshold").

#### Inherited from

[`AbstractParameter`](AbstractParameter.md).[`name`](AbstractParameter.md#name)

***

### options

> `readonly` **options**: `any`

Defined in: [abstracts/AbstractElement.ts:9](https://github.com/SebaSOFT/neuron-js/blob/aff482a5bc89c6f9dff62f832acdd1bd10d3a175/src/abstracts/AbstractElement.ts#L9)

Configuration options specific to this element instance.

#### Inherited from

[`AbstractParameter`](AbstractParameter.md).[`options`](AbstractParameter.md#options)

***

### type

> `readonly` **type**: `string`

Defined in: [abstracts/AbstractElement.ts:8](https://github.com/SebaSOFT/neuron-js/blob/aff482a5bc89c6f9dff62f832acdd1bd10d3a175/src/abstracts/AbstractElement.ts#L8)

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

#### Inherited from

[`AbstractParameter`](AbstractParameter.md).[`type`](AbstractParameter.md#type)

***

### value

> **value**: `number` \| `null`

Defined in: [abstracts/AbstractParameter.ts:14](https://github.com/SebaSOFT/neuron-js/blob/aff482a5bc89c6f9dff62f832acdd1bd10d3a175/src/abstracts/AbstractParameter.ts#L14)

The actual value assigned to the parameter.

#### Inherited from

[`AbstractParameter`](AbstractParameter.md).[`value`](AbstractParameter.md#value)

***

### TYPE

> `readonly` `static` **TYPE**: `"simple_number"` = `"simple_number"`

Defined in: [plugins/parameters/SimpleNumberParameter.ts:5](https://github.com/SebaSOFT/neuron-js/blob/aff482a5bc89c6f9dff62f832acdd1bd10d3a175/src/plugins/parameters/SimpleNumberParameter.ts#L5)

## Methods

### execute()

> **execute**(`context`): [`ExecutionResult`](../../types/ExecutionResult/classes/ExecutionResult.md)\<`number` \| `null`\>

Defined in: [abstracts/AbstractParameter.ts:23](https://github.com/SebaSOFT/neuron-js/blob/aff482a5bc89c6f9dff62f832acdd1bd10d3a175/src/abstracts/AbstractParameter.ts#L23)

#### Parameters

##### context

[`ExecutionContext`](../../types/ExecutionContext/interfaces/ExecutionContext.md)

#### Returns

[`ExecutionResult`](../../types/ExecutionResult/classes/ExecutionResult.md)\<`number` \| `null`\>

#### Inherited from

[`AbstractParameter`](AbstractParameter.md).[`execute`](AbstractParameter.md#execute)

***

### getValue()

> **getValue**(`_context`): `number` \| `null`

Defined in: [plugins/parameters/SimpleNumberParameter.ts:7](https://github.com/SebaSOFT/neuron-js/blob/aff482a5bc89c6f9dff62f832acdd1bd10d3a175/src/plugins/parameters/SimpleNumberParameter.ts#L7)

#### Parameters

##### \_context

[`ExecutionContext`](../../types/ExecutionContext/interfaces/ExecutionContext.md)

#### Returns

`number` \| `null`

#### Overrides

[`AbstractParameter`](AbstractParameter.md).[`getValue`](AbstractParameter.md#getvalue)

***

### toJSON()

> **toJSON**(): `object`

Defined in: [abstracts/AbstractParameter.ts:34](https://github.com/SebaSOFT/neuron-js/blob/aff482a5bc89c6f9dff62f832acdd1bd10d3a175/src/abstracts/AbstractParameter.ts#L34)

#### Returns

`object`

#### Inherited from

[`AbstractParameter`](AbstractParameter.md).[`toJSON`](AbstractParameter.md#tojson)
