Record Class UrbanEvolutionEngine.CityParameters
java.lang.Object
java.lang.Record
org.episteme.social.architecture.UrbanEvolutionEngine.CityParameters
- All Implemented Interfaces:
Serializable
- Enclosing class:
UrbanEvolutionEngine
public static record UrbanEvolutionEngine.CityParameters(double growthRate, double buildingTurnover, double conservatism, boolean isBishopSeat, boolean hasUniversity, boolean isTradeHub)
extends Record
implements Serializable
Controls the simulation dynamics.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCityParameters(double growthRate, double buildingTurnover, double conservatism, boolean isBishopSeat, boolean hasUniversity, boolean isTradeHub) Creates an instance of aCityParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thebuildingTurnoverrecord component.doubleReturns the value of theconservatismrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thegrowthRaterecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasUniversityrecord component.booleanReturns the value of theisBishopSeatrecord component.booleanReturns the value of theisTradeHubrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CityParameters
public CityParameters(double growthRate, double buildingTurnover, double conservatism, boolean isBishopSeat, boolean hasUniversity, boolean isTradeHub) Creates an instance of aCityParametersrecord class.- Parameters:
growthRate- the value for thegrowthRaterecord componentbuildingTurnover- the value for thebuildingTurnoverrecord componentconservatism- the value for theconservatismrecord componentisBishopSeat- the value for theisBishopSeatrecord componenthasUniversity- the value for thehasUniversityrecord componentisTradeHub- the value for theisTradeHubrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
growthRate
public double growthRate()Returns the value of thegrowthRaterecord component.- Returns:
- the value of the
growthRaterecord component
-
buildingTurnover
public double buildingTurnover()Returns the value of thebuildingTurnoverrecord component.- Returns:
- the value of the
buildingTurnoverrecord component
-
conservatism
public double conservatism()Returns the value of theconservatismrecord component.- Returns:
- the value of the
conservatismrecord component
-
isBishopSeat
public boolean isBishopSeat()Returns the value of theisBishopSeatrecord component.- Returns:
- the value of the
isBishopSeatrecord component
-
hasUniversity
public boolean hasUniversity()Returns the value of thehasUniversityrecord component.- Returns:
- the value of the
hasUniversityrecord component
-
isTradeHub
public boolean isTradeHub()Returns the value of theisTradeHubrecord component.- Returns:
- the value of the
isTradeHubrecord component
-