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.AbstractDataPoint
Level 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 void
assign(adams.data.container.DataPoint other)
Obtains the stored variables from the other data point.int
compareTo(Object o)
Compares this object with the specified object for order.double
getData()
Returns the value.double
getZ()
Returns the Z.void
setData(double value)
Sets the value.void
setZ(double value)
Sets the Z.String
toString()
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:
assign
in interfaceadams.data.container.DataPoint
- Overrides:
assign
in 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:
compareTo
in interfaceComparable
- Specified by:
compareTo
in 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:
toString
in classadams.data.container.AbstractDataPoint
- Returns:
- a string representation
-
-