Record Class EconomyParameters
java.lang.Object
java.lang.Record
org.episteme.natural.economics.growth.EconomyParameters
- All Implemented Interfaces:
Serializable, TaskParameters
public record EconomyParameters(double capitalShare, double depreciationRate, double techGrowthRate, double popGrowthRate, double savingsRate, double volatility)
extends Record
implements TaskParameters
Scientific parameters for the Solow-Swan stochastic growth model.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEconomyParameters(double capitalShare, double depreciationRate, double techGrowthRate, double popGrowthRate, double savingsRate, double volatility) Creates an instance of aEconomyParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thecapitalSharerecord component.doubleReturns the value of thedepreciationRaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thepopGrowthRaterecord component.doubleReturns the value of thesavingsRaterecord component.static EconomyParametersstandard()doubleReturns the value of thetechGrowthRaterecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thevolatilityrecord component.
-
Constructor Details
-
EconomyParameters
public EconomyParameters(double capitalShare, double depreciationRate, double techGrowthRate, double popGrowthRate, double savingsRate, double volatility) Creates an instance of aEconomyParametersrecord class.- Parameters:
capitalShare- the value for thecapitalSharerecord componentdepreciationRate- the value for thedepreciationRaterecord componenttechGrowthRate- the value for thetechGrowthRaterecord componentpopGrowthRate- the value for thepopGrowthRaterecord componentsavingsRate- the value for thesavingsRaterecord componentvolatility- the value for thevolatilityrecord component
-
-
Method Details
-
standard
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
depreciationRate
public double depreciationRate()Returns the value of thedepreciationRaterecord component.- Returns:
- the value of the
depreciationRaterecord component
-
techGrowthRate
public double techGrowthRate()Returns the value of thetechGrowthRaterecord component.- Returns:
- the value of the
techGrowthRaterecord component
-
popGrowthRate
public double popGrowthRate()Returns the value of thepopGrowthRaterecord component.- Returns:
- the value of the
popGrowthRaterecord component
-
savingsRate
public double savingsRate()Returns the value of thesavingsRaterecord component.- Returns:
- the value of the
savingsRaterecord component
-
volatility
public double volatility()Returns the value of thevolatilityrecord component.- Returns:
- the value of the
volatilityrecord component
-