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

    Constructors
    Constructor
    Description
    EconomyParameters(double capitalShare, double depreciationRate, double techGrowthRate, double popGrowthRate, double savingsRate, double volatility)
    Creates an instance of a EconomyParameters record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the capitalShare record component.
    double
    Returns the value of the depreciationRate record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the popGrowthRate record component.
    double
    Returns the value of the savingsRate record component.
     
    double
    Returns the value of the techGrowthRate record component.
    final String
    Returns a string representation of this record class.
    double
    Returns the value of the volatility record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • EconomyParameters

      public EconomyParameters(double capitalShare, double depreciationRate, double techGrowthRate, double popGrowthRate, double savingsRate, double volatility)
      Creates an instance of a EconomyParameters record class.
      Parameters:
      capitalShare - the value for the capitalShare record component
      depreciationRate - the value for the depreciationRate record component
      techGrowthRate - the value for the techGrowthRate record component
      popGrowthRate - the value for the popGrowthRate record component
      savingsRate - the value for the savingsRate record component
      volatility - the value for the volatility record component
  • Method Details

    • standard

      public static EconomyParameters standard()
    • 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. All components in this record class 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.
    • capitalShare

      public double capitalShare()
      Returns the value of the capitalShare record component.
      Returns:
      the value of the capitalShare record component
    • depreciationRate

      public double depreciationRate()
      Returns the value of the depreciationRate record component.
      Returns:
      the value of the depreciationRate record component
    • techGrowthRate

      public double techGrowthRate()
      Returns the value of the techGrowthRate record component.
      Returns:
      the value of the techGrowthRate record component
    • popGrowthRate

      public double popGrowthRate()
      Returns the value of the popGrowthRate record component.
      Returns:
      the value of the popGrowthRate record component
    • savingsRate

      public double savingsRate()
      Returns the value of the savingsRate record component.
      Returns:
      the value of the savingsRate record component
    • volatility

      public double volatility()
      Returns the value of the volatility record component.
      Returns:
      the value of the volatility record component