org.ourgrid.mygrid.ui.gui
Class GuiEventEngine

java.lang.Object
  extended by org.ourgrid.mygrid.ui.gui.GuiEventEngine
All Implemented Interfaces:
java.lang.Runnable, EventEngine<GUIActionEvent>

public class GuiEventEngine
extends java.lang.Object
implements EventEngine<GUIActionEvent>

This class is responsible for receiving events that come from the EBSchedulerFacade and process them.


Constructor Summary
GuiEventEngine(MyGridGUI gui)
          Creates a new PeerEventEngine.
 
Method Summary
 boolean isAlive()
           
 void putEvent(GUIActionEvent event)
          Inserts a Event- to be processed - into a internal EventQueue.
 void run()
          Consumes events from internal EventQueue.
 void startProcessing()
          Begin consuming of events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiEventEngine

public GuiEventEngine(MyGridGUI gui)
Creates a new PeerEventEngine.

Method Detail

startProcessing

public void startProcessing()
Begin consuming of events. Consuming means remove events from the queue and process (call the process() method) them.

Specified by:
startProcessing in interface EventEngine<GUIActionEvent>

putEvent

public void putEvent(GUIActionEvent event)
Inserts a Event- to be processed - into a internal EventQueue.

Specified by:
putEvent in interface EventEngine<GUIActionEvent>
Parameters:
event - A Event to be processed.

run

public void run()
Consumes events from internal EventQueue. In other words, it removes events from the queue and process (call the process() method) them.

Specified by:
run in interface java.lang.Runnable

isAlive

public boolean isAlive()
See Also:
EBSyncShutdownable.isAlive()