|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.marineapi.nmea.util.Measurement
public class Measurement
Sensor measurement data delivered by
XDRSentence
. Notice that any of the
fields may be empty (null
), depending on sentence and sensor
that produced it.
Constructor Summary | |
---|---|
Measurement()
Creates a new empty instance of Measurement. |
|
Measurement(String type,
double value,
String units,
String name)
Creates a new instance of Measurement with given values. |
Method Summary | |
---|---|
String |
getName()
Returns the name of transducer. |
String |
getType()
Returns the type of transducer. |
String |
getUnits()
Returns the units of measurement. |
double |
getValue()
Returns the measurement value. |
boolean |
isEmpty()
Tells if all fields in this measurement are empty (null). |
void |
setName(String name)
Sets the name of transducer. |
void |
setType(String type)
Sets the type of measurement. |
void |
setUnits(String units)
Sets the units of measurement. |
void |
setValue(double value)
Sets the measurement value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Measurement()
public Measurement(String type, double value, String units, String name)
Method Detail |
---|
public String getName()
public String getType()
public String getUnits()
public double getValue()
public void setName(String name)
name
- Transducer name to setpublic void setType(String type)
type
- Type to setpublic void setUnits(String units)
units
- Units to set.public void setValue(double value)
value
- Value to setpublic boolean isEmpty()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |