Record Class DesignSolution
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.spi.DesignSolution
- Record Components:
recommended- the feasible option with the highest weighted score, ornullwhen no portfolio satisfies every constraintfrontier- the Pareto-optimal options: each is a different, defensible trade-off; ordered by weighted score, best firstevaluated- how many portfolios were examinedfeasible- how many of them satisfied every constraintexact-truewhen every portfolio in range was examined, so the frontier is complete;falsewhen the search was a heuristic over a subsetnotes- what the reader should know about the search (why it was not exact, which constraint removed the most options, ties broken and how)
public record DesignSolution(DesignOption recommended, List<DesignOption> frontier, long evaluated, long feasible, boolean exact, List<String> notes)
extends Record
What a
Solver found.-
Constructor Summary
ConstructorsConstructorDescriptionDesignSolution(DesignOption recommended, List<DesignOption> frontier, long evaluated, long feasible, boolean exact, List<String> notes) Makes the lists immutable and non-null. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theevaluatedrecord component.booleanexact()Returns the value of theexactrecord component.longfeasible()Returns the value of thefeasiblerecord component.frontier()Returns the value of thefrontierrecord component.final inthashCode()Returns a hash code value for this object.booleannotes()Returns the value of thenotesrecord component.Returns the value of therecommendedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DesignSolution
public DesignSolution(DesignOption recommended, List<DesignOption> frontier, long evaluated, long feasible, boolean exact, List<String> notes) Makes the lists immutable and non-null.
-
-
Method Details
-
isFeasible
public boolean isFeasible()- Returns:
truewhen at least one portfolio satisfied every constraint
-
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. -
recommended
Returns the value of therecommendedrecord component.- Returns:
- the value of the
recommendedrecord component
-
frontier
-
evaluated
-
feasible
-
exact
-
notes
-