Class UserSite

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

public class UserSite extends Object
A user-defined location representing a workforce concentration, customer market, or operational site. Used by the optimizer to compute latency-weighted metro scores.
  • Constructor Details

    • UserSite

      public UserSite()
  • Method Details

    • effectiveWeight

      public double effectiveWeight(int totalHeadcount)
      Returns this site's stated weight: the explicit weight if positive, otherwise the headcount normalized against the given total.

      Returns 0 when 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 its SiteRole (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.0 when the caller supplied neither weight nor headcount