Package com.spertus.jacquard.publisher
Class Publisher
java.lang.Object
com.spertus.jacquard.publisher.Publisher
- Direct Known Subclasses:
 GradescopePublisher
This class contains code to publish the results of grading to an external
 grading system, such as Gradescope.
- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract voiddisplayResults(List<Result> results) Displays the results in a human-readable format.booleanpublishResults(List<Result> results) Publishes the results in a manner appropriate for the external grading tool.abstract booleanpublishResults(List<Result> results, Result.Order order) Publishes the results in a manner appropriate for the external grading tool.abstract StringserializeResults(List<Result> results) Serializes the results in the format appropriate for the external grading tool. 
- 
Constructor Details
- 
Publisher
public Publisher() 
 - 
 - 
Method Details
- 
serializeResults
Serializes the results in the format appropriate for the external grading tool.- Parameters:
 results- the results- Returns:
 - a string representation of the results
 
 - 
publishResults
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).- Parameters:
 results- the results- Returns:
 - whether the results were successfully published
 
 - 
publishResults
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).- Parameters:
 results- the resultsorder- how to order the results- Returns:
 - whether the results were successfully published
 
 - 
displayResults
Displays the results in a human-readable format.- Parameters:
 results- the results
 
 -