Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Event
    • DefaultSettlement

Index

Constructors

constructor

Properties

_isDisposed

_isDisposed: boolean = false

_observers

_observers: Set<Observer>

Private _recoveryRates

_recoveryRates: Map<Seniority, Real>

Private _settlementDate

_settlementDate: Date

Accessors

isDisposed

  • get isDisposed(): boolean

Methods

accept

date

  • date(): Date
  • Returns Date

dispose

  • dispose(): void
  • Returns void

hasOccurred

  • hasOccurred(d?: Date, includeRefDate?: boolean): boolean
  • returns true if an event has already occurred before a date if is includeRefDate true, then an event has not occurred if its date is the same as the refDate, i.e. this method returns false if the event date is the same as the refDate.

    Parameters

    • Default value d: Date = null
    • Default value includeRefDate: boolean = null

    Returns boolean

init1

init2

  • Parameters

    • Default value date: Date = null
    • Default value seniority: Seniority = Seniority.NoSeniority
    • Default value recoveryRate: Real = 0.4

    Returns DefaultSettlement

notifyObservers

  • notifyObservers(): void
  • This method should be called at the end of non-const methods or when the programmer desires to notify any changes.

    Returns void

recoveryRate

  • Parameters

    Returns Real

registerObserver

unregisterObserver