Esempio n. 1
0
 private static Map<DetectionStatus, StatusCount> createMap() {
   final Map<DetectionStatus, StatusCount> map = new LinkedHashMap<DetectionStatus, StatusCount>();
   for (final DetectionStatus each : DetectionStatus.values()) {
     map.put(each, new StatusCount(each, 0L));
   }
   return map;
 }
Esempio n. 2
0
  public String getMutation() {
    if (this.line.detectionStatus().hasNone()) {
      return "";
    }

    final DetectionStatus status = this.line.detectionStatus().value();
    if (!status.isDetected()) {
      return "survived";
    }

    if (ConfidenceMap.hasHighConfidence(status)) {
      return "killed";
    } else {
      return "uncertain";
    }
  }