Package edu.wisc.game.sql
Class MlcEntry
java.lang.Object
edu.wisc.game.sql.MlcEntry
An MlcEntry contains the data for a (participant, ruleset, run)
tuple. The data is condensed from the appropriate lines of a CSV
file submitted by an MLC participant.
An MlcEntry has the "learned" boolean field, which indicates whether the participant (an ML algo) has demonstrated its mastering of the rule set (in this run, at any rate) by ending the run with a required number of error-free episodes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEpisode(int episodeNo, int number_of_pieces, int number_of_moves, double move_acc, boolean if_clear, StringBuffer errmsg) Updates the aggregate statistics stored in this MlcEntry based on one more episode in the run.booleanaddEpisode2(int episodeNo, int number_of_moves, int number_of_errors, boolean if_clear, StringBuffer errmsg) intintintintbooleanintintgetRunNo()intintintbooleanvoidsetEndStreakEpisodes(int _endStreakEpisodes) voidsetEndStreakMoves(int _endStreakMoves) voidsetEpisodesUntilLearned(int _episodesUntilLearned) voidsetErrorsUntilLearned(int _errorsUntilLearned) voidsetLearned(boolean _learned) voidsetMovesUntilLearned(int _movesUntilLearned) voidsetNickname(String _nickname) voidsetRuleSetName(String _ruleSetName) voidsetRunNo(int _runNo) voidsetTotalEpisodes(int _totalEpisodes) voidsetTotalErrors(int _totalErrors) voidsetTotalMoves(int _totalMoves) voidsetUploadTime(Date _uploadTime)
-
Constructor Details
-
MlcEntry
Creates an entry with zeros for all aggregated statistics.
-
-
Method Details
-
getUploadTime
-
setUploadTime
-
getNickname
-
setNickname
-
getRuleSetName
-
setRuleSetName
-
getRunNo
public int getRunNo() -
setRunNo
public void setRunNo(int _runNo) -
getLearned
public boolean getLearned() -
setLearned
public void setLearned(boolean _learned) -
getEpisodesUntilLearned
public int getEpisodesUntilLearned() -
setEpisodesUntilLearned
public void setEpisodesUntilLearned(int _episodesUntilLearned) -
getMovesUntilLearned
public int getMovesUntilLearned() -
setMovesUntilLearned
public void setMovesUntilLearned(int _movesUntilLearned) -
getErrorsUntilLearned
public int getErrorsUntilLearned() -
setErrorsUntilLearned
public void setErrorsUntilLearned(int _errorsUntilLearned) -
getTotalMoves
public int getTotalMoves() -
setTotalMoves
public void setTotalMoves(int _totalMoves) -
getTotalErrors
public int getTotalErrors() -
setTotalErrors
public void setTotalErrors(int _totalErrors) -
getTotalEpisodes
public int getTotalEpisodes() -
setTotalEpisodes
public void setTotalEpisodes(int _totalEpisodes) -
getEndStreakMoves
public int getEndStreakMoves() -
setEndStreakMoves
public void setEndStreakMoves(int _endStreakMoves) -
getEndStreakEpisodes
public int getEndStreakEpisodes() -
setEndStreakEpisodes
public void setEndStreakEpisodes(int _endStreakEpisodes) -
matches
-
addEpisode
public boolean addEpisode(int episodeNo, int number_of_pieces, int number_of_moves, double move_acc, boolean if_clear, StringBuffer errmsg) Updates the aggregate statistics stored in this MlcEntry based on one more episode in the run. This includes determining if learning success has been achieved.- Parameters:
errmsg- An empty StringBuffer, to which an error message can be appended if needed.- Returns:
- true on success, false on error
-
addEpisode2
public boolean addEpisode2(int episodeNo, int number_of_moves, int number_of_errors, boolean if_clear, StringBuffer errmsg)
-