org.eclipse.palamedes.gdl.core.simulation
Class Simulator

java.lang.Object
  extended by org.eclipse.palamedes.gdl.core.simulation.Simulator

public class Simulator
extends java.lang.Object


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

Constructor Detail

Simulator

public Simulator(IGame newGame)
Method Detail

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)