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 population
waterSigma - spread of the water-coverage Gaussian, in percentage points
habitabilitySigma - spread of the habitability Gaussian, on habitability's 0-1 scale
techSigma - spread of the technology Gaussian, on the tech level's 0-1 scale
profiles - 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 Details

    • Library

      public Library(Double populationSigma, Double waterSigma, Double habitabilitySigma, Double techSigma, List<UrbanProfile> profiles)
      Creates an instance of a Library record class.
      Parameters:
      populationSigma - the value for the populationSigma record component
      waterSigma - the value for the waterSigma record component
      habitabilitySigma - the value for the habitabilitySigma record component
      techSigma - the value for the techSigma record component
      profiles - the value for the profiles record component
  • Method Details

    • 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 Objects::equals(Object,Object).
      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.
    • populationSigma

      public Double populationSigma()
      Returns the value of the populationSigma record component.
      Returns:
      the value of the populationSigma record component
    • waterSigma

      public Double waterSigma()
      Returns the value of the waterSigma record component.
      Returns:
      the value of the waterSigma record component
    • habitabilitySigma

      public Double habitabilitySigma()
      Returns the value of the habitabilitySigma record component.
      Returns:
      the value of the habitabilitySigma record component
    • techSigma

      public Double techSigma()
      Returns the value of the techSigma record component.
      Returns:
      the value of the techSigma record component
    • profiles

      public List<UrbanProfile> profiles()
      Returns the value of the profiles record component.
      Returns:
      the value of the profiles record component