Class MetroScore

java.lang.Object
com.eqixiac.equinix.design.optimizer.model.MetroScore

public class MetroScore extends Object
Composite score for a metro recommendation, decomposed into individually inspectable ScoreComponent dimensions.

All scores - the composite and every per-category component - are on a 0–100 scale, higher is better. The composite is the sum of each component's score multiplied by its normalized weight.

  • Constructor Details

    • MetroScore

      public MetroScore()
  • Method Details

    • scoreFor

      public double scoreFor(ScoreCategory category)
      The 0–100 score for one category.

      Absent-category caveat: a category with no component returns 0.0, which is indistinguishable from a genuine zero score. Engine-produced scores always carry all five ScoreCategory components, so the ambiguity only arises on hand-built instances.

      Parameters:
      category - the dimension to read
      Returns:
      the category's score, or 0.0 when no such component exists
    • latencyScore

      public double latencyScore()
      Returns:
      the ScoreCategory.LATENCY score, 0–100
    • providerScore

      public double providerScore()
      Returns:
      the ScoreCategory.PROVIDER_COVERAGE score, 0–100
    • costScore

      public double costScore()
      Returns:
      the ScoreCategory.COST score, 0–100
    • redundancyScore

      public double redundancyScore()
      Returns:
      the ScoreCategory.REDUNDANCY score, 0–100
    • complianceScore

      public double complianceScore()
      Returns:
      the ScoreCategory.COMPLIANCE score, 0–100