Class SubmissionMatchItem
- java.lang.Object
-
- uk.ac.warwick.dcs.sherlock.engine.report.SubmissionMatchItem
-
- All Implemented Interfaces:
ISubmissionMatchItem
public class SubmissionMatchItem extends java.lang.Object implements ISubmissionMatchItem
Stored by SubmissionMatch to ensure data for a given file remains together.
-
-
Constructor Summary
Constructors Constructor Description SubmissionMatchItem(ISourceFile file, float score, java.util.List<ITuple<java.lang.Integer,java.lang.Integer>> lineNumbers)
Initialise a new SubmissionMatchItem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISourceFile
getFile()
java.util.List<ITuple<java.lang.Integer,java.lang.Integer>>
getLineNumbers()
float
getScore()
-
-
-
Constructor Detail
-
SubmissionMatchItem
public SubmissionMatchItem(ISourceFile file, float score, java.util.List<ITuple<java.lang.Integer,java.lang.Integer>> lineNumbers)
Initialise a new SubmissionMatchItem.- Parameters:
file
- The file the match was found inscore
- The score assigned to this matchlineNumbers
- The location of the match in the file
-
-
Method Detail
-
getFile
public ISourceFile getFile()
- Specified by:
getFile
in interfaceISubmissionMatchItem
- Returns:
- the ISourceFile this item bleongs to
-
getLineNumbers
public java.util.List<ITuple<java.lang.Integer,java.lang.Integer>> getLineNumbers()
- Specified by:
getLineNumbers
in interfaceISubmissionMatchItem
- Returns:
- the line numbers the match was found in
-
getScore
public float getScore()
- Specified by:
getScore
in interfaceISubmissionMatchItem
- Returns:
- the score for this file
-
-