cz.cuni.amis.pogamut.ut2004.tournament.botexecution
Class UT2004BotExecutionConfig

Package class diagram package UT2004BotExecutionConfig
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.tournament.botexecution.UT2004BotExecutionConfig
Direct Known Subclasses:
UT2004BotConfig

public class UT2004BotExecutionConfig
extends Object


Constructor Summary
UT2004BotExecutionConfig()
          Parameter-less constructor.
UT2004BotExecutionConfig(UT2004BotConfig value)
          Copy-constructor;
 
Method Summary
 cz.cuni.amis.utils.token.IToken getBotId()
          Returns ID of this bot configuration.
 File getJarFile()
          Returns path to jar as a file.
 String getPathToBotJar()
          Path to the runnable jar file contining the bot to be run.
 boolean isBotJarExist()
          Whether the jar specified by this config exists.
 boolean isRedirectStdErr()
          Whether the StdErr of the bot execution should be redirected to log (== true, default) or sunk (== false).
 boolean isRedirectStdOut()
          Whether the StdOut of the bot execution should be redirected to log (== true, default) or sunk (== false).
 UT2004BotExecutionConfig setBotId(cz.cuni.amis.utils.token.IToken botId)
          Sets ID of this bot configuration.
 UT2004BotExecutionConfig setBotId(String botId)
          Sets ID of this bot configuration.
 UT2004BotExecutionConfig setPathToBotJar(String pathToBotJar)
          Sets the path to jar-file of the bot.
 UT2004BotExecutionConfig setRedirectStdErr(boolean redirectStdErr)
          Sets whether the StdErr of the bot execution should be redirected to log (== true, default) or sunk (== false).
 UT2004BotExecutionConfig setRedirectStdOut(boolean redirectStdOut)
          Sets whether the StdOut of the bot execution should be redirected to log (== true, default) or sunk (== false).
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UT2004BotExecutionConfig

public UT2004BotExecutionConfig()
Parameter-less constructor.


UT2004BotExecutionConfig

public UT2004BotExecutionConfig(UT2004BotConfig value)
Copy-constructor;

Parameters:
value -
Method Detail

getBotId

public cz.cuni.amis.utils.token.IToken getBotId()
Returns 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!

Returns:

setBotId

public UT2004BotExecutionConfig setBotId(String botId)
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!

Parameters:
botId -

setBotId

public UT2004BotExecutionConfig setBotId(cz.cuni.amis.utils.token.IToken botId)
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!

Parameters:
botId -

getPathToBotJar

public String getPathToBotJar()
Path to the runnable jar file contining the bot to be run.

Returns:

setPathToBotJar

public UT2004BotExecutionConfig setPathToBotJar(String pathToBotJar)
Sets the path to jar-file of the bot.

Parameters:
botDirPath -

isBotJarExist

public boolean isBotJarExist()
Whether the jar specified by this config exists.

Returns:

getJarFile

public File getJarFile()
Returns path to jar as a file.

Returns:

isRedirectStdErr

public boolean isRedirectStdErr()
Whether the StdErr of the bot execution should be redirected to log (== true, default) or sunk (== false).

Returns:

setRedirectStdErr

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

Parameters:
redirectStdErr -

isRedirectStdOut

public boolean isRedirectStdOut()
Whether the StdOut of the bot execution should be redirected to log (== true, default) or sunk (== false).

Returns:

setRedirectStdOut

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

Parameters:
redirectStdOut -

toString

public String toString()
Overrides:
toString in class Object


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