cz.cuni.amis.pogamut.udk.communication.messages.gbcommands
Class SetLock

Package class diagram package SetLock
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.udk.communication.messages.gbcommands.SetLock

public class SetLock
extends CommandMessage

Will disable new connections to bot server and or control server - depends on parameters. If last ControlServer instance is leaving. ControlServer lock will be canceled. Corresponding GameBots command is SETLOCK.


Field Summary
protected  boolean BotServer
          If BotConnections should be locked.
protected  boolean ControlServer
          If ControlConnections (server connections) should be locked.
 
Constructor Summary
SetLock()
          Creates new instance of command SetLock.
SetLock(boolean BotServer, boolean ControlServer)
          Creates new instance of command SetLock.
SetLock(SetLock original)
          Cloning constructor.
 
Method Summary
 boolean isBotServer()
          If BotConnections should be locked.
 boolean isControlServer()
          If ControlConnections (server connections) should be locked.
 SetLock setBotServer(boolean BotServer)
          If BotConnections should be locked.
 SetLock setControlServer(boolean ControlServer)
          If ControlConnections (server connections) should be locked.
 String toHtmlString()
           
 String toMessage()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BotServer

protected boolean BotServer
If BotConnections should be locked.


ControlServer

protected boolean ControlServer
If ControlConnections (server connections) should be locked.

Constructor Detail

SetLock

public SetLock(boolean BotServer,
               boolean ControlServer)
Creates new instance of command SetLock. Will disable new connections to bot server and or control server - depends on parameters. If last ControlServer instance is leaving. ControlServer lock will be canceled. Corresponding GameBots message for this command is SETLOCK.

Parameters:
BotServer - If BotConnections should be locked.
ControlServer - If ControlConnections (server connections) should be locked.

SetLock

public SetLock()
Creates new instance of command SetLock. Will disable new connections to bot server and or control server - depends on parameters. If last ControlServer instance is leaving. ControlServer lock will be canceled. Corresponding GameBots message for this command is SETLOCK.

WARNING: this is empty-command constructor, you have to use setters to fill it up!


SetLock

public SetLock(SetLock original)
Cloning constructor.

Method Detail

isBotServer

public boolean isBotServer()
If BotConnections should be locked.


setBotServer

public SetLock setBotServer(boolean BotServer)
If BotConnections should be locked.


isControlServer

public boolean isControlServer()
If ControlConnections (server connections) should be locked.


setControlServer

public SetLock setControlServer(boolean ControlServer)
If ControlConnections (server connections) should be locked.


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


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