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 #survivalProbabilities

#survivalProbabilities: Probability[]

Private Optional #temporal

#temporal: Temporal<Person> = ...

birth

birth: Date

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

Readonly scenario

scenario: IFScenario

Readonly scenarios

scenarios: string[]

sex

sex: Sex

sort

sort: number

Sort order

Readonly start

start: Date

Readonly type

type: "person"

Accessors

survivalProbabilities

temporal

Methods

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
  • Determine if an item is in a specified scenario.

    Parameters

    • scenario: string

    Returns boolean

states

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