com.sfm.ap210.jsdai.param
Class MeasureParamImpl
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
protected java.lang.String name
unit
protected Unit unit
value
protected double value
MeasureParamImpl
public MeasureParamImpl(java.lang.String name,
double value,
Unit unit)
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