pub struct CalcManager { /* private fields */ }

Implementations

The manager implementation of the AmFn engine component.

Create and return a new calc manager element.

Arguments
  • core_manager_param - CoreManager element.
Return
  • See description.

Initialize the calc manager element.

Arguments
  • calc_manager - Calculation manager.

Get the core manager.

Return
  • See description.

Clear all engine elements and lists.

Copies the event list from the currently selected template event into a new event list.

Arguments
  • calc_manager - Calculation manager.
  • date_param - Base starting date for the new event(s).
  • end_date_param - Base ending date for the new event(s).
  • new_date_param - Next date for the new event(s) (i.e., normally end_date_param plus one period).
  • frequency_param - Next frequency for the new event(s).
Return
  • The new event list, otherwise an error code.

Get the combine principal change events. The cashflow and user preferences are searched in that order.

Arguments
  • cashflow - Search the cashflow preferences.
Return
  • See description.

Get the After balancing and during compression. The cashflow and user preferences are searched in that order.

Arguments
  • cashflow - Search the cashflow preferences.
Return
  • See description.

Get the resolved cross rate code. The cashflow and user preferences are searched in that order.

Arguments
  • cashflow - Search the cashflow preferences.
Return
  • See description.

Get the resolved start of fiscal year. The cashflow and user preferences are searched in that order.

Arguments
  • cashflow - Search the cashflow preferences.
Return
  • See description.

Get the resolved number of significant decimal digits. The cashflow and user preferences are searched in that order.

Arguments
  • cashflow - Search the cashflow preferences.
Return
  • See description.

Get the resolved default encoding. The cashflow and user preferences are searched in that order.

Arguments
  • cashflow - Search the cashflow preferences.
Return
  • See description.

Get the resolved target value. The cashflow and user preferences are searched in that order.

Return
  • See description.

Searches the various descriptor lists, from lowest to highest, and returns the constant value for a group, name, type, and code.

Arguments
  • group - The group name of the descriptor.
  • name - The name of the descriptor.
  • desc_type - The type of the descriptor.
  • code - The code of the descriptor.
  • cashflow - Search the cashflow descriptor list.
  • is_event - Search the event descriptor list.
Return
  • See description.

Get the resolved template group name. The cashflow and user preferences are searched in that order.

Arguments
  • cashflow - Search the cashflow preferences.
Return
  • See description.

Get the locale list.

Return
  • See description.

Get the mutable locale list.

Return
  • See description.

Get the user preferences element.

Return
  • See description.

Get the mutable user preferences element.

Return
  • See description.

Get the list of cashflows.

Return
  • See description.

Get the mutable list of cashflows.

Return
  • See description.

Get the list of template groups.

Return
  • See description.

Get the mutable list of template groups.

Return
  • See description.

Get the list of exchange rates.

Return
  • See description.

Get the mutable list of exchange rates.

Return
  • See description.

Get the error text corresponding to an error value.

Arguments
  • error - The value of the error.
Return
  • See description.

Get the resolved locale. The cashflow and user preferences are searched in that order.

Arguments
  • cashflow - Search the cashflow preferences.
Return
  • ISO language code (ISO 639)_ISO country code (ISO 3166).

Get the statistic events from the compressed event list. The cashflow and user preferences are searched in that order.

Arguments
  • cashflow - Search the cashflow preferences.
Return
  • See description.

Get the updating json.

Return
  • See description.

Set the list locale.

Arguments
  • list_locale - See description.

Set the preferences.

Arguments
  • preferences - See description.

Set the list cashflow.

Arguments
  • list_cashflow - See description.

Set the list template group.

Arguments
  • list_template_group - See description.

Set the list exchange rate.

Arguments
  • list_exchange_rate - See description.

Set the updating json.

Arguments
  • value_param - See description.

Get the column name resource key.

Arguments
  • column_value - Column name value.
Return
  • See description.

Calculates number of intervals between two dates. If intDate2 is greater than or equal to intDate1, the result will be positive, otherwise the result will be negative.

Arguments
  • date1 - First date in YYYYMMDD format.
  • date2 - Second date in YYYYMMDD format.
  • frequency - Date frequency.
  • intervals - Number of intervals of frequency.
  • eom - Adjust successive dates to end of month.
Return
  • Number of intervals (positive or negative).

Calculates a new date based upon a given date and number of intervals. If intervals is positive, the resulting date will be greater than event_date, otherwise the resulting date will be less than event_date.

Arguments
  • event_date - Date in YYYYMMDD format.
  • periods - Number of periods.
  • frequency - Date frequency.
  • intervals - Number of intervals of frequency.
  • eom - Adjust successive dates to end of month.
Return
  • New date in YYYYMMDD format.

Calculates a new date based upon a given date and number of intervals.

Arguments
  • event_date - Date in YYYYMMDD format.
  • periods - Number of periods.
  • frequency - Date frequency.
  • intervals - Number of intervals of frequency.
  • eom - Adjust successive dates to end of month.
Return
  • New date in YYYYMMDD format.

Returns the current date in YYYYMMDD format.

Return
  • Current date in YYYYMMDD format.

Return the number of intervals in a year for a frequency.

Arguments
  • frequency - Frequency value.
Return
  • See description.

Return the number of intervals in a year for a frequency mnemonic.

Arguments
  • frequency - The frequency mnemonic.
Return
  • See description.

Converts a Daily Rate (DR) into a Nominal Annual Rate (NAR).

Arguments
  • dr - The daily interest rate expressed as a percentage.
  • days_in_year - Number of days in the year.
Return
  • The nominal annual rate as a percentage.

Convert an Effective Annual Rate (EAR) into a Nominal Annual Rate (NAR).

Arguments
  • ear - The effective annual interest rate expressed as a percentage.
  • compound_frequency - Actual compounding frequency.
  • days_in_year - Number of days in the year.
Return
  • The nominal annual rate as a percentage.

Converts a Nominal Annual Rate (NAR) into a Daily Rate (DR).

Arguments
  • nar - The nominal annual interest rate expressed as a percentage.
  • days_in_year - Number of days in the year.
Return
  • The daily rate as a percentage.

Convert a Nominal Annual Rate (NAR) into an Effective Annual Rate (EAR).

Arguments
  • nar - The nominal annual interest rate expressed as a percentage.
  • compound_frequency - Actual compounding frequency.
  • days_in_year - Number of days in the year.
Return
  • The effective annual rate as a percentage.

Convert a Nominal Annual Rate (NAR) into a Periodic Rate (PR).

Arguments
  • nar - The nominal annual interest rate expressed as a percentage.
  • frequency - Frequency value.
  • days_in_year - Number of days in the year.
Return
  • The periodic rate as a percentage.

Convert a Periodic Rate (PR) into a Nominal Annual Rate (NAR).

Arguments
  • pr - The periodic interest rate expressed as a percentage.
  • frequency - Frequency value.
  • days_in_year - Number of days in the year.
Return
  • The nominal annual rate as a percentage.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.