Class CheckPlanService

java.lang.Object
edu.wisc.game.rest.GameService2
edu.wisc.game.rest.CheckPlanService

@Path("/CheckPlanService")
public class CheckPlanService
extends GameService2
The "Check my experiment plan" service.
  • Constructor Details

  • Method Details

    • checkRulesHtml

      @POST @Path("/checkRules") @Consumes("application/x-www-form-urlencoded") @Produces("text/html") public String checkRulesHtml​(@FormParam("rulesText") String rulesText)
    • checkPlanHtml

      @POST @Path("/checkPlan") @Consumes("application/x-www-form-urlencoded") @Produces("text/html") public String checkPlanHtml​(@FormParam("exp") String exp)
    • clearTables

      @POST @Path("/clearTables") @Consumes("application/x-www-form-urlencoded") @Produces("text/html") public String clearTables()
    • basicCheck

      public static boolean basicCheck​(String exp)
      A simpler testing used when we generate the list of names of all available plans and want to exclude those that have no rule set files.
      Returns:
      true if none of the most obvious problems have occurred
    • main

      public static void main​(String[] argv) throws Exception
      Command-line interface to the validator. The command-line arguments can be names of experiment plans or names of rule set files.
      Throws:
      Exception