Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Private _date

_date: Date

_isDisposed

_isDisposed: boolean = false

_observers

_observers: Set<Observer>

Private _price

_price: Price

Private _type

_type: Type

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

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

  • Returns Price

registerObserver

type

  • Returns Type

unregisterObserver