spec.harness.analyzer
Class AnalyzerResult

java.lang.Object
  extended by spec.harness.analyzer.AnalyzerResult
Direct Known Subclasses:
CallbackAnalyzerExample.NumberResult, PowerAnalyzer.PowerConsumtionResult, TempAnalyzer.TemperatureResult

public abstract class AnalyzerResult
extends java.lang.Object


Field Summary
protected  double result
           
 
Constructor Summary
AnalyzerResult(double result)
          Constructor, create with time and value.
 
Method Summary
 java.lang.String getDescription()
          Descriptive result including name and unit.
abstract  java.lang.String getName()
           
 double getResult()
           
abstract  java.lang.String getUnit()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

protected double result
Constructor Detail

AnalyzerResult

public AnalyzerResult(double result)
Constructor, create with time and value.

Method Detail

getName

public abstract java.lang.String getName()
Returns:
Name/description of what is monitored.

getUnit

public abstract java.lang.String getUnit()
Returns:
Unit of what is monitored.

getResult

public final double getResult()
Returns:
Result of what is monitored.

getDescription

public java.lang.String getDescription()
Descriptive result including name and unit.