Class EpisodeInfo


  • @Entity
    public class EpisodeInfo
    extends Episode
    An EpisodeInfo instance extends an Episode, containing additional information related to it being played as part of an experiment. That includes support for creating an Episode based on a parameter set, and for managing earned reward amount.
    • Method Detail

      • setPlayer

        public void setPlayer​(PlayerInfo _player)
      • locateEpisode

        public static Episode locateEpisode​(String eid)
      • cache

        public void cache()
      • isBonus

        public boolean isBonus()
      • setBonus

        public void setBonus​(boolean _bonus)
      • getSeriesNo

        public int getSeriesNo()
      • setSeriesNo

        public void setSeriesNo​(int _seriesNo)
      • getGuessSaved

        public boolean getGuessSaved()
      • setGuessSaved

        public void setGuessSaved​(boolean _guessSaved)
      • getGuess

        public String getGuess()
      • setGuess

        public void setGuess​(String _guess)
      • getGuessConfidence

        public int getGuessConfidence()
      • setGuessConfidence

        public void setGuessConfidence​(int _guessConfidence)
      • xgetPara

        public ParaSet xgetPara()
      • doMove

        public Episode.Display doMove​(int y,
                                      int x,
                                      int by,
                                      int bx,
                                      int _attemptCnt)
                               throws IOException
        Calls Episode.doMove, and then does various adjustments related to this episode's role in the experiment plan. If the player has failed to complete a bonus episode on time, this is the place that sets the "lost" flag.
        Overrides:
        doMove in class Episode
        Throws:
        IOException
      • report

        public String report()
        Concise report, handy for debugging
        Overrides:
        report in class Episode
      • getCurrentBoard

        public Board getCurrentBoard()
        Shows tHe current board (including dropped pieces, which are labeled as such)
        Overrides:
        getCurrentBoard in class Episode
      • saveGuessToFile

        public void saveGuessToFile​(File f,
                                    String guessText,
                                    int confidence)