Record Class ClimateModel.ClimateState

java.lang.Object
java.lang.Record
org.episteme.natural.earth.atmosphere.ClimateModel.ClimateState
Enclosing class:
ClimateModel

public static record ClimateModel.ClimateState(Quantity<Temperature> globalMeanTemperature, double co2Concentration, double ch4Concentration, Quantity<?> radiativeForcing, Quantity<Length> seaLevel, int year) extends Record
  • Constructor Details

    • ClimateState

      public ClimateState(Quantity<Temperature> globalMeanTemperature, double co2Concentration, double ch4Concentration, Quantity<?> radiativeForcing, Quantity<Length> seaLevel, int year)
      Creates an instance of a ClimateState record class.
      Parameters:
      globalMeanTemperature - the value for the globalMeanTemperature record component
      co2Concentration - the value for the co2Concentration record component
      ch4Concentration - the value for the ch4Concentration record component
      radiativeForcing - the value for the radiativeForcing record component
      seaLevel - the value for the seaLevel record component
      year - the value for the year record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • globalMeanTemperature

      public Quantity<Temperature> globalMeanTemperature()
      Returns the value of the globalMeanTemperature record component.
      Returns:
      the value of the globalMeanTemperature record component
    • co2Concentration

      public double co2Concentration()
      Returns the value of the co2Concentration record component.
      Returns:
      the value of the co2Concentration record component
    • ch4Concentration

      public double ch4Concentration()
      Returns the value of the ch4Concentration record component.
      Returns:
      the value of the ch4Concentration record component
    • radiativeForcing

      public Quantity<?> radiativeForcing()
      Returns the value of the radiativeForcing record component.
      Returns:
      the value of the radiativeForcing record component
    • seaLevel

      public Quantity<Length> seaLevel()
      Returns the value of the seaLevel record component.
      Returns:
      the value of the seaLevel record component
    • year

      public int year()
      Returns the value of the year record component.
      Returns:
      the value of the year record component