src.data_sources.annuity.model_points.ModelPoints

class src.data_sources.annuity.model_points.ModelPoints(path: str)

Data source collection that holds all annuity model points.

Inheritance Diagram

Inheritance diagram of ModelPoints

Variables & Properties

items

A list of all the items in this collection, as a set of key-value pairs.

keys

A list of all the keys in this collection.

Methods

__init__(path)

Constructor method.

Details

__init__(path: str)

Constructor method. Reads data from a JSON file and instantiates annuity model points, organized by model point ID.

Relative path to the model point file:

resource/annuity/model_points.json

Parameters:

path – Path to an annuity model point file.

cache: DataFrame

Internal cache, populated at runtime.

property items: List[Tuple[K, V]]

A list of all the items in this collection, as a set of key-value pairs.

Returns:

List of key-value pairs.

property keys: List[K]

A list of all the keys in this collection.

Returns:

List of keys.