public int memberWeight() {
    int result = 0;
    ID lead = getLeadMember();
    for (ID mbr : members) {
      result += mbr.getMemberWeight();
      switch (mbr.getVmKind()) {
        case ID.NORMAL_DM_TYPE:
          result += 10;
          if (lead != null && mbr.equals(lead)) {
            result += 5;
          }
          break;
        case ID.LOCATOR_DM_TYPE:
          result += 3;
          break;
        case ID.ADMIN_ONLY_DM_TYPE:
          break;
        default:
          throw new IllegalStateException("Unknown member type: " + mbr.getVmKind());
      }
    }
    return result;
  }
returns the weight of the members in this membership view
geode-membership/src/main/java/org/apache/geode/distributed/internal/membership/gms/GMSMembershipView.java