Class SubmissionSummary

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubmissionSummary

        public SubmissionSummary​(long persistentId,
                                 float score)
        Initialises the SubmissionSummary object.
        Parameters:
        persistentId - the persistent ID of this submissions
        score - the overall score for this submission
    • 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 interface ISubmissionSummary
        Returns:
        the persistent id of this submission.
      • getScore

        public float getScore()
        Retrieves the score.
        Specified by:
        getScore in interface ISubmissionSummary
        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 interface ISubmissionSummary
        Returns:
        the list of matching submissions and their relative scores.