Search in sources :

Example 6 with ThemeStatistics

use of org.asqatasun.entity.statistics.ThemeStatistics in project Asqatasun by Asqatasun.

the class WebResourceStatisticsDataServiceImpl method addResultToThemeCounterMap.

/**
     *
     * @param testSolution
     * @param criterion
     * @param wrs
     */
private void addResultToThemeCounterMap(TestSolution testSolution, Theme theme, WebResourceStatistics wrs, Map<Theme, ThemeStatistics> tsMap) {
    if (tsMap.containsKey(theme)) {
        ThemeStatistics ts = tsMap.get(theme);
        incrementThemeCounterFromTestSolution(ts, testSolution);
    } else {
        ThemeStatistics ts = new ThemeStatisticsImpl();
        ts.setTheme(theme);
        incrementThemeCounterFromTestSolution(ts, testSolution);
        tsMap.put(theme, ts);
    }
}
Also used : ThemeStatisticsImpl(org.asqatasun.entity.statistics.ThemeStatisticsImpl) ThemeStatistics(org.asqatasun.entity.statistics.ThemeStatistics)

Aggregations

ThemeStatistics (org.asqatasun.entity.statistics.ThemeStatistics)6 ProcessResult (org.asqatasun.entity.audit.ProcessResult)2 TestSolution (org.asqatasun.entity.audit.TestSolution)2 Theme (org.asqatasun.entity.reference.Theme)2 CriterionStatistics (org.asqatasun.entity.statistics.CriterionStatistics)2 HashMap (java.util.HashMap)1 NoResultException (javax.persistence.NoResultException)1 Query (javax.persistence.Query)1 WebResourceStatisticsDAO (org.asqatasun.entity.dao.statistics.WebResourceStatisticsDAO)1 Criterion (org.asqatasun.entity.reference.Criterion)1 ThemeStatisticsImpl (org.asqatasun.entity.statistics.ThemeStatisticsImpl)1 WebResourceStatistics (org.asqatasun.entity.statistics.WebResourceStatistics)1