Uses of Class
edu.wisc.game.parser.RuleParseException
Packages that use RuleParseException
Package
Description
Top-level Game Server code
Tools for parsing rule set descriptions
The RESTful web API
Persistent data structures
-
Uses of RuleParseException in edu.wisc.game.engine
Methods in edu.wisc.game.engine that throw RuleParseExceptionModifier and TypeMethodDescriptionString[]
AutomaticRuleGenerator.getColorNames()
String[]
AutomaticRuleGenerator.getShapeNames()
static void
static void
A complete CGS session.static void
Reads Kevin's file such as Games.21-38.json, and converts it to Game Server rule set files.static void
static void
static RuleSet
static RuleSet
AutomaticRuleGenerator.varReport()
Constructors in edu.wisc.game.engine that throw RuleParseExceptionModifierConstructorDescriptionAutomaticRuleGenerator
(Long seed, ParaSet _para) Ensures that the para table has the default (legacy) values for "colors" and "shapes", if none are supplied in the CSV file.Creates a RuleSet based on the content of a rule set file.RuleSet
(String[] rr, AutomaticRuleGenerator agen) RuleSet
(String ruleText, AutomaticRuleGenerator agen) -
Uses of RuleParseException in edu.wisc.game.parser
Methods in edu.wisc.game.parser that throw RuleParseExceptionModifier and TypeMethodDescriptionExpression.Mapper.apply
(Expression ex) static void
Expression.AdditiveExpression.map
(Expression.Mapper mapper) Applies the mapper to each componentExpression.BracketList.map
(Expression.Mapper mapper) Applies the mapper to each componentExpression.ColonExpression.map
(Expression.Mapper mapper) Expression.ComparisonExpression.map
(Expression.Mapper mapper) Applies the mapper to each componentExpression.Id.map
(Expression.Mapper mapper) Expression.map
(Expression.Mapper mapper) Expression.MultiplicativeExpression.map
(Expression.Mapper mapper) Applies the mapper to each componentExpression.NegationExpression.map
(Expression.Mapper mapper) Applies the mapper to each componentExpression.Num.map
(Expression.Mapper mapper) Expression.ParenList.map
(Expression.Mapper mapper) Applies the mapper to each componentExpression.RangeExpression.map
(Expression.Mapper mapper) Expression.Star.map
(Expression.Mapper mapper) static Expression.BracketList
Expression.mkBracketList
(Vector<Token> tokens) static Expression
Expression.mkCounterOrAtom
(Vector<Token> tokens) Extracts one of the sections of a rule line: either the leading counter (int or star), or one of the atoms (paren lists that may include arithmetic expressions or stars)Expression.mkLongestArithmeticExpression
(Vector<Token> tokens) Creates the longest ArithmeticExpression starting at the beginning of the tokens array.Expression.mkLongestE1
(Vector<Token> tokens) E1 := (E) | Id.Id | Id | Num | -Num | [E,E,...]Expression.mkLongestE2
(Vector<Token> tokens) E2 := E1 | !E2Expression.mkLongestE3
(Vector<Token> tokens) E3 := E2 | E2*E2...Expression.mkLongestE4
(Vector<Token> tokens) Expression.mkLongestE5
(Vector<Token> tokens) static Expression.RangeExpression
Expression.mkRangeExpression
(Vector<Token> tokens) If the given sequence of tokens starts with a range expression, extracts it; otherwise, returns nullConstructors in edu.wisc.game.parser that throw RuleParseException -
Uses of RuleParseException in edu.wisc.game.rest
Methods in edu.wisc.game.rest that throw RuleParseExceptionModifier and TypeMethodDescriptionstatic PlayerInfo
PlayerResponse.findPlayerInfo
(javax.persistence.EntityManager em, String pid) Find the matching record for a player, in the cache of the database. -
Uses of RuleParseException in edu.wisc.game.sql
Methods in edu.wisc.game.sql that throw RuleParseExceptionModifier and TypeMethodDescriptionstatic GameGenerator
RandomGameGenerator.buildFromArgv
(RandomRG _random, File f, ParseConfig ht, String[] argv, int ja) Builds a RandomGameGenerator from command-line arguments.PlayerInfo.episodeToDo()
Returns the currently unfinished last episode to be resumed, or a new episode (in the current series or the next series, as the case may be), or null if this player has finished with all series.void
PlayerInfo.initSeries
(TrialList trialList) This is usesd when a player is first registered and a PlayerInfo object is first created.static void
Creates a bunch of random boards, from which one can later select those matching some additional criteria, and use them in an experiment plan with predefined boards.static GameGenerator
GameGenerator.mkGameGenerator
(RandomRG _random, ParaSet para) Creates a GameGenerator based on a parameter set.void
PlayerInfo.restoreTransientFields()
This method should be called after restoring the object from the SQL database, in order to re-create some of the necessary non-persistent structures.Constructors in edu.wisc.game.sql that throw RuleParseExceptionModifierConstructorDescriptionRandomGameGenerator
(RandomRG _random, File ruleSetFile, int[] _nPiecesRange, int[] _nShapesRange, int[] _nColorsRange, Piece.Shape[] _allShapes, Piece.Color[] _allColors) RandomImageGameGenerator
(RandomRG _random, File ruleSetFile, int[] _nPiecesRange, ImageObject.Generator _imageGenerator) -
Uses of RuleParseException in edu.wisc.game.tools
Methods in edu.wisc.game.tools that throw RuleParseExceptionModifier and TypeMethodDescriptionprotected void
AnalyzeTranscripts.analyzePlayerRecord
(String playerId, Vector<edu.wisc.game.tools.EpisodeHandle> v) Reads one player's transcript, and prepares a complete report for that player.protected edu.wisc.game.tools.AnalyzeTranscripts.P0andR
AnalyzeTranscripts.computeP0andR
(Vector<TranscriptManager.ReadTranscriptData.Entry[]> subsections, ParaSet para, String ruleSetName, Vector<Board> boardHistory) Reconstructs and replays the historical episode, computing p0 for every pick or move attempt.protected void
AnalyzeTranscripts.saveAnyData
(Vector<TranscriptManager.ReadTranscriptData.Entry[]> section, Vector<edu.wisc.game.tools.EpisodeHandle> includedEpisodes) Saves the data for a single (player, ruleSet) pair.protected void
MwByHuman.saveAnyData
(Vector<TranscriptManager.ReadTranscriptData.Entry[]> section, Vector<edu.wisc.game.tools.EpisodeHandle> includedEpisodes) Saves the data (the summary of a series) for a single (player, ruleSet) pair.