klaus.engine
Class Engine

java.lang.Object
  extended by klaus.engine.Engine
Direct Known Subclasses:
UCIEngine, WinBoardXBoardEngine

public abstract class Engine
extends Object


Field Summary
protected  Vector<DebuggingListener> debuggingListeners
           
protected  Vector<MoveListener> moveListeners
           
protected  Party party
           
 
Constructor Summary
Engine()
           
 
Method Summary
 void addDebuggingListener(DebuggingListener listener)
           
 void addMove(Move move)
           
 void addMoveListener(MoveListener listener)
           
abstract  void cancel()
           
 void clearDebuggingListeners()
           
 void fireDebuggingListeners(DebuggingInformation info)
           
protected  void fireMoveListeners(Move move)
           
abstract  void forceMove()
           
 void removeAllMoveListeners()
           
 void removeDebuggingListener(DebuggingListener listener)
           
 void removeMoveListener(MoveListener listener)
           
abstract  void setTimeModel(int timeInMinutes, int moves, int increment)
          Set the time model, equivalent to XBoards "level" command.
abstract  void startCalculation()
           
abstract  void unload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

party

protected Party party

moveListeners

protected Vector<MoveListener> moveListeners

debuggingListeners

protected Vector<DebuggingListener> debuggingListeners
Constructor Detail

Engine

public Engine()
Method Detail

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:

Parameters:
timeInMinutes - the time for this period
moves - the number of moves to the next period
increment - the increment per move (Fischer clock) (in seconds)