org.pf.tools.cda.core.dependency.analyzer
Class MonitoredDependencyAnalyzer

java.lang.Object
  extended by org.pf.tools.cda.core.dependency.analyzer.MonitoredDependencyAnalyzer
Direct Known Subclasses:
CircularDependenciesDetector, DependencyAnalyzer

public abstract class MonitoredDependencyAnalyzer
extends java.lang.Object

Provides the common code that is necessary for monitoring the progress of an analyzer's work.

Version:
1.0
Author:
M.Duchrow

Constructor Summary
MonitoredDependencyAnalyzer(IAnalyzableElement elementToAnalyze)
          Initialize the new instance with an element to analyze.
MonitoredDependencyAnalyzer(IAnalyzableElement elementToAnalyze, IProgressMonitor monitor)
          Initialize the new instance with an element to analyze and a progress monitor.
 
Method Summary
abstract  void analyze()
          Starts the analyzing.
 IAnalyzableElement getAnalyzedElement()
           
abstract  int getNumberOfElementsToAnalyze()
          Returns the number of elements this analyzer is processing
 IProgressMonitor getProgressMonitor()
           
 Workset getWorkset()
          Returns the workset of the element that gets analyzed
 boolean isCancelled()
           
 void setProgressMonitor(IProgressMonitor newValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoredDependencyAnalyzer

public MonitoredDependencyAnalyzer(IAnalyzableElement elementToAnalyze)
Initialize the new instance with an element to analyze.


MonitoredDependencyAnalyzer

public MonitoredDependencyAnalyzer(IAnalyzableElement elementToAnalyze,
                                   IProgressMonitor monitor)
Initialize the new instance with an element to analyze and a progress monitor.

Method Detail

getAnalyzedElement

public IAnalyzableElement getAnalyzedElement()

getProgressMonitor

public IProgressMonitor getProgressMonitor()

setProgressMonitor

public void setProgressMonitor(IProgressMonitor newValue)

isCancelled

public boolean isCancelled()

analyze

public abstract void analyze()
Starts the analyzing.


getNumberOfElementsToAnalyze

public abstract int getNumberOfElementsToAnalyze()
Returns the number of elements this analyzer is processing


getWorkset

public Workset getWorkset()
Returns the workset of the element that gets analyzed