Package edu.wisc.game.rest
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 Summary
Constructors Constructor Description CheckPlanService()
-
Method Summary
Modifier and Type Method Description 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.String
checkPlanHtml(String exp)
String
checkRulesHtml(String rulesText)
String
clearTables()
static void
main(String[] argv)
Command-line interface to the validator.Methods inherited from class edu.wisc.game.rest.GameService2
activateBonus, colorMap, display, findPlans, getVersion, giveUp, guess, listShapes, mostRecentEpisode, move, move, newEpisode, player, registerUser
-
Constructor Details
-
CheckPlanService
public CheckPlanService()
-
-
Method Details
-
checkRulesHtml
-
checkPlanHtml
-
clearTables
@POST @Path("/clearTables") @Consumes("application/x-www-form-urlencoded") @Produces("text/html") public String clearTables() -
basicCheck
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
Command-line interface to the validator. The command-line arguments can be names of experiment plans or names of rule set files.- Throws:
Exception
-