@Test public void overcapacityScoreIsZeroWhenThereIsNoOverBooking() { assertEquals(0, ScoreCalculatorCommon.getClusterOverCapacityScore( getClusterWithoutOverbooking()), DOUBLE_COMPARISON_DELTA); }
public static double getClusterOverCapacityScore(ClusterState clusterState) { double result = 0; for (Host host: clusterState.getHosts()) { result += host.getOverCapacityScore(clusterState.getVms()); } return result; }
ScoreCalculatorCommon { public static double getClusterOverCapacityScore(ClusterState clusterState) { double result = 0; for (Host host: clusterState.getHosts()) { result += host.getOverCapacityScore(clusterState.getVms()); } return result; } }
ScoreCalculatorCommon { public static double getClusterOverCapacityScore(ClusterState clusterState) { double result = 0; for (Host host: clusterState.getHosts()) { result += host.getOverCapacityScore(clusterState.getVms()); } return result; }  }
ScoreCalculatorCommon { public static double getClusterOverCapacityScore(ClusterState clusterState) { double result = 0; for (Host host: clusterState.getHosts()) { result += host.getOverCapacityScore(clusterState.getVms()); } return result; }  static double getClusterOverCapacityScore(ClusterState clusterState); static double getClusterPenaltyScoreForFixedVms(ClusterState clusterState); }
ScoreCalculatorCommon { public static double getClusterOverCapacityScore(ClusterState clusterState) { double result = 0; for (Host host: clusterState.getHosts()) { result += host.getOverCapacityScore(clusterState.getVms()); } return result; }  static double getClusterOverCapacityScore(ClusterState clusterState); static double getClusterPenaltyScoreForFixedVms(ClusterState clusterState); final static int PENALTY_FOR_MOVING_FIXED_VMS; }