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:
objectSingleton registry for parametric distribution families.
Maintains a global registry of all parametric families, allowing them to be accessed by name.
- Return type:
- 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: