spec.harness.results
Class IterationResult

java.lang.Object
  extended by spec.harness.results.TestResult
      extended by spec.harness.results.IterationResult

public class IterationResult
extends TestResult


Field Summary
 
Fields inherited from class spec.harness.results.TestResult
errors, ITER, TAB, TIMED, XML_HEADER
 
Constructor Summary
IterationResult()
           
 
Method Summary
 void abortRun()
           
 void addAnalyzer(TYInfo tyi)
           
 void addAnalyzerSummary(AnalyzerResult aResult)
           
 void addLoopResults(LoopResult loopResults)
           
 boolean continueToRun()
           
 java.lang.String durDesc()
          Describe ops or time, for this iteration
 java.util.List<java.lang.String> getAllErrors(java.lang.String tag)
           
 java.util.List getAnalyzers()
           
 java.util.Iterator<AnalyzerResult> getAnalyzerSummaries()
           
 BenchmarkResult getBenchmarkResult()
           
 long getDuration()
           
 long getEndTime()
           
 long getExpectedDuration()
           
 long getExpectedLoops()
           
 int getIteration()
           
 java.util.List getLoopResults()
           
 int getNumberBmThreadsDone()
           
 double getOperations()
           
 double getScore()
           
 long getStartTime()
           
 boolean getStartupTest()
           
 long getStopTime()
           
 boolean incNumberBmThreadsDone()
          Flag that this benchmark thread is done with it's workload that is within the measurement interval.
 void incOperations(double operations)
           
 boolean isValid()
          Check if result is valid.
 java.lang.String resultString(java.lang.String testType)
           
 void setBenchmarkResult(BenchmarkResult bmResult)
           
 void setEndTime(long endTime)
           
 void setExpectedDuration(long expectedDuration)
           
 void setExpectedLoops(long expectedLoops)
           
 void setIteration(int iteration)
           
 void setStartTime(long startTime)
           
 void setStartupTest(boolean isStartup)
           
 void setStopTime(long stopTime)
           
 void toXml(java.io.PrintStream ps, int indent)
          Print result as xml on given string.
 
Methods inherited from class spec.harness.results.TestResult
addError, correctContent, doubleAsRes, getErrors, getIndent, getRunModeDescription, hasErrors, millisAsSec, printErrorsToXml, ptxAttrib, ptxAttrib, ptxAttrib, ptxAttrib, ptxAttrib, ptxElement, ptxElementClose, ptxElementOpen, ptxElementStartOpen, ptxXmlHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IterationResult

public IterationResult()
Method Detail

setBenchmarkResult

public void setBenchmarkResult(BenchmarkResult bmResult)

getBenchmarkResult

public BenchmarkResult getBenchmarkResult()

getExpectedDuration

public long getExpectedDuration()

setExpectedDuration

public void setExpectedDuration(long expectedDuration)

abortRun

public void abortRun()

continueToRun

public boolean continueToRun()

getExpectedLoops

public long getExpectedLoops()

setExpectedLoops

public void setExpectedLoops(long expectedLoops)

getEndTime

public long getEndTime()

setEndTime

public void setEndTime(long endTime)

getStartTime

public long getStartTime()

setStartTime

public void setStartTime(long startTime)

getStopTime

public long getStopTime()

setStopTime

public void setStopTime(long stopTime)

setStartupTest

public void setStartupTest(boolean isStartup)

getStartupTest

public boolean getStartupTest()

getOperations

public double getOperations()

incOperations

public void incOperations(double operations)

getIteration

public int getIteration()

setIteration

public void setIteration(int iteration)

getLoopResults

public java.util.List getLoopResults()

addLoopResults

public void addLoopResults(LoopResult loopResults)

getNumberBmThreadsDone

public int getNumberBmThreadsDone()

incNumberBmThreadsDone

public boolean incNumberBmThreadsDone()
Flag that this benchmark thread is done with it's workload that is within the measurement interval.

Returns:
If this was the last thread to check in.

getDuration

public long getDuration()

getAnalyzers

public java.util.List getAnalyzers()

addAnalyzer

public void addAnalyzer(TYInfo tyi)

addAnalyzerSummary

public void addAnalyzerSummary(AnalyzerResult aResult)

getAnalyzerSummaries

public java.util.Iterator<AnalyzerResult> getAnalyzerSummaries()

durDesc

public java.lang.String durDesc()
Describe ops or time, for this iteration

Returns:
String that describes in a human preferred format how long this run is.

resultString

public java.lang.String resultString(java.lang.String testType)

getScore

public double getScore()
Returns:
Score, in operations/min.

isValid

public boolean isValid()
Description copied from class: TestResult
Check if result is valid.

Specified by:
isValid in class TestResult

getAllErrors

public java.util.List<java.lang.String> getAllErrors(java.lang.String tag)
Specified by:
getAllErrors in class TestResult

toXml

public void toXml(java.io.PrintStream ps,
                  int indent)
Description copied from class: TestResult
Print result as xml on given string.

Specified by:
toXml in class TestResult