klaus.backend
Class AnalyzeBackend

java.lang.Object
  extended by klaus.backend.NullBackend
      extended by klaus.backend.OfflinePlayingBackend
          extended by klaus.backend.AnalyzeBackend
All Implemented Interfaces:
ChessBackend, ScrollingBackend

public class AnalyzeBackend
extends OfflinePlayingBackend


Field Summary
 
Fields inherited from class klaus.backend.OfflinePlayingBackend
party
 
Fields inherited from class klaus.backend.NullBackend
active
 
Constructor Summary
AnalyzeBackend()
           
 
Method Summary
 boolean addMove(Move move)
          Add a certain move to the backend.
 void setBlackEngine(Engine e)
           
 void setParty(Party party)
           
 void setWhiteEngine(Engine e)
           
 void unload()
          Unload the backend, e. g. close file/database/process connections
 
Methods inherited from class klaus.backend.OfflinePlayingBackend
fireResultListeners, forceMove, getBlack, getBlackTime, getParty, getPosition, getWhite, getWhiteTime, goToFirst, goToLast, goToNext, goToPrevious, isEngineThinking, isGameRunning, setGameModel, startCalculation
 
Methods inherited from class klaus.backend.NullBackend
addMoveListener, addResultListener, fireMoveListeners, removeMoveListener, removeResultListener, setActive, setInactive, setPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyzeBackend

public AnalyzeBackend()
Method Detail

setBlackEngine

public void setBlackEngine(Engine e)
Overrides:
setBlackEngine in class OfflinePlayingBackend

setWhiteEngine

public void setWhiteEngine(Engine e)
Overrides:
setWhiteEngine in class OfflinePlayingBackend

unload

public void unload()
Description copied from interface: ChessBackend
Unload the backend, e. g. close file/database/process connections

Specified by:
unload in interface ChessBackend
Overrides:
unload in class OfflinePlayingBackend

setParty

public void setParty(Party party)

addMove

public boolean addMove(Move move)
Description copied from interface: ChessBackend
Add a certain move to the backend. The backend has to react to this move. If the move is accepted, true is returned and the move can be displayed. If not, the interface should beep and/or show an error message.

Specified by:
addMove in interface ChessBackend
Overrides:
addMove in class OfflinePlayingBackend
Parameters:
move - the move that has been done by the user
Returns:
true if the move was accepted, else false