Record Class DesignOption

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.spi.DesignOption
Record Components:
portfolio - the metros
values - each objective's measurement, by objective id, in the objective's own unit
scores - each objective normalised to 0..100 across the feasible options of this run (100 = best seen), by objective id; an unknown measurement has no entry
weightedScore - the weights applied to scores, 0..100: the single figure that picks the recommended option
cost - the priced lines behind the cost objective
verdicts - every constraint check, all satisfied
paretoOptimal - true when 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 Details

  • 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.
    • portfolio

      public MetroPortfolio portfolio()
      Returns the value of the portfolio record component.
      Returns:
      the value of the portfolio record component
    • values

      public Map<String, ObjectiveValue> values()
      Returns the value of the values record component.
      Returns:
      the value of the values record component
    • scores

      public Map<String,Double> scores()
      Returns the value of the scores record component.
      Returns:
      the value of the scores record component
    • weightedScore

      public double weightedScore()
      Returns the value of the weightedScore record component.
      Returns:
      the value of the weightedScore record component
    • cost

      public PortfolioCost cost()
      Returns the value of the cost record component.
      Returns:
      the value of the cost record component
    • verdicts

      public List<ConstraintVerdict> verdicts()
      Returns the value of the verdicts record component.
      Returns:
      the value of the verdicts record component
    • paretoOptimal

      public boolean paretoOptimal()
      Returns the value of the paretoOptimal record component.
      Returns:
      the value of the paretoOptimal record component