public class LWRData extends java.lang.Object implements IData
A class that implements the IData interface. It provides setters for the particular sets of IData associated with this class along with some basic equality and copying routines for convenience.
Constructor and Description |
---|
LWRData()
The constructor.
|
LWRData(java.lang.String feature)
A parameterized Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Deep copies and returns a newly instantiated object.
|
void |
copy(LWRData otherObject)
Deep copies the contents of the object.
|
boolean |
equals(java.lang.Object otherObject) |
java.lang.String |
getFeature()
(non-Javadoc)
|
java.util.ArrayList<java.lang.Double> |
getPosition()
(non-Javadoc)
|
double |
getUncertainty()
(non-Javadoc)
|
java.lang.String |
getUnits()
(non-Javadoc)
|
double |
getValue()
(non-Javadoc)
|
int |
hashCode()
Returns the hashCode of the object.
|
void |
setFeature(java.lang.String feature)
Sets the feature.
|
void |
setPosition(java.util.ArrayList<java.lang.Double> position)
Sets the position of the LWRData.
|
void |
setUncertainty(double uncertainty)
Sets the uncertainty.
|
void |
setUnits(java.lang.String units)
Sets the units.
|
void |
setValue(double value)
Sets the value.
|
public LWRData()
The constructor. Sets up the default values for the LWRData.
public LWRData(java.lang.String feature)
A parameterized Constructor.
feature
- The name of the feature
public void setPosition(java.util.ArrayList<java.lang.Double> position)
Sets the position of the LWRData. The passed parameter can not be null and must be equal to three dimensions (x, y, z coordinate plane and in that order for less than 3 dimensions). If working in less than 3 dimensions, the offset values should be set to 0.
position
- The position
public void setValue(double value)
Sets the value.
value
- The value.
public void setUncertainty(double uncertainty)
Sets the uncertainty.
uncertainty
- The uncertainty.
public void setUnits(java.lang.String units)
Sets the units. Can not be null or the empty string. Strings are trimmed accordingly upon being set.
units
- The units.
public void setFeature(java.lang.String feature)
Sets the feature. Can not set to null or the empty string. Strings are trimmed accordingly upon being set.
feature
- The feature.
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
otherObject
- The object to be compared.
True if otherObject is equal. False otherwise.
public int hashCode()
Returns the hashCode of the object.
hashCode
in class java.lang.Object
The hash.
public void copy(LWRData otherObject)
Deep copies the contents of the object.
otherObject
- The object to be copied.
public java.lang.Object clone()
Deep copies and returns a newly instantiated object.
clone
in class java.lang.Object
public java.util.ArrayList<java.lang.Double> getPosition()
getPosition
in interface IData
The position.
IData.getPosition()
public double getValue()
getValue
in interface IData
The value of the IData object.
IData.getValue()
public double getUncertainty()
getUncertainty
in interface IData
The value of uncertainty.
IData.getUncertainty()
public java.lang.String getUnits()
getUnits
in interface IData
The units.
IData.getUnits()
public java.lang.String getFeature()
getFeature
in interface IData
The name of the feature.
IData.getFeature()