Apache JMeter
1.9

org.apache.jmeter.visualizers
Class GraphAccumModel

java.lang.Object
  |
  +--org.apache.jmeter.visualizers.GraphAccumModel
All Implemented Interfaces:
Clearable, Serializable

public class GraphAccumModel
extends Object
implements Clearable, Serializable

The model that collects the average of the set of pages to be sampled

Version:
1.0
Author:
Khor Soon Hin
See Also:
Serialized Form

Field Summary
protected  long averageSum
          Description of the Field
protected  boolean bigChange
          Description of the Field
protected  long counter
          Description of the Field
protected  SampleResult current
          Description of the Field
protected  List listeners
          Description of the Field
protected  long max
          Description of the Field
protected  String name
          Description of the Field
protected  long previous
          Description of the Field
protected  List samples
          Description of the Field
protected  long variationSum
          Description of the Field
 
Constructor Summary
GraphAccumModel()
          Constructor
 
Method Summary
 void addGraphAccumListener(GraphAccumListener listener)
          Adds a feature to the ModelListener attribute of the GraphAccumModel object
 void addNewSample(SampleResult res)
          Add the new sample to the results
 void clear()
          Clear the results
protected  void fireDataChanged()
          Depending on whether the graph needs to be rescale call the appropriate methods
 List getList()
          Gets the List attribute of the GraphAccumModel object
 long getMax()
          Gets the Max attribute of the GraphAccumModel object
 String getName()
          Gets the Name attribute of the GraphModel object
 int getSampleCount()
          Gets the SampleCount attribute of the GraphAccumModel object
protected  void quickUpdate(SampleResult s)
          The sample to be added did not exceed the current set of samples so do not need to rescale graph
 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
 

Field Detail

name

protected String name
Description of the Field


samples

protected List samples
Description of the Field


listeners

protected List listeners
Description of the Field


averageSum

protected long averageSum
Description of the Field


variationSum

protected long variationSum
Description of the Field


counter

protected long counter
Description of the Field


previous

protected long previous
Description of the Field


max

protected long max
Description of the Field


bigChange

protected boolean bigChange
Description of the Field


current

protected SampleResult current
Description of the Field

Constructor Detail

GraphAccumModel

public GraphAccumModel()
Constructor

Method Detail

setName

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

Parameters:
name - The new Name value

getSampleCount

public int getSampleCount()
Gets the SampleCount attribute of the GraphAccumModel object

Returns:
The SampleCount value

getList

public List getList()
Gets the List attribute of the GraphAccumModel object

Returns:
The List value

getName

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

Returns:
The Name value

getMax

public long getMax()
Gets the Max attribute of the GraphAccumModel object

Returns:
The Max value

addGraphAccumListener

public void addGraphAccumListener(GraphAccumListener listener)
Adds a feature to the ModelListener attribute of the GraphAccumModel object

Parameters:
listener - The feature to be added to the GraphAccumListener attribute

clear

public void clear()
Clear the results

Specified by:
clear in interface Clearable

addNewSample

public void addNewSample(SampleResult res)
Add the new sample to the results

Parameters:
res - sample containing the results

fireDataChanged

protected void fireDataChanged()
Depending on whether the graph needs to be rescale call the appropriate methods


quickUpdate

protected void quickUpdate(SampleResult s)
The sample to be added did not exceed the current set of samples so do not need to rescale graph

Parameters:
s - Description of Parameter

Apache JMeter
1.9

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