Package com.spertus.jacquard.publisher
Class GradescopePublisher
java.lang.Object
com.spertus.jacquard.publisher.Publisher
com.spertus.jacquard.publisher.GradescopePublisher
The interface to Gradescope.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
displayResults
(List<Result> results) Displays the results in a human-readable format.boolean
publishResults
(List<Result> results, Result.Order order) Publishes the results in a manner appropriate for the external grading tool.serializeResults
(List<Result> results) Serializes the results in the format appropriate for the external grading tool.Methods inherited from class com.spertus.jacquard.publisher.Publisher
publishResults
-
Constructor Details
-
GradescopePublisher
public GradescopePublisher()
-
-
Method Details
-
serializeResults
Description copied from class:Publisher
Serializes the results in the format appropriate for the external grading tool.- Specified by:
serializeResults
in classPublisher
- Parameters:
results
- the results- Returns:
- a string representation of the results
-
publishResults
Description copied from class:Publisher
Publishes the results in a manner appropriate for the external grading tool. This does nothing (and returnsfalse
) if it detects that it is not running within the tool (i.e., is on a development machine).- Specified by:
publishResults
in classPublisher
- Parameters:
results
- the resultsorder
- how to order the results- Returns:
- whether the results were successfully published
-
displayResults
Description copied from class:Publisher
Displays the results in a human-readable format.- Specified by:
displayResults
in classPublisher
- Parameters:
results
- the results
-