export class Reactor {

  private events: object = {};

  private getOrCreateEvent(eventName: string): Event {
    let event: Event = this.events[eventName];
    if (event === undefined) {
      event = new Event(eventName);
      this.events[eventName] = event;
    }
    return event;
  }