Options
All
  • Public
  • Public/Protected
  • All
Menu

Class simple_event

used to create an Event instance. to be replaced with specific events as soon as we find out which.

Hierarchy

Index

Constructors

constructor

Properties

Private _date

_date: Date

_isDisposed

_isDisposed: boolean = false

_observers

_observers: Set<Observer>

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

registerObserver

unregisterObserver