Table of Contents

Interface IAugmentationFactory<T, TData>

Namespace
AiDotNet.Augmentation
Assembly
AiDotNet.dll

Factory for creating augmentations from configuration.

public interface IAugmentationFactory<T, TData>

Type Parameters

T

The numeric type for calculations.

TData

The data type being augmented.

Remarks

Enables dynamic augmentation creation from serialized configurations.

Properties

RegisteredTypes

Gets all registered augmentation types.

IReadOnlyList<string> RegisteredTypes { get; }

Property Value

IReadOnlyList<string>

Methods

Create(string, IDictionary<string, object>)

Creates an augmentation from type name and parameters.

IAugmentation<T, TData> Create(string typeName, IDictionary<string, object> parameters)

Parameters

typeName string

The augmentation type name.

parameters IDictionary<string, object>

The parameters for the augmentation.

Returns

IAugmentation<T, TData>

The created augmentation.

GetSearchSpace(string)

Gets the search space for an augmentation type.

AugmentationSearchSpace GetSearchSpace(string typeName)

Parameters

typeName string

The augmentation type name.

Returns

AugmentationSearchSpace

The search space definition.

Register(string, Func<IDictionary<string, object>, IAugmentation<T, TData>>)

Registers a custom augmentation type.

void Register(string typeName, Func<IDictionary<string, object>, IAugmentation<T, TData>> factory)

Parameters

typeName string

The type name.

factory Func<IDictionary<string, object>, IAugmentation<T, TData>>

The factory function.