cz.cuni.pogamut.server
Interface UTServerConnectionInterface

All Known Implementing Classes:
MapVisualizationPanel, UTServer

public interface UTServerConnectionInterface


Method Summary
 int getAutoReconnectMillis()
           
 MessageType getExpectedWelcomeMessage()
          Which message we should expect as the greeting from GameBots?
 java.net.URI getGamebotsControlConnectionURI()
           
 GameInfo getGameInfo()
           
 UTServerInfoSnapshot getInfo()
          Must NOT return null !!!
 java.util.logging.Logger getLog()
           
 int getPongTimeoutMillis()
           
 java.util.logging.Logger getRawGBLog()
          Which log should be used to dump raw GB data.
 UTServerState getServerState()
           
 Flag<UTServerState> getServerStateFlag()
           
 java.util.concurrent.CountDownLatch getWaitInventoryLatch()
           
 java.util.concurrent.CountDownLatch getWaitItemsLatch()
           
 java.util.concurrent.CountDownLatch getWaitMapsLatch()
           
 java.util.concurrent.CountDownLatch getWaitNavPointsLatch()
           
 java.util.concurrent.CountDownLatch getWaitRefreshInfoLatch()
           
 boolean isAutomaticallyReconnect()
          Whether we should automaticly try to reconnect.
 boolean isPingPong()
          Whether we should check whether the connection is active.
 void setGameInfo(GameInfo info)
           
 boolean waitForNFOMessageInHandshake()
          Whether we should wait for NFO message after READY is sent.
 

Method Detail

getInfo

UTServerInfoSnapshot getInfo()
Must NOT return null !!! We're synchronizing access to info through this object.

Returns:

getServerState

UTServerState getServerState()

getServerStateFlag

Flag<UTServerState> getServerStateFlag()

getLog

java.util.logging.Logger getLog()

getGamebotsControlConnectionURI

java.net.URI getGamebotsControlConnectionURI()

getGameInfo

GameInfo getGameInfo()

setGameInfo

void setGameInfo(GameInfo info)

isPingPong

boolean isPingPong()
Whether we should check whether the connection is active.


getPongTimeoutMillis

int getPongTimeoutMillis()

isAutomaticallyReconnect

boolean isAutomaticallyReconnect()
Whether we should automaticly try to reconnect.


getAutoReconnectMillis

int getAutoReconnectMillis()

waitForNFOMessageInHandshake

boolean waitForNFOMessageInHandshake()
Whether we should wait for NFO message after READY is sent.

Returns:

getRawGBLog

java.util.logging.Logger getRawGBLog()
Which log should be used to dump raw GB data.


getWaitNavPointsLatch

java.util.concurrent.CountDownLatch getWaitNavPointsLatch()

getWaitItemsLatch

java.util.concurrent.CountDownLatch getWaitItemsLatch()

getWaitMapsLatch

java.util.concurrent.CountDownLatch getWaitMapsLatch()

getWaitInventoryLatch

java.util.concurrent.CountDownLatch getWaitInventoryLatch()

getWaitRefreshInfoLatch

java.util.concurrent.CountDownLatch getWaitRefreshInfoLatch()

getExpectedWelcomeMessage

MessageType getExpectedWelcomeMessage()
Which message we should expect as the greeting from GameBots?