cz.cuni.amis.pogamut.ut2004.analyzer
Class UT2004AnalyzerFullObserverParameters

Package class diagram package UT2004AnalyzerFullObserverParameters
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.agent.params.impl.AgentParameters
      extended by cz.cuni.amis.pogamut.base.agent.params.impl.RemoteAgentParameters
          extended by cz.cuni.amis.pogamut.ut2004.agent.params.UT2004AgentParameters
              extended by cz.cuni.amis.pogamut.ut2004.analyzer.UT2004AnalyzerFullObserverParameters
All Implemented Interfaces:
IAgentParameters, IRemoteAgentParameters

public class UT2004AnalyzerFullObserverParameters
extends UT2004AgentParameters


Constructor Summary
UT2004AnalyzerFullObserverParameters()
           
 
Method Summary
 void assignDefaults(IAgentParameters defaults)
           
 String getFileName()
          Returns file name that should be used for outputting data (just file name, must be combined with UT2004AnalyzerObserver.getOutputFilePath().
 String getHumanLikeBotName()
           
 PrintWriter getHumanLikeWriter()
           
 String getObservedAgentId()
          Returns ID of the player that should be observed.
 String getOutputPath()
          Contains path to directory where the observer should output its results.
 Boolean isHumanLikeObservingEnabled()
          Whether to produce additional output for "HumanLikeBot" project analysis.
 boolean isWaitForMatchRestart()
          Whether the observer should wait for match-restart before it starts to collect data.
 UT2004AnalyzerFullObserverParameters setAgentId(IAgentId agentId)
           
 UT2004AnalyzerFullObserverParameters setFileName(String fileName)
          Sets FileName to be used for the output.
 UT2004AnalyzerFullObserverParameters setHumanLikeObserving(String botName, PrintWriter humanLikeWriter)
           
 UT2004AnalyzerFullObserverParameters setObservedAgentId(String observedAgentId)
          Sets 'id' (usually taken from the UnrealId that is present for instance in Self.getId()) of the bot that is going to be observed by newly created observer.
 UT2004AnalyzerFullObserverParameters setOutputPath(String outputPath)
          Sets path to directory where the observer should output its results.
 UT2004AnalyzerFullObserverParameters setWaitForMatchRestart(boolean waitForMatchRestart)
          Sets whether the observer should wait for match-restart before it starts to collect data.
 UT2004AnalyzerFullObserverParameters setWorldAddress(IWorldConnectionAddress address)
           
 
Methods inherited from class cz.cuni.amis.pogamut.base.agent.params.impl.RemoteAgentParameters
getWorldAddress
 
Methods inherited from class cz.cuni.amis.pogamut.base.agent.params.impl.AgentParameters
getAgentId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.params.IAgentParameters
getAgentId
 

Constructor Detail

UT2004AnalyzerFullObserverParameters

public UT2004AnalyzerFullObserverParameters()
Method Detail

getObservedAgentId

public String getObservedAgentId()
Returns ID of the player that should be observed.

Returns:

setObservedAgentId

public UT2004AnalyzerFullObserverParameters setObservedAgentId(String observedAgentId)
Sets 'id' (usually taken from the UnrealId that is present for instance in Self.getId()) of the bot that is going to be observed by newly created observer.

WARNING: Note that you should not mess with 'setters' in different threads as they are non-thread-safe and may interrupt horrible agent instantiations with such behavior.

Parameters:
address -
Returns:
this instance

setAgentId

public UT2004AnalyzerFullObserverParameters setAgentId(IAgentId agentId)
Overrides:
setAgentId in class UT2004AgentParameters

setWorldAddress

public UT2004AnalyzerFullObserverParameters setWorldAddress(IWorldConnectionAddress address)
Overrides:
setWorldAddress in class UT2004AgentParameters

getOutputPath

public String getOutputPath()
Contains path to directory where the observer should output its results. MUST POINT TO DIR!

Returns:

setOutputPath

public UT2004AnalyzerFullObserverParameters setOutputPath(String outputPath)
Sets path to directory where the observer should output its results. MUST POINT TO DIR!

Parameters:
outputPath -

isWaitForMatchRestart

public boolean isWaitForMatchRestart()
Whether the observer should wait for match-restart before it starts to collect data.

Returns:

setWaitForMatchRestart

public UT2004AnalyzerFullObserverParameters setWaitForMatchRestart(boolean waitForMatchRestart)
Sets whether the observer should wait for match-restart before it starts to collect data.

Parameters:
waitForMatchRestart -

getFileName

public String getFileName()
Returns file name that should be used for outputting data (just file name, must be combined with UT2004AnalyzerObserver.getOutputFilePath().

Returns:

setFileName

public UT2004AnalyzerFullObserverParameters setFileName(String fileName)
Sets FileName to be used for the output. Must end with some file extension (e.g., .csv). (Just file name, will be combined with UT2004AnalyzerObserver.getOutputFilePath().

Parameters:
fileName -

isHumanLikeObservingEnabled

public Boolean isHumanLikeObservingEnabled()
Whether to produce additional output for "HumanLikeBot" project analysis.

Returns:

getHumanLikeWriter

public PrintWriter getHumanLikeWriter()

getHumanLikeBotName

public String getHumanLikeBotName()

setHumanLikeObserving

public UT2004AnalyzerFullObserverParameters setHumanLikeObserving(String botName,
                                                                  PrintWriter humanLikeWriter)

assignDefaults

public void assignDefaults(IAgentParameters defaults)
Specified by:
assignDefaults in interface IAgentParameters
Overrides:
assignDefaults in class RemoteAgentParameters


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