Record Class ScenarioBand
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.cost.ScenarioBand
- Record Components:
specFingerprint- the spec's fingerprintcurrency- the currency of every amounthorizonMonths- the horizoncases- the low, base and high casessimulation- the Monte Carlo summary, ornullwhen none was requestedunpriced- items that could not be priced, with the reasonassumptions- the modelling assumptions
public record ScenarioBand(String specFingerprint, String currency, int horizonMonths, List<ScenarioBand.Case> cases, ScenarioBand.Simulation simulation, List<String> unpriced, List<String> assumptions)
extends Record
Cost over the horizon under a range of growth, from
GrowthPlanner.scenarios(double, double, GrowthPlanner.MonteCarlo): deterministic
low/base/high cases and, when requested, a seeded Monte Carlo with its distributions stated.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne deterministic case.static final recordA seeded Monte Carlo summary: re-running with the same seed and inputs gives the same figures. -
Constructor Summary
ConstructorsConstructorDescriptionScenarioBand(String specFingerprint, String currency, int horizonMonths, List<ScenarioBand.Case> cases, ScenarioBand.Simulation simulation, List<String> unpriced, List<String> assumptions) Copies the lists. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassumptionsrecord component.cases()Returns the value of thecasesrecord component.currency()Returns the value of thecurrencyrecord 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 thehorizonMonthsrecord component.Returns the value of thesimulationrecord component.Returns the value of thespecFingerprintrecord component.final StringtoString()Returns a string representation of this record class.unpriced()Returns the value of theunpricedrecord component.
-
Constructor Details
-
ScenarioBand
public ScenarioBand(String specFingerprint, String currency, int horizonMonths, List<ScenarioBand.Case> cases, ScenarioBand.Simulation simulation, List<String> unpriced, List<String> assumptions) Copies the lists.
-
-
Method Details
-
toMarkdown
- Returns:
- a Markdown report of the cases and the simulation
-
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. -
specFingerprint
Returns the value of thespecFingerprintrecord component.- Returns:
- the value of the
specFingerprintrecord component
-
currency
-
horizonMonths
public int horizonMonths()Returns the value of thehorizonMonthsrecord component.- Returns:
- the value of the
horizonMonthsrecord component
-
cases
-
simulation
Returns the value of thesimulationrecord component.- Returns:
- the value of the
simulationrecord component
-
unpriced
-
assumptions
Returns the value of theassumptionsrecord component.- Returns:
- the value of the
assumptionsrecord component
-