appl.parallel.plugin.event
Class SimpleCommEventMonitorEngine

java.lang.Object
  extended by appl.parallel.plugin.event.SimpleCommEventMonitorEngine
All Implemented Interfaces:
TimeMonitor, TransferMonitor, ActionListener, EventListener

public class SimpleCommEventMonitorEngine
extends Object
implements TimeMonitor, TransferMonitor, ActionListener

Controls the SimpleCommEventMonitorPlugin

Author:
Dominik Appl

Field Summary
static Comparator LONG_COMPARATOR
          The comparator is used for sorting the values in the JTable
 
Constructor Summary
SimpleCommEventMonitorEngine(RemoteEventHandler eventProxy)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 String getCurrentTimeString()
           
 SimpleCommEventMonitor getMonitor()
           
 void initGUI()
          inits the SimpleCommEventMonitor
 void receiveTimeEvent(TimeEvent t)
          Receive a event
 void receiveTransferEvent(TransferEvent t)
          Receive a event
 void stop()
          stops the execution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LONG_COMPARATOR

public static final Comparator LONG_COMPARATOR
The comparator is used for sorting the values in the JTable

Constructor Detail

SimpleCommEventMonitorEngine

public SimpleCommEventMonitorEngine(RemoteEventHandler eventProxy)
Method Detail

getMonitor

public SimpleCommEventMonitor getMonitor()
Returns:
the GUI for the monitor

initGUI

public void initGUI()
inits the SimpleCommEventMonitor


receiveTimeEvent

public void receiveTimeEvent(TimeEvent t)
Description copied from interface: TimeMonitor
Receive a event

Specified by:
receiveTimeEvent in interface TimeMonitor
Parameters:
t - the event

receiveTransferEvent

public void receiveTransferEvent(TransferEvent t)
Description copied from interface: TransferMonitor
Receive a event

Specified by:
receiveTransferEvent in interface TransferMonitor
Parameters:
t - the event

getCurrentTimeString

public String getCurrentTimeString()

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

stop

public void stop()
stops the execution