org.eclipse.palamedes.gdl.core.simulation
Class Simulator
java.lang.Object
org.eclipse.palamedes.gdl.core.simulation.Simulator
public class Simulator
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Simulator
public Simulator(IGame newGame)
run
public void run()
setSettings
public void setSettings(SimulationSettings newSettings)
reset
public void reset()
- Creates the matches and initializes the runtime information
step
public void step()
getStepInfos
public java.util.List<StepInfo> getStepInfos()
getGame
public IGame getGame()
getMatchs
public Match[] getMatchs()
getStep
public int getStep()
getCurrentMoves
public IMove[] getCurrentMoves()
getCurrentState
public IGameState getCurrentState()
isTerminal
public boolean isTerminal()
hookBeforeMoveGeneration
public void hookBeforeMoveGeneration()
hookAfterMoveGeneration
public void hookAfterMoveGeneration()
hookBeforeStateGeneration
public void hookBeforeStateGeneration()
hookAfterStateGeneration
public void hookAfterStateGeneration()
hookIsTerminal
public void hookIsTerminal()
setCurrentState
public void setCurrentState(IGameState currentState)
setCurrentNode
public void setCurrentNode(IGameNode currentNode)