dk.dmi.jog
Class Measurement

java.lang.Object
  extended bydk.dmi.jog.Measurement

public class Measurement
extends Object

A single measurement. Missing values are represented by Float.NaN. Units for the measurement are optional and are not used in the core framework.


Field Summary
 String NAME
          Measurement name.
 Date T
          Measurement time.
 float V
          Measurement value.
 String VUNIT
          Measurement value unit.
 float X
          Measurement longitude.
 float Y
          Measurement latitude.
 float Z
          Measurement vertical position.
 String ZUNIT
          Measurement vertical position unit.
 
Method Summary
 boolean equals(Object o)
          Compares this Measurement to the specified Object.
static Measurement getInstance(float x, float y, float z, Date t, float v)
          Returns a Measurement representation of the arguments.
static Measurement getInstance(String name, String vunit, String zunit, float x, float y, float z, Date t, float v)
          Returns a Measurement representation of the arguments.
 int hashCode()
           
 String toString()
          Returns a String representation of this Measurement.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public final String NAME
Measurement name.


T

public final Date T
Measurement time.


V

public final float V
Measurement value.


VUNIT

public final String VUNIT
Measurement value unit.


X

public final float X
Measurement longitude.


Y

public final float Y
Measurement latitude.


Z

public final float Z
Measurement vertical position.


ZUNIT

public final String ZUNIT
Measurement vertical position unit.

Method Detail

equals

public boolean equals(Object o)
Compares this Measurement to the specified Object. The result is true if and only if the argument is not null and is a Measurement containing the same data as this Measurement.

Parameters:
o - the Object to be compared for equality with this Measurement.
Returns:
true if the objects are identical; false otherwise.

getInstance

public static Measurement getInstance(float x,
                                      float y,
                                      float z,
                                      Date t,
                                      float v)
Returns a Measurement representation of the arguments. Name and Unit fields are left blank.

Parameters:
x - longitude of this Measurement.
y - latitude of this Measurement.
z - vertical position of this Measurement.
t - date of this Measurement.
v - value of this Measurement.
Returns:
a Measurement representation of the arguments.

getInstance

public static Measurement getInstance(String name,
                                      String vunit,
                                      String zunit,
                                      float x,
                                      float y,
                                      float z,
                                      Date t,
                                      float v)
Returns a Measurement representation of the arguments.

Parameters:
name - descriptive name of this Measurement.
vunit - name of the units this Measurement is measured in.
zunit - name of the vertical units used in this Measurement.
x - longitude of this Measurement.
y - latitude of this Measurement.
z - vertical position of this Measurement.
t - date of this Measurement.
v - value of this Measurement.
Returns:
a Measurement representation of the arguments.

hashCode

public int hashCode()

toString

public String toString()
Returns a String representation of this Measurement.

Returns:
a String representation of this Measurement.