jetbrains.buildServer.serverSide.statistics.build
Class AverageBuildValue

java.lang.Object
  extended by java.lang.Number
      extended by jetbrains.buildServer.serverSide.statistics.build.BuildValue
          extended by jetbrains.buildServer.serverSide.statistics.build.AverageBuildValue
All Implemented Interfaces:
java.io.Serializable

public class AverageBuildValue
extends BuildValue

This class holds metric value and attributes of corresponding build

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jetbrains.buildServer.serverSide.statistics.build.BuildValue
BuildValue.BuildNumberComparator
 
Field Summary
 
Fields inherited from class jetbrains.buildServer.serverSide.statistics.build.BuildValue
myBuildId, myBuildNumber, myBuildTypeId, myDuration, myFailed, myLinkable, mySeries, myStartTime, myValue
 
Constructor Summary
AverageBuildValue(long startTime, java.lang.String label)
          Construct averaged value
 
Method Summary
 void add(BuildValue value)
          Add value
 int getCount()
          Getter for property 'count'.
 java.math.BigDecimal getSum()
          Getter for property 'sum'.
 java.math.BigDecimal getValue()
          
 void setSum(java.math.BigDecimal sum)
          Setter for property 'sum'.
 
Methods inherited from class jetbrains.buildServer.serverSide.statistics.build.BuildValue
clone, doubleValue, floatValue, getBuildId, getBuildNumber, getBuildTypeId, getBuildTypeName, getDuration, getSeries, getStartTime, getStatusText, intValue, isFailed, isLinkable, longValue, setBuildId, setBuildNumber, setBuildTypeId, setBuildTypeName, setDuration, setFailed, setLinkable, setSeries, setStartTime, setValue, toString
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AverageBuildValue

public AverageBuildValue(long startTime,
                         java.lang.String label)
Construct averaged value

Parameters:
startTime - range start
label - value label
Method Detail

add

public void add(BuildValue value)
Add value

Parameters:
value - value to add

getSum

public java.math.BigDecimal getSum()
Getter for property 'sum'.

Returns:
Value for property 'sum'.

setSum

public void setSum(java.math.BigDecimal sum)
Setter for property 'sum'.

Parameters:
sum - Value to set for property 'sum'.

getValue

public java.math.BigDecimal getValue()

Overrides:
getValue in class BuildValue

getCount

public int getCount()
Getter for property 'count'.

Returns:
Value for property 'count'.