Skip to content

yield_curve_controller

Classes:

YieldCurveController

YieldCurveController(view: BRMSYieldCurveWidget)

Bases: BRMSController

Methods:

  • filter_dates

    Filter the table to show only rows with dates on or before the given scenario date.

  • get_all_dates

    Return a list of all dates associated with the yields data.

  • init

    Load all treasury yields data into the data container YieldCurve model.

  • set_current_selection

    Set the current selection of the table_view.

  • set_scenario

    Set the scenario and update the plot.

filter_dates

filter_dates(scenario: Scenario) -> None

Filter the table to show only rows with dates on or before the given scenario date.

get_all_dates

get_all_dates() -> list[date]

Return a list of all dates associated with the yields data.

init

init(scenario_manager: ScenarioManager) -> None

Load all treasury yields data into the data container YieldCurve model.

set_current_selection

set_current_selection(row: int, column: int)

Set the current selection of the table_view.

:param row: The row index of the selection. :param column: The column index of the selection.

set_scenario

set_scenario(scenario: Scenario) -> None

Set the scenario and update the plot.

:param scenario: The Scenario object containing the term structure.