Class UserSite
java.lang.Object
com.eqixiac.equinix.design.optimizer.model.UserSite
A user-defined location representing a workforce concentration, customer market,
or operational site. Used by the optimizer to compute latency-weighted metro scores.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleeffectiveWeight(int totalHeadcount) Returns this site's stated weight: the explicitweightif positive, otherwise the headcount normalized against the given total.
-
Constructor Details
-
UserSite
public UserSite()
-
-
Method Details
-
effectiveWeight
public double effectiveWeight(int totalHeadcount) Returns this site's stated weight: the explicitweightif positive, otherwise the headcount normalized against the given total.Returns
0when neither weight nor headcount is set (or the total headcount is 0) - but that does not mean the site has no influence on scoring. The engine applies a per-site fallback on top of this value: a site with a stated weight of 0 is weighted as an average site for itsSiteRole(the stated weight per unit of role importance, times its own role multiplier), and the result's explanation names such sites as inferred. This method therefore reports the caller-supplied portion only, not the final scoring weight.- Parameters:
totalHeadcount- the headcount summed across all sites, used to normalize this site's headcount- Returns:
- the stated weight, or
0.0when the caller supplied neither weight nor headcount
-