SimpleModel

public class SimpleModel implements Model

A “Simple” Model. This model is sequential, processing most actions one at a time, and resolves conflicts in this manner. This model assumes players don’t take turns and primitive actions take exactly one step to complete, and will disregard all evidence to the contrary.

Constructors

SimpleModel

public SimpleModel(State init, int seed, StateCreator restartTactic, Configuration configuration)

Methods

addActions

public void addActions(Map<Integer, Action> actions, int sendingPlayerNumber)

createNewWorld

public void createNewWorld()

executeStep

public void executeStep()

getConfiguration

public Configuration getConfiguration()

getHistory

public History getHistory()

getState

public State getState()

getVerbose

public boolean getVerbose()

isTerminated

public boolean isTerminated()

save

public void save(String filename)

setConfiguration

public void setConfiguration(Configuration configuration)

setTurnTracker

public void setTurnTracker(TurnTracker turnTracker)

setVerbose

public void setVerbose(boolean verbose)