pl.edu.agh.cast.model
Class DefaultStatisticsProvider

java.lang.Object
  extended by pl.edu.agh.cast.model.DefaultStatisticsProvider
All Implemented Interfaces:
IStatisticsProvider

public class DefaultStatisticsProvider
extends Object
implements IStatisticsProvider

The default implementation of the statistics provider counts only the number of source and target relations, not taking into account any domain model data associated with them.

Author:
AGH CAST Team

Constructor Summary
DefaultStatisticsProvider()
           
 
Method Summary
 List<Statistic> statistics(IDataProvider dataProvider, org.eclipse.core.runtime.IProgressMonitor monitor)
          Generates statistics for a given data provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStatisticsProvider

public DefaultStatisticsProvider()
Method Detail

statistics

public List<Statistic> statistics(IDataProvider dataProvider,
                                  org.eclipse.core.runtime.IProgressMonitor monitor)
Generates statistics for a given data provider.

Specified by:
statistics in interface IStatisticsProvider
Parameters:
dataProvider - The IDataProvider for which the statistic is generated
monitor - a non-null progress monitor (can be a NullProgressMonitor if progress monitoring is not required)
Returns:
List of statistics generated for the given data provider
See Also:
IStatisticsProvider.statistics(pl.edu.agh.cast.model.base.IDataProvider, org.eclipse.core.runtime.IProgressMonitor)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.