1 23 package org.hammurapi.results; 24 25 import java.util.Collection ; 26 import java.util.Map ; 27 28 import org.hammurapi.HammurapiException; 29 import org.hammurapi.Violation; 30 import org.hammurapi.Waiver; 31 import org.hammurapi.WaiverSet; 32 33 import com.pavelvlasov.review.SourceMarker; 34 35 39 public interface AggregatedResults extends BasicResults { 40 45 Waiver addViolation(Violation violation) throws HammurapiException; 46 47 Map getSeveritySummary(); 48 Collection getWarnings(); 49 boolean hasWarnings(); 50 void addWarning(Violation warning); 51 void addMetric(SourceMarker source, String name, double value); 52 Map getMetrics(); 53 void aggregate(AggregatedResults agregee); 55 59 void setReviewsNumber(long reviews); 60 void setCodeBase(long codeBase); 61 62 void addAnnotation(Annotation annotation); 63 Collection getAnnotations(); 64 65 WaiverSet getWaiverSet(); 66 67 71 void commit() throws HammurapiException; 72 73 77 boolean isNew(); 78 79 83 BasicResults getBaseLine(); 84 } | Popular Tags |