//-------------------------------------------------------------------------------------------------
// Module    : $RCSfile: UserInteractionObserver.java,v $
// Version   : $Revision: 0.0 $  $Author: Patrick $  $Date: 06.11.2011 10:16:33 $
// Project   : TaskTreePerformanceTest
// Creation  : 2011 by Patrick
// Copyright : Patrick Harms, 2011
//-------------------------------------------------------------------------------------------------

package de.ugoe.cs.quest.eventcore.userinteraction;

import java.util.Observable;

import de.ugoe.cs.quest.eventcore.guimodel.GUIElement;

//-------------------------------------------------------------------------------------------------
/**
 * TODO comment
 *
 * @version $Revision: $ $Date: $
 * @author  2011, last modified by $Author: $
 */
//-------------------------------------------------------------------------------------------------
public class UserInteractionProvider extends Observable
{
  /** */
  private static final UserInteractionProvider mInstance = new UserInteractionProvider();
  
  /**
   * 
   */
  public static UserInteractionProvider getInstance()
  {
    return mInstance;
  }
  
  /**
   * 
   */
  public void notifyUserInteraction(GUIElement guiElement, Interaction interaction)
  {
    super.setChanged();
    super.notifyObservers(new InteractionEvent(guiElement, interaction));
  }
}
