Options
All
  • Public
  • Public/Protected
  • All
Menu

A person (typically a spouse or domestic partner). Birth date and sex must be specified for correct actuarial data.

Hierarchy

  • Item<"person">
    • Person

Implements

Index

Constructors

constructor

Properties

Private Optional #temporal

#temporal: Temporal<Person> = ...

birth

birth: Date

For actuarial and Social Security calculation purposes.

Readonly categories

categories: Category[]

Optional Readonly end

end: boolean

expectencies

expectencies: number[]

expectency

expectency: number

Readonly id

id: string

Readonly name

name: string

Optional notes

notes: string

prettyName

prettyName: string

probabiliies

probabiliies: number[]

Readonly scenario

scenario: IFScenario

Readonly scenarios

scenarios: string[]

sex

sex: Sex

For actuarial purposes.

sort

sort: number

Sort order

Readonly start

start: Date

Readonly type

type: "person"

Accessors

temporal

Methods

Private #compute_probabilities

  • #compute_probabilities(): number[]

age

  • Get the fractional age on the date of interest.

    Parameters

    • date: Date

      the date of interest.

    Returns Age

  • Obtain the integer age reached on the birthday occurring in the specified year.

    Parameters

    • year: Year

      Year as an integer

    Returns Age

hasCategory

  • hasCategory(category: Category): boolean

iage

  • Obtain the integer age on a specified date. This is used for things like tax computation where the age is treated as a year-based threshold or as a table index.

    Parameters

    • date: Date

      Date of interest

    Returns IAge

  • Obtain the integer age reached on the birthday occurring in the specified year.

    Parameters

    • year: Year

      Year as an integer

    Returns IAge

inScenario

  • inScenario(scenario: string): boolean

states

  • states(start: CalendarStep): Generator<IItemState<"scenario" | "incomeStream" | "asset" | "liability" | "income" | "expense" | "incomeTax" | "person" | "text">, any, IItemState<"scenario" | "incomeStream" | "asset" | "liability" | "income" | "expense" | "incomeTax" | "person" | "text">>
  • Parameters

    Returns Generator<IItemState<"scenario" | "incomeStream" | "asset" | "liability" | "income" | "expense" | "incomeTax" | "person" | "text">, any, IItemState<"scenario" | "incomeStream" | "asset" | "liability" | "income" | "expense" | "incomeTax" | "person" | "text">>

Generated using TypeDoc