dd.ui
Class Simulator
java.lang.Object
dd.ui.Robot
dd.ui.Simulator
- All Implemented Interfaces:
- DLUGUI, UI
- public class Simulator
- extends Robot
A client for running synthetic games. Run it as the mainClass, and
it will play a game, start to finish by itself. Whenever Simulator
receives "beginNegotiationPhase", it asks the server for a random
proposal. As a robot, whenever it receives a random proposal, it
plays it, and because it's in single-player mode, whenever a
proposal is played, it automatically passes. Simulator records
information in files named for the random number seed in
appropriately-named subdirectories of a directory named "sim".
Outputs: "budget/1.0", "budget/2.0", "budget/3.0", "debriefing",
"issues", "lu", "metrics/1.0", "metrics/2.0", "metrics/3.0", and
"props".
Methods inherited from class dd.ui.Robot |
addPlayer, availableGames, beginSetupPhase, briefingEnded, callForVote, disableUI, doneNotify, enableUI, endVote, errorMessage, gameMessage, isRunning, joinedGame, lostServer, newScenario, notifyUser, pauseUI, prepareForVotingOn, rankFamily, run, secondNotify, setNumber, startVote, startVotingTimer, unpauseUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Simulator
public Simulator()
serverStartup
public void serverStartup()
- Overrides:
serverStartup
in class Robot
run
public void run(int s)
beginNegotiationPhase
public void beginNegotiationPhase()
- Specified by:
beginNegotiationPhase
in interface DLUGUI
- Overrides:
beginNegotiationPhase
in class Robot
setRoot
public void setRoot(GameRoot r)
- Specified by:
setRoot
in interface DLUGUI
- Overrides:
setRoot
in class Robot
startBriefing
public void startBriefing(Briefing b)
- Specified by:
startBriefing
in interface DLUGUI
- Overrides:
startBriefing
in class Robot
gameEnded
public void gameEnded()
- Specified by:
gameEnded
in interface DLUGUI
- Overrides:
gameEnded
in class Robot
summary
public java.lang.String summary(java.util.ArrayList issues)
main
public static void main(java.lang.String[] args)