Package edu.odu.cs.zeil.codegrader
Class Submission
- java.lang.Object
-
- edu.odu.cs.zeil.codegrader.Submission
-
public class Submission extends java.lang.Object
A Submission represents a student's submitted solution to an assignment.
-
-
Constructor Summary
Constructors Constructor Description Submission(Assignment theAssignment, java.lang.String submitter, java.nio.file.Path theSubmissionDir)
Create a submission.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage(java.lang.String testCaseName)
Returns the message, if any, for a test.java.nio.file.Path
getRecordingDir()
int
getScore(java.lang.String testCaseName)
Returns the score for a test.
-
-
-
Constructor Detail
-
Submission
public Submission(Assignment theAssignment, java.lang.String submitter, java.nio.file.Path theSubmissionDir)
Create a submission.- Parameters:
theAssignment
- assignment that this is a submission to.submitter
- who submitted thistheSubmissionDir
- where the submission is located
-
-
Method Detail
-
getRecordingDir
public java.nio.file.Path getRecordingDir()
- Returns:
- the directory where the student's grade info will be written.
-
getScore
public int getScore(java.lang.String testCaseName)
Returns the score for a test.- Parameters:
testCaseName
-- Returns:
- the score or -1 if the test has not been run.
-
getMessage
public java.lang.String getMessage(java.lang.String testCaseName)
Returns the message, if any, for a test.- Parameters:
testCaseName
-- Returns:
- the message or "" if none exists or if the test has not been run.
-
-