Record Class GeopoliticalParameters
java.lang.Object
java.lang.Record
org.episteme.natural.politics.GeopoliticalParameters
- All Implemented Interfaces:
Serializable, TaskParameters
public record GeopoliticalParameters(double stabilityDecay, double conflictProbability, double militaryCostFactor, double recoveryRate)
extends Record
implements TaskParameters
Parameters for the Geopolitical Engine simulation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGeopoliticalParameters(double stabilityDecay, double conflictProbability, double militaryCostFactor, double recoveryRate) Creates an instance of aGeopoliticalParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theconflictProbabilityrecord 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 themilitaryCostFactorrecord component.doubleReturns the value of therecoveryRaterecord component.doubleReturns the value of thestabilityDecayrecord component.static GeopoliticalParametersstandard()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeopoliticalParameters
public GeopoliticalParameters(double stabilityDecay, double conflictProbability, double militaryCostFactor, double recoveryRate) Creates an instance of aGeopoliticalParametersrecord class.- Parameters:
stabilityDecay- the value for thestabilityDecayrecord componentconflictProbability- the value for theconflictProbabilityrecord componentmilitaryCostFactor- the value for themilitaryCostFactorrecord componentrecoveryRate- the value for therecoveryRaterecord 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. -
stabilityDecay
public double stabilityDecay()Returns the value of thestabilityDecayrecord component.- Returns:
- the value of the
stabilityDecayrecord component
-
conflictProbability
public double conflictProbability()Returns the value of theconflictProbabilityrecord component.- Returns:
- the value of the
conflictProbabilityrecord component
-
militaryCostFactor
public double militaryCostFactor()Returns the value of themilitaryCostFactorrecord component.- Returns:
- the value of the
militaryCostFactorrecord component
-
recoveryRate
public double recoveryRate()Returns the value of therecoveryRaterecord component.- Returns:
- the value of the
recoveryRaterecord component
-