Class GradescopePublisher

java.lang.Object
com.spertus.jacquard.publisher.Publisher
com.spertus.jacquard.publisher.GradescopePublisher

public class GradescopePublisher extends Publisher
The interface to Gradescope.
See Also:
  • Constructor Details

    • GradescopePublisher

      public GradescopePublisher()
  • Method Details

    • serializeResults

      public String serializeResults(List<Result> results)
      Description copied from class: Publisher
      Serializes the results in the format appropriate for the external grading tool.
      Specified by:
      serializeResults in class Publisher
      Parameters:
      results - the results
      Returns:
      a string representation of the results
    • publishResults

      public boolean publishResults(List<Result> results, Result.Order order)
      Description copied from class: Publisher
      Publishes the results in a manner appropriate for the external grading tool. This does nothing (and returns false) if it detects that it is not running within the tool (i.e., is on a development machine).
      Specified by:
      publishResults in class Publisher
      Parameters:
      results - the results
      order - how to order the results
      Returns:
      whether the results were successfully published
    • displayResults

      public void displayResults(List<Result> results)
      Description copied from class: Publisher
      Displays the results in a human-readable format.
      Specified by:
      displayResults in class Publisher
      Parameters:
      results - the results