net.grinder.console.model
Class SampleModelViewsImplementation

java.lang.Object
  extended by net.grinder.console.model.SampleModelViewsImplementation
All Implemented Interfaces:
SampleModelViews

public class SampleModelViewsImplementation
extends Object
implements SampleModelViews

Statistics views to use with the statistics from the Sample SampleModel.

Author:
Philip Aston

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.grinder.console.model.SampleModelViews
SampleModelViews.Listener
 
Constructor Summary
SampleModelViewsImplementation(ConsoleProperties properties, StatisticsServices statisticsServices, SampleModel model)
          Constructor.
 
Method Summary
 void addListener(SampleModelViews.Listener listener)
          Add a new listener.
 StatisticsView getCumulativeStatisticsView()
          Get the cumulative statistics view for this model.
 StatisticsView getIntervalStatisticsView()
          Get the interval statistics view for this model.
 NumberFormat getNumberFormat()
          Returns a NumberFormat which corresponds to the user's preference.
 TestStatisticsQueries getTestStatisticsQueries()
          Return an object allowing access to common functions of test statistics.
 void registerStatisticExpression(ExpressionView statisticExpression)
          Register new statistic expression.
 void resetStatisticsViews()
          Reset the views.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleModelViewsImplementation

public SampleModelViewsImplementation(ConsoleProperties properties,
                                      StatisticsServices statisticsServices,
                                      SampleModel model)
Constructor.

Parameters:
properties - Console properties.
statisticsServices - Statistic services.
model - Sample model.
Method Detail

resetStatisticsViews

public void resetStatisticsViews()
Reset the views.

Specified by:
resetStatisticsViews in interface SampleModelViews

getNumberFormat

public NumberFormat getNumberFormat()
Returns a NumberFormat which corresponds to the user's preference.

Specified by:
getNumberFormat in interface SampleModelViews
Returns:
The number format.

registerStatisticExpression

public void registerStatisticExpression(ExpressionView statisticExpression)
Register new statistic expression.

Specified by:
registerStatisticExpression in interface SampleModelViews
Parameters:
statisticExpression - The expression.

getCumulativeStatisticsView

public StatisticsView getCumulativeStatisticsView()
Get the cumulative statistics view for this model.

Specified by:
getCumulativeStatisticsView in interface SampleModelViews
Returns:
The cumulative statistics view.

getIntervalStatisticsView

public StatisticsView getIntervalStatisticsView()
Get the interval statistics view for this model.

Specified by:
getIntervalStatisticsView in interface SampleModelViews
Returns:
The interval statistics view.

getTestStatisticsQueries

public TestStatisticsQueries getTestStatisticsQueries()
Return an object allowing access to common functions of test statistics.

Specified by:
getTestStatisticsQueries in interface SampleModelViews
Returns:
The TestStatisticsQueries.

addListener

public void addListener(SampleModelViews.Listener listener)
Add a new listener.

Specified by:
addListener in interface SampleModelViews
Parameters:
listener - The listener.


Copyright © 2000-2013. All Rights Reserved.