BestEffortModel

public class BestEffortModel implements Model

A Model that attempts the best effort. A branch of SimpleModel with some added features: durative actions and turn taking. This model is sequential, processing most actions one at a time. Because of this, it resolves conflicts by allowing them to proceed on a first-come-first-served basis.

Constructors

BestEffortModel

public BestEffortModel(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)