Package edu.wisc.game.rest
Class NewEpisodeWrapper2
java.lang.Object
edu.wisc.game.rest.ResponseBase
edu.wisc.game.rest.NewEpisodeWrapper2
This is an object that's converted to a JSON structure and sent to the client as a response in /GameService2/newEpisode calls.
FIXME: need to add periodic purge on episodes
-
Method Summary
Modifier and TypeMethodDescriptionboolean
True if this player has finished all episodes he could play.The completion code, a string that the player can report as a proof of his completion of the experiment plan.The structure with a lot of information about the current episode, and its place in the experiment's framework.The episode ID of the resumed or newly created episodeboolean
This flag is true if the episode is not ready yet.getPara()
The parameter set currently in effect.void
setMustWait
(boolean _mustWait)
-
Method Details
-
getMustWait
public boolean getMustWait()This flag is true if the episode is not ready yet. The caller must wait for a "READY" signal to arrive via the websocket connection, and then repeat the /newEpisode call. -
setMustWait
public void setMustWait(boolean _mustWait) -
getEpisodeId
The episode ID of the resumed or newly created episode -
getPara
The parameter set currently in effect. This comes from the currently active line of the trial list file associated with the player. -
getAlreadyFinished
public boolean getAlreadyFinished()True if this player has finished all episodes he could play. This means that the most recent episode has been completed, and no more new episodes can be created. -
getCompletionCode
The completion code, a string that the player can report as a proof of his completion of the experiment plan. It is set when the current series number is incremented beyond the last parameter set number. -
getDisplay
The structure with a lot of information about the current episode, and its place in the experiment's framework. (SeeEpisodeInfo.ExtendedDisplay
for the full structure that's actually found here)
-