Class MetroScore
java.lang.Object
com.eqixiac.equinix.design.optimizer.model.MetroScore
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoubledoubledoubledoublescoreFor(ScoreCategory category) The 0–100 score for one category.
-
Constructor Details
-
MetroScore
public MetroScore()
-
-
Method Details
-
scoreFor
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 fiveScoreCategorycomponents, so the ambiguity only arises on hand-built instances.- Parameters:
category- the dimension to read- Returns:
- the category's score, or
0.0when no such component exists
-
latencyScore
public double latencyScore()- Returns:
- the
ScoreCategory.LATENCYscore, 0–100
-
providerScore
public double providerScore()- Returns:
- the
ScoreCategory.PROVIDER_COVERAGEscore, 0–100
-
costScore
public double costScore()- Returns:
- the
ScoreCategory.COSTscore, 0–100
-
redundancyScore
public double redundancyScore()- Returns:
- the
ScoreCategory.REDUNDANCYscore, 0–100
-
complianceScore
public double complianceScore()- Returns:
- the
ScoreCategory.COMPLIANCEscore, 0–100
-