Record Class ScenarioBand.Simulation

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.cost.ScenarioBand.Simulation
Record Components:
seed - the seed
iterations - runs
growthDistribution - the stated growth distribution
egressDistribution - the stated egress-volume distribution
method - the generator and percentile method
p10 - 10th percentile of the total over the horizon
p50 - median
p90 - 90th percentile
unpricedRuns - runs whose total could not be priced (excluded from the percentiles)
Enclosing class:
ScenarioBand

public static record ScenarioBand.Simulation(long seed, int iterations, String growthDistribution, String egressDistribution, String method, BigDecimal p10, BigDecimal p50, BigDecimal p90, int unpricedRuns) extends Record
A seeded Monte Carlo summary: re-running with the same seed and inputs gives the same figures.
  • Constructor Details

    • Simulation

      public Simulation(long seed, int iterations, String growthDistribution, String egressDistribution, String method, BigDecimal p10, BigDecimal p50, BigDecimal p90, int unpricedRuns)
      Creates an instance of a Simulation record class.
      Parameters:
      seed - the value for the seed record component
      iterations - the value for the iterations record component
      growthDistribution - the value for the growthDistribution record component
      egressDistribution - the value for the egressDistribution record component
      method - the value for the method record component
      p10 - the value for the p10 record component
      p50 - the value for the p50 record component
      p90 - the value for the p90 record component
      unpricedRuns - the value for the unpricedRuns 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • seed

      public long seed()
      Returns the value of the seed record component.
      Returns:
      the value of the seed record component
    • iterations

      public int iterations()
      Returns the value of the iterations record component.
      Returns:
      the value of the iterations record component
    • growthDistribution

      public String growthDistribution()
      Returns the value of the growthDistribution record component.
      Returns:
      the value of the growthDistribution record component
    • egressDistribution

      public String egressDistribution()
      Returns the value of the egressDistribution record component.
      Returns:
      the value of the egressDistribution record component
    • method

      public String method()
      Returns the value of the method record component.
      Returns:
      the value of the method record component
    • p10

      public BigDecimal p10()
      Returns the value of the p10 record component.
      Returns:
      the value of the p10 record component
    • p50

      public BigDecimal p50()
      Returns the value of the p50 record component.
      Returns:
      the value of the p50 record component
    • p90

      public BigDecimal p90()
      Returns the value of the p90 record component.
      Returns:
      the value of the p90 record component
    • unpricedRuns

      public int unpricedRuns()
      Returns the value of the unpricedRuns record component.
      Returns:
      the value of the unpricedRuns record component