Record Class GrowthPlanner.MonteCarlo
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.cost.GrowthPlanner.MonteCarlo
- Record Components:
seed- the seed ofSplittableRandomiterations- the number of runs, 1 to 100,000egressLow- the low egress-volume factor (for example 0.8), ornullto keep volume fixedegressHigh- the high egress-volume factor (for example 1.3); required withegressLow
- Enclosing class:
GrowthPlanner
-
Constructor Summary
ConstructorsConstructorDescriptionMonteCarlo(long seed, int iterations, Double egressLow, Double egressHigh) Validates the settings. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theegressHighrecord component.Returns the value of theegressLowrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theiterationsrecord component.longseed()Returns the value of theseedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MonteCarlo
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
seed
-
iterations
public int iterations()Returns the value of theiterationsrecord component.- Returns:
- the value of the
iterationsrecord component
-
egressLow
-
egressHigh
Returns the value of theegressHighrecord component.- Returns:
- the value of the
egressHighrecord component
-