public static int getHeuristicScore(Severity severity, int tasks) {
    int score = 0;
    if (severity != Severity.NONE && severity != Severity.LOW) {
      score = severity.getValue() * tasks;
    }
    return score;
  }
Compute the score for the heuristic based on the number of tasks and severity.
This is applicable only to mapreduce applications.

Score = severity * num of tasks (where severity NOT in [NONE, LOW])

@param severity The heuristic severity
@param tasks The number of tasks (map/reduce)
@return
app/com/linkedin/drelephant/util/Utils.java