Package edu.wisc.game.tools
Class AnalyzeTranscripts
java.lang.Object
edu.wisc.game.tools.AnalyzeTranscripts
- Direct Known Subclasses:
MwByHuman
public class AnalyzeTranscripts extends Object
Methods for the statistical analysis of game transcripts.
For documentation, including usage, see analyze-transcripts.html
-
Field Summary
Fields Modifier and Type Field Description protected boolean
quiet
-
Method Summary
Modifier and Type Method Description protected void
analyzePlayerRecord(String playerId, Vector<edu.wisc.game.tools.EpisodeHandle> v)
Reads one player's transcript, and prepares a complete report for that player.static void
main(String[] argv)
protected void
saveAnyData(Vector<TranscriptManager.ReadTranscriptData.Entry[]> section, Vector<edu.wisc.game.tools.EpisodeHandle> includedEpisodes)
Saves the data for a single (player, ruleSet) pair.
-
Field Details
-
quiet
protected boolean quiet
-
-
Method Details
-
main
- Throws:
Exception
-
saveAnyData
protected void saveAnyData(Vector<TranscriptManager.ReadTranscriptData.Entry[]> section, Vector<edu.wisc.game.tools.EpisodeHandle> includedEpisodes) throws IOException, IllegalInputException, RuleParseExceptionSaves the data for a single (player, ruleSet) pair. This method can only be called if base!=null.- Parameters:
section
- A vector of arrays, each array representing the recorded moves for one episode.includedEpisodes
- All non-empty episodes played by this player in this rule set- Throws:
IOException
IllegalInputException
RuleParseException
-
analyzePlayerRecord
protected void analyzePlayerRecord(String playerId, Vector<edu.wisc.game.tools.EpisodeHandle> v) throws IOException, IllegalInputException, RuleParseExceptionReads one player's transcript, and prepares a complete report for that player.- Parameters:
playerId
- The player whose record we want to analyzev
- The list of episodes played by this player- Throws:
IOException
IllegalInputException
RuleParseException
-