com.sfm.ap210.jsdai.param
Class MeasureParamImpl

java.lang.Object
  extended by com.sfm.ap210.jsdai.param.MeasureParamImpl
All Implemented Interfaces:
MeasureParam, Param

public class MeasureParamImpl
extends java.lang.Object
implements MeasureParam

A minimal implementation of MeasureParam.


Field Summary
protected  java.lang.String name
           
protected  Unit unit
           
protected  double value
           
 
Constructor Summary
MeasureParamImpl(java.lang.String name, double value, Unit unit)
           
 
Method Summary
 double getDoubleValue()
           
 java.lang.String getName()
           
 Unit getUnit()
           
 java.lang.Double getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

unit

protected Unit unit

value

protected double value
Constructor Detail

MeasureParamImpl

public MeasureParamImpl(java.lang.String name,
                        double value,
                        Unit unit)
Method Detail

getDoubleValue

public double getDoubleValue()
Specified by:
getDoubleValue in interface MeasureParam

getValue

public java.lang.Double getValue()
Specified by:
getValue in interface MeasureParam
Specified by:
getValue in interface Param

getName

public java.lang.String getName()
Specified by:
getName in interface Param

toString

public java.lang.String toString()
Specified by:
toString in interface Param
Overrides:
toString in class java.lang.Object

getUnit

public Unit getUnit()
Specified by:
getUnit in interface MeasureParam