Search in sources :

Example 1 with ThemeStatisticsImpl

use of org.asqatasun.entity.statistics.ThemeStatisticsImpl 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)1 ThemeStatisticsImpl (org.asqatasun.entity.statistics.ThemeStatisticsImpl)1