de.cau.cs.kieler.kiml.grana
Class AbstractAnalysisBundle

java.lang.Object
  extended by de.cau.cs.kieler.kiml.grana.AbstractAnalysisBundle

public abstract class AbstractAnalysisBundle
extends Object

An analysis bundle can provide several analyses. It is required to notify registered IBundleChangedListener about any added or removed analyses.

Rating red

Constructor Summary
AbstractAnalysisBundle()
           
 
Method Summary
 void addBundleChangedListener(IBundleChangedListener listener)
          Adds a listener to the bundle.
abstract  Collection<AbstractInfoAnalysis> getAnalyses()
          Returns a collection of all analyses provided by this bundle.
protected  void notifyListenersAnalysisAdded(AbstractInfoAnalysis analysis)
          Notifies all listeners that an analysis was added.
protected  void notifyListenersAnalysisRemoved(AbstractInfoAnalysis analysis)
          Notifes all listeners that an analysis was removed.
 void removeBundleChangedListener(IBundleChangedListener listener)
          Removes a listener from the bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAnalysisBundle

public AbstractAnalysisBundle()
Method Detail

getAnalyses

public abstract Collection<AbstractInfoAnalysis> getAnalyses()
Returns a collection of all analyses provided by this bundle.

Returns:
the analyses

addBundleChangedListener

public void addBundleChangedListener(IBundleChangedListener listener)
Adds a listener to the bundle.

Parameters:
listener - the listener

removeBundleChangedListener

public void removeBundleChangedListener(IBundleChangedListener listener)
Removes a listener from the bundle.

Parameters:
listener - the listener

notifyListenersAnalysisAdded

protected void notifyListenersAnalysisAdded(AbstractInfoAnalysis analysis)
Notifies all listeners that an analysis was added.

Parameters:
analysis - the analysis

notifyListenersAnalysisRemoved

protected void notifyListenersAnalysisRemoved(AbstractInfoAnalysis analysis)
Notifes all listeners that an analysis was removed.

Parameters:
analysis - the analysis