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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayResults(List<Result> results) Displays the results in a human-readable format.booleanpublishResults(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:PublisherSerializes the results in the format appropriate for the external grading tool.- Specified by:
serializeResultsin classPublisher- Parameters:
results- the results- Returns:
- a string representation of the results
-
publishResults
Description copied from class:PublisherPublishes 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:
publishResultsin classPublisher- Parameters:
results- the resultsorder- how to order the results- Returns:
- whether the results were successfully published
-
displayResults
Description copied from class:PublisherDisplays the results in a human-readable format.- Specified by:
displayResultsin classPublisher- Parameters:
results- the results
-