Record Class ClimateModel.ClimateState
java.lang.Object
java.lang.Record
org.episteme.natural.earth.atmosphere.ClimateModel.ClimateState
- Enclosing class:
ClimateModel
-
Constructor Summary
ConstructorsConstructorDescriptionClimateState(Quantity<Temperature> globalMeanTemperature, double co2Concentration, double ch4Concentration, Quantity<?> radiativeForcing, Quantity<Length> seaLevel, int year) Creates an instance of aClimateStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thech4Concentrationrecord component.doubleReturns the value of theco2Concentrationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theglobalMeanTemperaturerecord component.final inthashCode()Returns a hash code value for this object.Quantity<?> Returns the value of theradiativeForcingrecord component.seaLevel()Returns the value of theseaLevelrecord component.final StringtoString()Returns a string representation of this record class.intyear()Returns the value of theyearrecord component.
-
Constructor Details
-
ClimateState
public ClimateState(Quantity<Temperature> globalMeanTemperature, double co2Concentration, double ch4Concentration, Quantity<?> radiativeForcing, Quantity<Length> seaLevel, int year) Creates an instance of aClimateStaterecord class.- Parameters:
globalMeanTemperature- the value for theglobalMeanTemperaturerecord componentco2Concentration- the value for theco2Concentrationrecord componentch4Concentration- the value for thech4Concentrationrecord componentradiativeForcing- the value for theradiativeForcingrecord componentseaLevel- the value for theseaLevelrecord componentyear- the value for theyearrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
globalMeanTemperature
Returns the value of theglobalMeanTemperaturerecord component.- Returns:
- the value of the
globalMeanTemperaturerecord component
-
co2Concentration
public double co2Concentration()Returns the value of theco2Concentrationrecord component.- Returns:
- the value of the
co2Concentrationrecord component
-
ch4Concentration
public double ch4Concentration()Returns the value of thech4Concentrationrecord component.- Returns:
- the value of the
ch4Concentrationrecord component
-
radiativeForcing
Returns the value of theradiativeForcingrecord component.- Returns:
- the value of the
radiativeForcingrecord component
-
seaLevel
-
year
public int year()Returns the value of theyearrecord component.- Returns:
- the value of the
yearrecord component
-