registry

Global registry for parametric distribution families using singleton pattern.

This module implements a centralized registry that maintains references to all defined parametric families, enabling easy access and management across the application.

class pysatl_core.families.registry.ParametricFamilyRegister[source]

Bases: object

Singleton registry for parametric distribution families.

Maintains a global registry of all parametric families, allowing them to be accessed by name.

Return type:

ParametricFamilyRegister

static __new__(cls)[source]

Create or return the singleton instance.

Return type:

ParametricFamilyRegister

classmethod get(name)[source]

Retrieve a parametric family by name.

Parameters:

name (str) – Name of the family to retrieve.

Returns:

The requested parametric family.

Return type:

ParametricFamily

Raises:

ValueError – If no family with the given name exists.

classmethod register(family)[source]

Register a new parametric family.

Parameters:

family (ParametricFamily) – The family to register.

Raises:

ValueError – If a family with the same name is already registered.

Return type:

None

classmethod contains(name)[source]

Check whether a parametric family with the given name is registered in the registry.

Parameters:

name (str) – Name of the parametric family.

Returns:

True if the family is present in the registry, False otherwise.

Return type:

bool

classmethod list_registered_families()[source]
Return type:

list[str]