Record Class StratConUrban.Library
java.lang.Object
java.lang.Record
mekhq.campaign.digitalGM.stratCon.sectorGeneration.StratConUrban.Library
- Record Components:
populationSigma- spread of the population Gaussian, in log10 populationwaterSigma- spread of the water-coverage Gaussian, in percentage pointshabitabilitySigma- spread of the habitability Gaussian, on habitability's 0-1 scaletechSigma- spread of the technology Gaussian, on the tech level's 0-1 scaleprofiles- the authored urban profiles to pick between
- Enclosing class:
StratConUrban
public static record StratConUrban.Library(Double populationSigma, Double waterSigma, Double habitabilitySigma, Double techSigma, List<UrbanProfile> profiles)
extends Record
The root object of
UrbanProfiles.yaml.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thehabitabilitySigmarecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepopulationSigmarecord component.profiles()Returns the value of theprofilesrecord component.Returns the value of thetechSigmarecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewaterSigmarecord component.
-
Constructor Details
-
Library
public Library(Double populationSigma, Double waterSigma, Double habitabilitySigma, Double techSigma, List<UrbanProfile> profiles) Creates an instance of aLibraryrecord class.- Parameters:
populationSigma- the value for thepopulationSigmarecord componentwaterSigma- the value for thewaterSigmarecord componenthabitabilitySigma- the value for thehabitabilitySigmarecord componenttechSigma- the value for thetechSigmarecord componentprofiles- the value for theprofilesrecord component
-
-
Method Details
-
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. -
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. -
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 withObjects::equals(Object,Object). -
populationSigma
Returns the value of thepopulationSigmarecord component.- Returns:
- the value of the
populationSigmarecord component
-
waterSigma
Returns the value of thewaterSigmarecord component.- Returns:
- the value of the
waterSigmarecord component
-
habitabilitySigma
Returns the value of thehabitabilitySigmarecord component.- Returns:
- the value of the
habitabilitySigmarecord component
-
techSigma
Returns the value of thetechSigmarecord component.- Returns:
- the value of the
techSigmarecord component
-
profiles
Returns the value of theprofilesrecord component.- Returns:
- the value of the
profilesrecord component
-