public abstract class HandinItem extends Assignment
Modifier and Type | Field and Description |
---|---|
(package private) java.nio.file.Path |
directory
the handin directory associated with this item
|
(package private) java.util.Collection<Submission> |
history
a history of this handin item's past submissions
|
(package private) Submission |
submission
the handin submission associated with this item
|
category, curvedPoints, dueDate, name, rawPoints
Constructor and Description |
---|
HandinItem() |
Modifier and Type | Method and Description |
---|---|
abstract Submission |
searchHistory(java.lang.Object expression)
Searches this item's submission history for the given query,
returning the first item matched.
|
abstract void |
updateSubmission(java.io.File newFile)
Updates the current submission, adding the previous
submission to the history.
|
adjustPointValue, assign, calculateMean, curve, findMax, findMedian, findMin
Submission submission
java.util.Collection<Submission> history
java.nio.file.Path directory
public abstract void updateSubmission(java.io.File newFile)
newFile
- the newly submitted file
post: // the File contained in this Item's Submission is updated this.submission.file.equals(newFile);
public abstract Submission searchHistory(java.lang.Object expression)
expression
- the expression to search forpre: // this File's history must not be empty this.history.size() > 0;