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 java.lang.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:
Aleksander Pohl apohllo.at.o2.pl

Constructor Summary
DefaultStatisticsProvider()
           
 
Method Summary
 java.util.List<Statistic> statistics(pl.edu.agh.cast.model.base.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 java.util.List<Statistic> statistics(pl.edu.agh.cast.model.base.IDataProvider dataProvider,
                                            org.eclipse.core.runtime.IProgressMonitor monitor)
Description copied from interface: IStatisticsProvider
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


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.