Apache JMeter
2.0.1.20050615

org.apache.jmeter.functions
Class IntSum

java.lang.Object
  extended byorg.apache.jmeter.functions.AbstractFunction
      extended byorg.apache.jmeter.functions.IntSum
All Implemented Interfaces:
Function, Serializable

public class IntSum
extends AbstractFunction
implements Serializable

Provides an intSum function that adds two or more integer values.

Version:
$Id: IntSum.java,v 1.6 2004/02/10 00:35:12 sebb Exp $
Author:
Scott Eade
See Also:
Serialized Form

Constructor Summary
IntSum()
          No-arg constructor.
 
Method Summary
 Object clone()
          Clone this Add object.
 String execute(SampleResult previousResult, Sampler currentSampler)
          Execute the function.
 List getArgumentDesc()
          Get the description of this function.
 String getReferenceKey()
          Get the invocation key for this function.
 void setParameters(Collection parameters)
          Set the parameters for the function.
 
Methods inherited from class org.apache.jmeter.functions.AbstractFunction
execute, getVariables
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntSum

public IntSum()
No-arg constructor.

Method Detail

clone

public Object clone()
Clone this Add object.

Returns:
A new Add object.

execute

public String execute(SampleResult previousResult,
                      Sampler currentSampler)
               throws InvalidVariableException
Execute the function.

Specified by:
execute in interface Function
Specified by:
execute in class AbstractFunction
Throws:
InvalidVariableException
See Also:
Function.execute(SampleResult, Sampler)

setParameters

public void setParameters(Collection parameters)
                   throws InvalidVariableException
Set the parameters for the function.

Specified by:
setParameters in interface Function
Specified by:
setParameters in class AbstractFunction
Throws:
InvalidVariableException
See Also:
Function.setParameters(Collection)

getReferenceKey

public String getReferenceKey()
Get the invocation key for this function.

Specified by:
getReferenceKey in interface Function
Specified by:
getReferenceKey in class AbstractFunction
See Also:
Function.getReferenceKey()

getArgumentDesc

public List getArgumentDesc()
Get the description of this function.

Specified by:
getArgumentDesc in interface Function
See Also:
Function.getArgumentDesc()

Apache JMeter
2.0.1.20050615

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