src.projections.annuity.base.economic_liability.EconomicLiabilityProjection¶
- class src.projections.annuity.base.economic_liability.EconomicLiabilityProjection(projection_parameters: ProjectionParameters, data_sources: AnnuityDataSources)¶
Sample annuity economic liability projection.
Inheritance Diagram

Variables & Properties
Annuity data sources.
Economy projection entity.
Base contract projection entity.
Methods
__init__(projection_parameters, data_sources)Constructor method.
By default, evaluating this method can trigger a halt in the
main projection loop.Annuity Economic Liability Projection transaction order and method calls within a single time step.
Runs the main projection loop, projecting forward one time step at a time.
Creates a nested output directory structure with the following form:
Convenience method that writes output for
projection entitymembers.Details
- __init__(projection_parameters: ProjectionParameters, data_sources: AnnuityDataSources)¶
Constructor method. Sets the starting time step and declares projection entities. Override this method to declare additional projection entities.
- Parameters:
projection_parameters – Set of projection parameters.
data_sources – Data sources to be read at runtime.
- base_contract: BaseContract¶
Base contract projection entity.
- data_sources: AnnuityDataSources¶
Annuity data sources.
- halt_projection() bool¶
By default, evaluating this method can trigger a halt in the
main projection loop. Override this method to define custom halt logic. For example, halting when the policy count reaches zero.The default behavior is to never halt the projection.
- Returns:
Boolean to indicate whether the projection should be halted.
- output_dir_path: str¶
Output directory path to place projection output.
- project_time_step() None¶
Annuity Economic Liability Projection transaction order and method calls within a single time step.
- Returns:
Nothing.
- projection_parameters: ProjectionParameters¶
Projection parameters.
- run_projection() None¶
Runs the main projection loop, projecting forward one time step at a time. Override this method to create a custom projection loop.
- Returns:
Nothing.
- setup_output() None¶
Creates a nested output directory structure with the following form:
\ Model point ID \ Economic scenario number- Returns:
Nothing.
- write_output() None¶
Convenience method that writes output for
projection entitymembers. Note that this function behaves recursively, and will write output for nested projection entity members as well.- Returns:
Nothing.