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<"incomeStream" | "person" | "scenario" | "asset" | "liability" | "income" | "expense" | "incomeTax" | "text">, any, IItemState<"incomeStream" | "person" | "scenario" | "asset" | "liability" | "income" | "expense" | "incomeTax" | "text">>
  • Parameters

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

Static inScenario

  • inScenario(scenario: string, scenarios: string[] | IItem<"incomeStream" | "person" | "scenario" | "asset" | "liability" | "income" | "expense" | "incomeTax" | "text">): boolean
  • Parameters

    • scenario: string
    • scenarios: string[] | IItem<"incomeStream" | "person" | "scenario" | "asset" | "liability" | "income" | "expense" | "incomeTax" | "text">

    Returns boolean

Generated using TypeDoc