Record Class ClimateModel.EmissionScenario
java.lang.Object
java.lang.Record
org.episteme.natural.earth.atmosphere.ClimateModel.EmissionScenario
- Enclosing class:
ClimateModel
-
Constructor Summary
ConstructorsConstructorDescriptionEmissionScenario(String name, double annualCO2EmissionGt, double annualCH4EmissionMt, double deforestationRate) Creates an instance of aEmissionScenariorecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theannualCH4EmissionMtrecord component.doubleReturns the value of theannualCO2EmissionGtrecord component.doubleReturns the value of thedeforestationRaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EmissionScenario
public EmissionScenario(String name, double annualCO2EmissionGt, double annualCH4EmissionMt, double deforestationRate) Creates an instance of aEmissionScenariorecord class.- Parameters:
name- the value for thenamerecord componentannualCO2EmissionGt- the value for theannualCO2EmissionGtrecord componentannualCH4EmissionMt- the value for theannualCH4EmissionMtrecord componentdeforestationRate- the value for thedeforestationRaterecord 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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
annualCO2EmissionGt
public double annualCO2EmissionGt()Returns the value of theannualCO2EmissionGtrecord component.- Returns:
- the value of the
annualCO2EmissionGtrecord component
-
annualCH4EmissionMt
public double annualCH4EmissionMt()Returns the value of theannualCH4EmissionMtrecord component.- Returns:
- the value of the
annualCH4EmissionMtrecord component
-
deforestationRate
public double deforestationRate()Returns the value of thedeforestationRaterecord component.- Returns:
- the value of the
deforestationRaterecord component
-