Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected double m_Data
      value.
      protected double m_Z
      z.
      • Fields inherited from class adams.data.container.AbstractDataPoint

        m_Parent
    • Constructor Summary

      Constructors 
      Constructor Description
      L2Point()
      Constructor.
      L2Point​(double z, double data)
      Constructor.
      L2Point​(L1Point parent, double z, double data)
      Constructor.
    • 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.
      • Methods inherited from class adams.data.container.AbstractDataPoint

        equals, getClone, getParent, hasParent, setParent, toDouble, toDouble, toDouble, toDouble, toDouble, toDouble, toDouble, toDouble
    • Field Detail

      • m_Z

        protected double m_Z
        z.
      • m_Data

        protected double m_Data
        value.
    • Constructor Detail

      • L2Point

        public L2Point()
        Constructor.
      • L2Point

        public L2Point​(double z,
                       double data)
        Constructor.
        Parameters:
        z - the z
        data - the value
      • L2Point

        public L2Point​(L1Point parent,
                       double z,
                       double data)
        Constructor.
        Parameters:
        parent - the parent
        z - the z
        data - 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 interface adams.data.container.DataPoint
        Overrides:
        assign in class adams.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 interface Comparable
        Specified by:
        compareTo in class adams.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 class adams.data.container.AbstractDataPoint
        Returns:
        a string representation