Apache JMeter
2.0.1.20050615

org.apache.jmeter.visualizers
Class GraphModel

java.lang.Object
  extended byorg.apache.jmeter.visualizers.GraphModel
All Implemented Interfaces:
Clearable, Serializable
Direct Known Subclasses:
TableDataModel

public class GraphModel
extends Object
implements Clearable, Serializable

Version:
$Revision: 1.14 $ Last updated: $Date: 2004/02/13 01:48:46 $
Author:
Michael Stover Created February 8, 2001
See Also:
Serialized Form

Constructor Summary
GraphModel()
          Constructor for the GraphModel object.
 
Method Summary
 void addGraphListener(GraphListener listener)
          Adds a feature to the ModelListener attribute of the GraphModel object.
protected  Sample addNewSample(long sample, long timeStamp, boolean success)
          Adds a feature to the NewSample attribute of the GraphModel object.
 Sample addSample(SampleResult e)
          Adds a feature to the Sample attribute of the GraphModel object.
 void clear()
          Clears the current data of the object.
protected  void fireDataChanged()
           
 long getCurrentAverage()
          Gets the CurrentAverage attribute of the GraphModel object.
 long getCurrentData()
          Gets the CurrentData attribute of the GraphModel object.
 long getCurrentDeviation()
          Gets the CurrentDeviation attribute of the GraphModel object.
 long getCurrentMedian()
           
 float getCurrentThroughput()
           
 long getGraphMax()
           
 Class getGuiClass()
          Gets the GuiClass attribute of the GraphModel object.
 long getMaxSample()
          Gets the Max attribute of the GraphModel object.
 String getName()
          Gets the Name attribute of the GraphModel object.
 int getSampleCount()
          Gets the SampleCount attribute of the GraphModel object.
 List getSamples()
          Gets the Samples attribute of the GraphModel object.
 int getThroughputMax()
           
protected  void quickUpdate(Sample s)
           
 void setName(String name)
          Sets the Name attribute of the GraphModel object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphModel

public GraphModel()
Constructor for the GraphModel object.

Method Detail

setName

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

Parameters:
name - the new Name value

getCurrentData

public long getCurrentData()
Gets the CurrentData attribute of the GraphModel object.

Returns:
the CurrentData value

getCurrentAverage

public long getCurrentAverage()
Gets the CurrentAverage attribute of the GraphModel object.

Returns:
the CurrentAverage value

getCurrentMedian

public long getCurrentMedian()

getCurrentDeviation

public long getCurrentDeviation()
Gets the CurrentDeviation attribute of the GraphModel object.

Returns:
the CurrentDeviation value

getCurrentThroughput

public float getCurrentThroughput()

getSampleCount

public int getSampleCount()
Gets the SampleCount attribute of the GraphModel object.

Returns:
the SampleCount value

getSamples

public List getSamples()
Gets the Samples attribute of the GraphModel object.

Returns:
the Samples value

getGuiClass

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

Returns:
the GuiClass value

getName

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

Returns:
the Name value

getMaxSample

public long getMaxSample()
Gets the Max attribute of the GraphModel object.

Returns:
the Max value

getGraphMax

public long getGraphMax()

getThroughputMax

public int getThroughputMax()

addGraphListener

public void addGraphListener(GraphListener listener)
Adds a feature to the ModelListener attribute of the GraphModel object.

Parameters:
listener - the feature to be added to the ModelListener attribute

addSample

public Sample addSample(SampleResult e)
Adds a feature to the Sample attribute of the GraphModel object.

Parameters:
e - the feature to be added to the Sample attribute

clear

public void clear()
Description copied from interface: Clearable
Clears the current data of the object.

Specified by:
clear in interface Clearable

fireDataChanged

protected void fireDataChanged()

quickUpdate

protected void quickUpdate(Sample s)

addNewSample

protected Sample addNewSample(long sample,
                              long timeStamp,
                              boolean success)
Adds a feature to the NewSample attribute of the GraphModel object.

Parameters:
sample - the feature to be added to the NewSample attribute

Apache JMeter
2.0.1.20050615

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