|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.jlf.vitals.AbstractVitalMeasurement
|
+--org.jlf.vitals.LongVitalMeasurement
LongVitalMeasurement is a class that holds a
long data type measurement of a vital sign,
such as number of milliseconds to
execute a task or requests per second.
| Field Summary | |
static java.lang.String |
LONG_MEASUREMENT_UNIT_DEFAULT
Default measurement unit. |
protected long |
measurementValue
Holds the long measurement variable. |
| Fields inherited from class org.jlf.vitals.AbstractVitalMeasurement |
dateCaptured, measurementUnit, message |
| Constructor Summary | |
LongVitalMeasurement(long measurementValue)
Creates a new measurement with given measurementValue. |
|
| Method Summary | |
AbstractVitalMeasurement |
add(AbstractVitalMeasurement measurement)
Adds one measurement of the same type to the current object. |
int |
compareTo(java.lang.Object measurement)
Implementation of the Comparable interface. |
AbstractVitalMeasurement |
divideBy(double divisor)
Divides the long measurement value by the input divisor, rounding the result before return. |
long |
getMeasurementValue()
Returns the long measurementValue. |
protected void |
setMeasurementValue(long measurementValue)
Sets the long measurementValue. |
java.lang.String |
toString()
Print out a nice display string. |
| Methods inherited from class org.jlf.vitals.AbstractVitalMeasurement |
checkMeasurementType, getDateCaptured, getMeasurementUnit, getMessage, register, setMeasurementUnit, setMessage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected long measurementValue
public static final java.lang.String LONG_MEASUREMENT_UNIT_DEFAULT
| Constructor Detail |
public LongVitalMeasurement(long measurementValue)
| Method Detail |
public AbstractVitalMeasurement add(AbstractVitalMeasurement measurement)
add in class AbstractVitalMeasurementAbstractVitalMeasurement.add(AbstractVitalMeasurement)public AbstractVitalMeasurement divideBy(double divisor)
divideBy in class AbstractVitalMeasurementAbstractVitalMeasurement.divideBy(double)public long getMeasurementValue()
protected void setMeasurementValue(long measurementValue)
public int compareTo(java.lang.Object measurement)
Comparable.compareTo(Object)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||