nl.tudelft.pogamut.unreal.server
Class UnrealServerDefinition<T extends cz.cuni.amis.pogamut.unreal.server.IUnrealServer>

Package class diagram package UnrealServerDefinition
java.lang.Object
  extended by nl.tudelft.pogamut.base.server.ServerDefinition<T>
      extended by nl.tudelft.pogamut.unreal.server.UnrealServerDefinition<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UTServerDefinition

public abstract class UnrealServerDefinition<T extends cz.cuni.amis.pogamut.unreal.server.IUnrealServer>
extends ServerDefinition<T>

Definition of UnrealTournament2004 server.

Author:
ik
See Also:
Serialized Form

Field Summary
protected  T server
           
 
Constructor Summary
UnrealServerDefinition()
           
 
Method Summary
protected abstract  T createServer()
          Creates a new server.
protected  void serverStopped(T server)
           
 void startServer()
          Restarts the server eg. after address change.
 void stopServer()
          Stops connection to the server.
 
Methods inherited from class nl.tudelft.pogamut.base.server.ServerDefinition
getServerFlag, getServerName, getServerNameFlag, getUri, getUriFlag, setNewServer, setServerName, setUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

protected transient T extends cz.cuni.amis.pogamut.unreal.server.IUnrealServer server
Constructor Detail

UnrealServerDefinition

public UnrealServerDefinition()
Method Detail

startServer

public void startServer()
                 throws cz.cuni.amis.utils.exception.PogamutException
Description copied from class: ServerDefinition
Restarts the server eg. after address change.

Specified by:
startServer in class ServerDefinition<T extends cz.cuni.amis.pogamut.unreal.server.IUnrealServer>
Throws:
cz.cuni.amis.utils.exception.PogamutException

createServer

protected abstract T createServer()
Creates a new server. Server is assumed to be up and running before it is returned or null if creating a server failed.

Returns:

serverStopped

protected void serverStopped(T server)

stopServer

public void stopServer()
Description copied from class: ServerDefinition
Stops connection to the server. When the server is stopped, the serverFlag should be set to null.

Specified by:
stopServer in class ServerDefinition<T extends cz.cuni.amis.pogamut.unreal.server.IUnrealServer>


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.