use of teammates.common.datatransfer.StudentResultSummary in project teammates by TEAMMATES.
the class FeedbackContributionQuestionDetails method getStudentResults.
private Map<String, StudentResultSummary> getStudentResults(Map<String, List<String>> teamMembersEmail, Map<String, TeamEvalResult> teamResults) {
Map<String, StudentResultSummary> studentResults = new LinkedHashMap<>();
teamResults.forEach((key, teamResult) -> {
List<String> teamEmails = teamMembersEmail.get(key);
int i = 0;
for (String studentEmail : teamEmails) {
StudentResultSummary summary = new StudentResultSummary();
summary.claimedToInstructor = teamResult.normalizedClaimed[i][i];
summary.perceivedToInstructor = teamResult.normalizedAveragePerceived[i];
studentResults.put(studentEmail, summary);
i++;
}
});
return studentResults;
}
Aggregations