Record Class DesignOption
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.spi.DesignOption
- Record Components:
portfolio- the metrosvalues- each objective's measurement, by objective id, in the objective's own unitscores- each objective normalised to 0..100 across the feasible options of this run (100 = best seen), by objective id; an unknown measurement has no entryweightedScore- the weights applied toscores, 0..100: the single figure that picks the recommended optioncost- the priced lines behind the cost objectiveverdicts- every constraint check, all satisfiedparetoOptimal-truewhen no other feasible option is at least as good on every objective and better on one
public record DesignOption(MetroPortfolio portfolio, Map<String, ObjectiveValue> values, Map<String,Double> scores, double weightedScore, PortfolioCost cost, List<ConstraintVerdict> verdicts, boolean paretoOptimal)
extends Record
One feasible design with everything measured about it.
-
Constructor Summary
ConstructorsConstructorDescriptionDesignOption(MetroPortfolio portfolio, Map<String, ObjectiveValue> values, Map<String, Double> scores, double weightedScore, PortfolioCost cost, List<ConstraintVerdict> verdicts, boolean paretoOptimal) Makes the collections immutable and insertion-ordered. -
Method Summary
Modifier and TypeMethodDescriptioncost()Returns the value of thecostrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theparetoOptimalrecord component.Returns the value of theportfoliorecord component.scores()Returns the value of thescoresrecord component.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.verdicts()Returns the value of theverdictsrecord component.doubleReturns the value of theweightedScorerecord component.
-
Constructor Details
-
DesignOption
public DesignOption(MetroPortfolio portfolio, Map<String, ObjectiveValue> values, Map<String, Double> scores, double weightedScore, PortfolioCost cost, List<ConstraintVerdict> verdicts, boolean paretoOptimal) Makes the collections immutable and insertion-ordered.
-
-
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. -
portfolio
-
values
-
scores
-
weightedScore
public double weightedScore()Returns the value of theweightedScorerecord component.- Returns:
- the value of the
weightedScorerecord component
-
cost
-
verdicts
-
paretoOptimal
public boolean paretoOptimal()Returns the value of theparetoOptimalrecord component.- Returns:
- the value of the
paretoOptimalrecord component
-