cz.cuni.amis.pogamut.ut2004.tournament.match
Class UT2004BotConfig

Package class diagram package UT2004BotConfig
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.tournament.botexecution.UT2004BotExecutionConfig
      extended by cz.cuni.amis.pogamut.ut2004.tournament.match.UT2004BotConfig
All Implemented Interfaces:
IUT2004BotConfig

public class UT2004BotConfig
extends UT2004BotExecutionConfig
implements IUT2004BotConfig

Describes configuration of the custom-bot created using Pogamut platform.

Author:
Jimmy

Constructor Summary
UT2004BotConfig()
           
UT2004BotConfig(UT2004BotConfig value)
          Copy-constructor.
 
Method Summary
 int getTeamNumber()
          Returns team of the bot.
 UT2004BotConfig setBotId(cz.cuni.amis.utils.token.IToken botId)
          Sets ID of this bot configuration.
 UT2004BotConfig setBotId(String botId)
          Sets ID of this bot configuration.
 UT2004BotConfig setPathToBotJar(String pathToBotJar)
          Sets the path to jar-file of the bot.
 UT2004BotConfig setRedirectStdErr(boolean redirectStdErr)
          Sets whether the StdErr of the bot execution should be redirected to log (== true, default) or sunk (== false).
 UT2004BotConfig setRedirectStdOut(boolean redirectStdOut)
          Sets whether the StdOut of the bot execution should be redirected to log (== true, default) or sunk (== false).
 UT2004BotConfig setTeamNumber(int teamNumber)
          Sets team number the bot should play for.
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.tournament.botexecution.UT2004BotExecutionConfig
addParameter, getBotId, getJarFile, getParameters, getPathToBotJar, isBotJarExist, isRedirectStdErr, isRedirectStdOut, removeParameter, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.ut2004.tournament.match.IUT2004BotConfig
getBotId
 

Constructor Detail

UT2004BotConfig

public UT2004BotConfig()

UT2004BotConfig

public UT2004BotConfig(UT2004BotConfig value)
Copy-constructor.

Parameters:
value -
Method Detail

getTeamNumber

public int getTeamNumber()
Description copied from interface: IUT2004BotConfig
Returns team of the bot.

Specified by:
getTeamNumber in interface IUT2004BotConfig
Returns:

setTeamNumber

public UT2004BotConfig setTeamNumber(int teamNumber)
Sets team number the bot should play for.

Parameters:
teamNumber -

setBotId

public UT2004BotConfig setBotId(String botId)
Description copied from class: UT2004BotExecutionConfig
Sets ID of this bot configuration. This ID will be used for storing result of the tournament for this bot.

DOES NOT MEAN THAT THE EXECUTED BOT WILL HAVE THIS ID IN UT2004!

Overrides:
setBotId in class UT2004BotExecutionConfig

setBotId

public UT2004BotConfig setBotId(cz.cuni.amis.utils.token.IToken botId)
Description copied from class: UT2004BotExecutionConfig
Sets ID of this bot configuration. This ID will be used for storing result of the tournament for this bot.

DOES NOT MEAN THAT THE EXECUTED BOT WILL HAVE THIS ID IN UT2004!

Overrides:
setBotId in class UT2004BotExecutionConfig

setPathToBotJar

public UT2004BotConfig setPathToBotJar(String pathToBotJar)
Description copied from class: UT2004BotExecutionConfig
Sets the path to jar-file of the bot.

Overrides:
setPathToBotJar in class UT2004BotExecutionConfig

setRedirectStdErr

public UT2004BotConfig setRedirectStdErr(boolean redirectStdErr)
Description copied from class: UT2004BotExecutionConfig
Sets whether the StdErr of the bot execution should be redirected to log (== true, default) or sunk (== false).

Overrides:
setRedirectStdErr in class UT2004BotExecutionConfig

setRedirectStdOut

public UT2004BotConfig setRedirectStdOut(boolean redirectStdOut)
Description copied from class: UT2004BotExecutionConfig
Sets whether the StdOut of the bot execution should be redirected to log (== true, default) or sunk (== false).

Overrides:
setRedirectStdOut in class UT2004BotExecutionConfig

toString

public String toString()
Overrides:
toString in class UT2004BotExecutionConfig


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