public class GuiGtpClient extends GtpClientBase
m_name
Constructor and Description |
---|
GuiGtpClient(GtpClient gtp,
java.awt.Component owner,
GtpSynchronizer.Listener listener,
MessageDialogs messageDialogs) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close output connection.
|
void |
destroyGtp() |
boolean |
getAnyCommandsResponded() |
GtpError |
getException()
Get exception of asynchronous command.
|
java.lang.String |
getProgramCommand() |
java.lang.String |
getResponse()
Get response to asynchronous command.
|
void |
initSynchronize(ConstBoard board,
Komi komi,
TimeSettings timeSettings) |
boolean |
isCommandInProgress() |
boolean |
isOutOfSync() |
boolean |
isProgramDead()
Is the program in a state, that all subsequent commands will fail.
|
java.lang.String |
send(java.lang.String command)
Send command in event dispatch thread.
|
void |
send(java.lang.String command,
java.lang.Runnable callback)
Send asynchronous command.
|
void |
sendComment(java.lang.String comment)
Send comment.
|
void |
setAutoNumber(boolean enable) |
void |
synchronize(ConstBoard board,
Komi komi,
TimeSettings timeSettings) |
void |
updateAfterGenmove(ConstBoard board) |
void |
updateHumanMove(ConstBoard board,
Move move) |
void |
waitForExit()
Wait until the process of the program exits.
|
boolean |
wasKilled() |
getCommandBoardsize, getCommandClearBoard, getCommandGenmove, getCommandPlay, getCpuTime, getLabel, getName, getProtocolVersion, getSupportedCommands, isCpuTimeSupported, isGenmoveSupported, isInterruptSupported, isSupported, queryInterruptSupport, queryName, queryProtocolVersion, querySupportedCommands, queryVersion, sendBoardsize, sendClearBoard, sendInterrupt, sendPlay, setLowerCase
public GuiGtpClient(GtpClient gtp, java.awt.Component owner, GtpSynchronizer.Listener listener, MessageDialogs messageDialogs)
public void close()
GtpClientBase
close
in class GtpClientBase
public void destroyGtp()
public boolean getAnyCommandsResponded()
public GtpError getException()
public java.lang.String getProgramCommand()
public java.lang.String getResponse()
public void initSynchronize(ConstBoard board, Komi komi, TimeSettings timeSettings) throws GtpError
GtpError
public boolean isCommandInProgress()
public boolean isOutOfSync()
public boolean isProgramDead()
GtpClientBase
isProgramDead
in class GtpClientBase
public void send(java.lang.String command, java.lang.Runnable callback)
public void sendComment(java.lang.String comment)
GtpClientBase
sendComment
in class GtpClientBase
comment
- comment line (must start with '#').public java.lang.String send(java.lang.String command) throws GtpError
send
in class GtpClientBase
GtpError
- containing the response if the command fails.public void setAutoNumber(boolean enable)
public void synchronize(ConstBoard board, Komi komi, TimeSettings timeSettings) throws GtpError
GtpError
public void updateAfterGenmove(ConstBoard board)
public void updateHumanMove(ConstBoard board, Move move) throws GtpError
GtpError
public void waitForExit()
GtpClientBase
waitForExit
in class GtpClientBase
public boolean wasKilled()