class CapacityCalculator extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static long | GROWTH_FACTORused to adjust each period so that we keep trying to expand the peer's capacity |
static String | PROP_COUNTRY_BONUSProperty for bonus applied to peers in the same country |
| Modifier and Type | Method and Description |
|---|---|
static double | calc(PeerProfile profile)Calculate the capacity for the given peer profile. |
static final long GROWTH_FACTOR
public static final String PROP_COUNTRY_BONUS
public static double calc(PeerProfile profile)
profile - the peer profile