klaus.engine
Class Engine
java.lang.Object
klaus.engine.Engine
- Direct Known Subclasses:
- UCIEngine, WinBoardXBoardEngine
public abstract class Engine
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
party
protected Party party
moveListeners
protected Vector<MoveListener> moveListeners
debuggingListeners
protected Vector<DebuggingListener> debuggingListeners
Engine
public Engine()
addMove
public void addMove(Move move)
startCalculation
public abstract void startCalculation()
cancel
public abstract void cancel()
unload
public abstract void unload()
addMoveListener
public void addMoveListener(MoveListener listener)
removeMoveListener
public void removeMoveListener(MoveListener listener)
fireMoveListeners
protected void fireMoveListeners(Move move)
removeAllMoveListeners
public void removeAllMoveListeners()
addDebuggingListener
public void addDebuggingListener(DebuggingListener listener)
removeDebuggingListener
public void removeDebuggingListener(DebuggingListener listener)
fireDebuggingListeners
public void fireDebuggingListeners(DebuggingInformation info)
clearDebuggingListeners
public void clearDebuggingListeners()
forceMove
public abstract void forceMove()
setTimeModel
public abstract void setTimeModel(int timeInMinutes,
int moves,
int increment)
Set the time model, equivalent to XBoards "level" command.
This method should be called in two situations:
- A new game was started: Set the time model, timeInMinutes is the
time each player has for the first period.
- A new period just started: set the new time AFTER the time was added to each player's clock. In this case,
timeInMinutes is the old value + the time added
- Parameters:
timeInMinutes
- the time for this periodmoves
- the number of moves to the next periodincrement
- the increment per move (Fischer clock) (in seconds)