Apache JMeter
2.0.1.20050615

org.apache.jmeter.visualizers
Class StatVisualizerModel

java.lang.Object
  extended byorg.apache.jmeter.visualizers.StatVisualizerModel
All Implemented Interfaces:
Clearable

public class StatVisualizerModel
extends Object
implements Clearable

Aggregrate Table-Based Reporting Model for JMeter. Props to the people who've done the other visualizers ahead of me (Stefano Mazzocchi), who I borrowed code from to start me off (and much code may still exist). Thank you!

Version:
$Revision: 1.15 $ Last updated: $Date: 2004/02/13 01:48:46 $
Author:
James Boutcher Created March 21, 2002

Nested Class Summary
static class StatVisualizerModel.Test
           
 
Constructor Summary
StatVisualizerModel()
          Default Constuctor.
 
Method Summary
 void addAccumListener(AccumListener listener)
           
 void addGraphListener(GraphListener listener)
          Registers a listener (a visualizer, graph, etc) to this model.
 void addNewSample(SampleResult res)
           
 void clear()
          Reset everything we can in the model.
protected  void fireDataChanged()
          Called when the model changes - then we call out to all registered listeners and tell them to update themselves.
protected  void fireDataChanged(RunningSample s)
           
 Class getGuiClass()
          Gets the GuiClass attribute of the StatVisualizerModel object.
 String getName()
          Gets the Name attribute of the StatVisualizerModel object.
 RunningSample getRunningSample(int index)
           
 RunningSample getRunningSample(String label)
           
 int getRunningSampleCount()
           
 RunningSample getRunningSampleTotal()
           
 void setName(String name)
          Sets the Name attribute of the StatVisualizerModel object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatVisualizerModel

public StatVisualizerModel()
Default Constuctor.

Method Detail

setName

public void setName(String name)
Sets the Name attribute of the StatVisualizerModel object.

Parameters:
name - the new Name value

getGuiClass

public Class getGuiClass()
Gets the GuiClass attribute of the StatVisualizerModel object.

Returns:
the GuiClass value

getName

public String getName()
Gets the Name attribute of the StatVisualizerModel object.

Returns:
the Name value

addGraphListener

public void addGraphListener(GraphListener listener)
Registers a listener (a visualizer, graph, etc) to this model. This will allow the model to fire GUI updates to anyone when data changes, etc.


addAccumListener

public void addAccumListener(AccumListener listener)

getRunningSampleCount

public int getRunningSampleCount()

getRunningSample

public RunningSample getRunningSample(int index)

getRunningSample

public RunningSample getRunningSample(String label)

getRunningSampleTotal

public RunningSample getRunningSampleTotal()

addNewSample

public void addNewSample(SampleResult res)

clear

public void clear()
Reset everything we can in the model.

Specified by:
clear in interface Clearable

fireDataChanged

protected void fireDataChanged()
Called when the model changes - then we call out to all registered listeners and tell them to update themselves.


fireDataChanged

protected void fireDataChanged(RunningSample s)

Apache JMeter
2.0.1.20050615

Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.