public class CSVData extends ICEObject implements IData
iComponentListener
Constructor and Description |
---|
CSVData(java.lang.String newFeature)
Constructor takes in feature, sets value to zero
|
CSVData(java.lang.String feature,
java.lang.Double value)
Constructor takes in feature and value
|
Modifier and Type | Method and Description |
---|---|
void |
addPosition(java.lang.Double pos)
Adds a position to the position ArrayList
|
CSVData |
clone()
This operation creates a deep copy of the CSVData object and returns it
|
void |
copy(CSVData otherCSVData)
This operation performs a deep copy of the attributes of another CSVData
into the current CSVData.
|
boolean |
equals(java.lang.Object otherCSVData)
Method to check if the current object is equal to the object passed in
|
java.lang.String |
getFeature()
Get the feature
|
java.util.ArrayList<java.lang.Double> |
getPosition()
Get the position
|
double |
getUncertainty()
Get the uncertainty
|
java.lang.String |
getUnits()
Gett the units
|
double |
getValue()
Get the value
|
int |
hashCode()
Compute and return the hash code for instances of this object
|
void |
setFeature(java.lang.String feature)
Sets the feature of this data
|
void |
setPosition(java.util.ArrayList<java.lang.Double> position)
Sets the position of this data
|
void |
setUncertainty(double uncertainty)
Sets the uncertainty value of this data.
|
void |
setUnits(java.lang.String units)
Sets the units of this data
|
void |
setValue(double value)
Sets the value of this data
|
java.lang.String |
toString()
toString function to print out the data of the object
|
copy, getDescription, getId, getName, register, setDescription, setId, setName, unregister, update
public CSVData(java.lang.String feature, java.lang.Double value)
feature
- value
- public CSVData(java.lang.String newFeature)
newFeature
- public boolean equals(java.lang.Object otherCSVData)
equals
in interface Identifiable
equals
in class ICEObject
otherCSVData
- The other Identifiable entity that should be compared with this one.
True if the Identifiable entitys are equal, false otherwise.
Identifiable.equals(Object otherObject)
public int hashCode()
hashCode
in interface Identifiable
hashCode
in class ICEObject
The hashcode of the Identifiable entity.
Identifiable.hashCode()
public void copy(CSVData otherCSVData)
otherCSVData
- public CSVData clone() throws java.lang.NullPointerException
clone
in interface Identifiable
clone
in class ICEObject
The new clone.
java.lang.NullPointerException
public void setPosition(java.util.ArrayList<java.lang.Double> position)
position
- public void setValue(double value)
value
- public void setUncertainty(double uncertainty)
uncertainty
- public void setUnits(java.lang.String units)
units
- public void setFeature(java.lang.String feature)
feature
- public void addPosition(java.lang.Double pos)
pos
- public java.util.ArrayList<java.lang.Double> getPosition()
getPosition
in interface IData
The position.
public double getValue()
public double getUncertainty()
getUncertainty
in interface IData
The value of uncertainty.
public java.lang.String getUnits()
public java.lang.String getFeature()
getFeature
in interface IData
The name of the feature.
public java.lang.String toString()
toString
in class java.lang.Object