Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

_isDisposed

_isDisposed: boolean = false

_observers

_observers: Set<Observer>

Private _trigger

_trigger: Real

Accessors

isDisposed

  • get isDisposed(): boolean

Methods

accept

date

  • date(): 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

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

price

registerObserver

trigger

  • Returns Real

type

  • Returns Type

unregisterObserver