Class SubmissionSummary
- java.lang.Object
-
- uk.ac.warwick.dcs.sherlock.engine.report.SubmissionSummary
-
- All Implemented Interfaces:
ISubmissionSummary
public class SubmissionSummary extends java.lang.Object implements ISubmissionSummary
-
-
Constructor Summary
Constructors Constructor Description SubmissionSummary(long persistentId, float score)
Initialises the SubmissionSummary object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AddMatchingSubmissions(java.util.List<? extends ITuple<java.lang.Long,java.lang.Float>> matches)
Adds new submissions to the matchingSubmissions list that this submission had plagiarism detected between.java.util.List<ITuple<java.lang.Long,java.lang.Float>>
getMatchingSubmissions()
Retrieves the matching submission list.long
getPersistentId()
Retrieves the submission id.float
getScore()
Retrieves the score.
-
-
-
Method Detail
-
AddMatchingSubmissions
public void AddMatchingSubmissions(java.util.List<? extends ITuple<java.lang.Long,java.lang.Float>> matches)
Adds new submissions to the matchingSubmissions list that this submission had plagiarism detected between.- Parameters:
matches
- a list of the submission ids and the scores between that submission and this one.
-
getPersistentId
public long getPersistentId()
Retrieves the submission id.- Specified by:
getPersistentId
in interfaceISubmissionSummary
- Returns:
- the persistent id of this submission.
-
getScore
public float getScore()
Retrieves the score.- Specified by:
getScore
in interfaceISubmissionSummary
- Returns:
- the overall score for this submission.
-
getMatchingSubmissions
public java.util.List<ITuple<java.lang.Long,java.lang.Float>> getMatchingSubmissions()
Retrieves the matching submission list.- Specified by:
getMatchingSubmissions
in interfaceISubmissionSummary
- Returns:
- the list of matching submissions and their relative scores.
-
-