edu.bonn.xulu.plugin.appl
Class ModelTimeSnifferPlugin

java.lang.Object
  extended by AbstractNamedObject
      extended by edu.bonn.xulu.plugin.appl.ModelTimeSnifferPlugin
All Implemented Interfaces:
XuluPlugin

public class ModelTimeSnifferPlugin
extends AbstractNamedObject
implements XuluPlugin

Dieses Plugin koppelt sich an alle in Xulu geladenen Modelle und gibt deren absolute Laufzeit (in Sekunden aus). Bei Step-Modellen wird auch die Laufzeit pro Modell-Schitt ausgegeben.

Version:
1.0
Author:
Martin Schmitz (University of Bonn/Germany)

Field Summary
protected  XuluModellingPlatform appl
          Speichert die Xulu-Instanz in der das Plugin ausgefuehrt wird.
protected  Vector<edu.bonn.xulu.plugin.appl.ModelTimeSnifferPlugin.TimeSniffer> sniffers
          Speichert die Listener, die an die Modelle angeschlossen wurden.
protected  boolean started
          Flag, ob das Plugin gestartet ist, oder nicht
 
Constructor Summary
ModelTimeSnifferPlugin()
          Erzeugt eine neue Instanz des Plugins.
 
Method Summary
 void execute(XuluModellingPlatform appl)
          Startet die Ausfuehrung des Plugins.
 boolean isStarted()
          Prueft, ob das Plugin gestartet ist.
 boolean isVisible()
          Prueft, ob die GUI zur Plugin-Konfiguration angezeigt wird.
 void performObjectEvent(ObjectEvent e)
          Wird aufgerufen, wenn sich der Inhalt des Xulu-Modellmanagers aendert.
 void setVisible(boolean visible)
          Macht nichts, da das Plugin keine GUI besitzt.
 void stop()
          Stoppt die Ausfuehrung des Plugins.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

started

protected boolean started
Flag, ob das Plugin gestartet ist, oder nicht


appl

protected XuluModellingPlatform appl
Speichert die Xulu-Instanz in der das Plugin ausgefuehrt wird.


sniffers

protected Vector<edu.bonn.xulu.plugin.appl.ModelTimeSnifferPlugin.TimeSniffer> sniffers
Speichert die Listener, die an die Modelle angeschlossen wurden.

Constructor Detail

ModelTimeSnifferPlugin

public ModelTimeSnifferPlugin()
Erzeugt eine neue Instanz des Plugins.

Method Detail

execute

public void execute(XuluModellingPlatform appl)
Startet die Ausfuehrung des Plugins.

Specified by:
execute in interface XuluPlugin
Parameters:
appl - Instanz der Xulu-Applikation

performObjectEvent

public void performObjectEvent(ObjectEvent e)
Wird aufgerufen, wenn sich der Inhalt des Xulu-Modellmanagers aendert. Wurde ein neues XuluModel hinzugefuegt, wird diesem ein Listener hinzugefuegt, der die Modellierungszeit misst.

Parameters:
e - Ereignis

stop

public void stop()
Stoppt die Ausfuehrung des Plugins.

Specified by:
stop in interface XuluPlugin

isStarted

public boolean isStarted()
Prueft, ob das Plugin gestartet ist.

Specified by:
isStarted in interface XuluPlugin

isVisible

public boolean isVisible()
Prueft, ob die GUI zur Plugin-Konfiguration angezeigt wird.

Specified by:
isVisible in interface XuluPlugin
Returns:
immer false, da das Plugin keine GUI besitzt

setVisible

public void setVisible(boolean visible)
Macht nichts, da das Plugin keine GUI besitzt.

Specified by:
setVisible in interface XuluPlugin