Package adams.data.threeway
Class L2Point
- java.lang.Object
-
- adams.data.container.AbstractDataPoint
-
- adams.data.threeway.L2Point
-
- All Implemented Interfaces:
adams.core.CloneHandler,adams.data.container.DataPoint,Serializable,Comparable
public class L2Point extends adams.data.container.AbstractDataPointLevel 2 data point.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassign(adams.data.container.DataPoint other)Obtains the stored variables from the other data point.intcompareTo(Object o)Compares this object with the specified object for order.doublegetData()Returns the value.doublegetZ()Returns the Z.voidsetData(double value)Sets the value.voidsetZ(double value)Sets the Z.StringtoString()Returns a string representation of the GC points.
-
-
-
Constructor Detail
-
L2Point
public L2Point()
Constructor.
-
L2Point
public L2Point(double z, double data)Constructor.- Parameters:
z- the zdata- the value
-
L2Point
public L2Point(L1Point parent, double z, double data)
Constructor.- Parameters:
parent- the parentz- the zdata- the value
-
-
Method Detail
-
assign
public void assign(adams.data.container.DataPoint other)
Obtains the stored variables from the other data point.- Specified by:
assignin interfaceadams.data.container.DataPoint- Overrides:
assignin classadams.data.container.AbstractDataPoint- Parameters:
other- the data point to get the values from
-
setZ
public void setZ(double value)
Sets the Z.- Parameters:
value- the z
-
getZ
public double getZ()
Returns the Z.- Returns:
- the z
-
setData
public void setData(double value)
Sets the value.- Parameters:
value- the value
-
getData
public double getData()
Returns the value.- Returns:
- the value
-
compareTo
public int compareTo(Object o)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.- Specified by:
compareToin interfaceComparable- Specified by:
compareToin classadams.data.container.AbstractDataPoint- Parameters:
o- the object to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
- Throws:
ClassCastException- if the specified object's type prevents it from being compared to this object.
-
toString
public String toString()
Returns a string representation of the GC points.- Specified by:
toStringin classadams.data.container.AbstractDataPoint- Returns:
- a string representation
-
-