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

Package class diagram package UT2004AnalyzerParameters
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.UT2004AnalyzerParameters
All Implemented Interfaces:
IAgentParameters, IRemoteAgentParameters

public class UT2004AnalyzerParameters
extends UT2004AgentParameters

Author:
Jimmy

Constructor Summary
UT2004AnalyzerParameters()
          If you need to populate the parameters after instantiation, use setters available in this class: setAgentId(IAgentId), setWorldAddress(IWorldConnectionAddress), UT2004AnalyzerParameters#setObserverModule(UT2004ObserverModule).
 
Method Summary
 void assignDefaults(IAgentParameters defaults)
           
 Map<UnrealId,String> getFileNames()
          This may be used to provide concrete filenames for outputting stats for bots identified by their id.
 Boolean getHumanLikeObserving()
          Whether to produce logs for "HumanLikeBot project" analysis.
 SocketConnectionAddress getObserverAddress()
          Returns observer address that should be used for spawning new observers.
 UT2004AnalyzerFullObserverModule getObserverModule()
           
 String getOutputPath()
          Contains path to directory where the observer should output its results.
 boolean isWaitForMatchRestart()
          Whether the analyzer's observers should wait for match-restart before it starts to collect data.
 UT2004AnalyzerParameters setAgentId(IAgentId agentId)
           
 UT2004AnalyzerParameters setFileNames(Map<UnrealId,String> fileNames)
          This may be used to provide concrete filenames for outputting stats for bots identified by their id.
 UT2004AnalyzerParameters setHumanLikeObserving(Boolean humanLikeObserving)
          Whether to produce logs for "HumanLikeBot project" analysis.
 UT2004AnalyzerParameters setObserverAddress(SocketConnectionAddress observerAddress)
          Sets observer address that should be used for spawning new observers.
 UT2004AnalyzerParameters setObserverModule(UT2004AnalyzerFullObserverModule observerModule)
          Sets observer module (one that will be used to construct new UT2004AnalyzerObserver in order to sniff info about connected bots.
 UT2004AnalyzerParameters setOutputPath(String outputPath)
          Sets path to directory where the observer should output its results.
 UT2004AnalyzerParameters setWaitForMatchRestart(boolean waitForMatchRestart)
          Sets whether the analyzer's observers should wait for match-restart before it starts to collect data.
 UT2004AnalyzerParameters 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

UT2004AnalyzerParameters

public UT2004AnalyzerParameters()
If you need to populate the parameters after instantiation, use setters available in this class: setAgentId(IAgentId), setWorldAddress(IWorldConnectionAddress), UT2004AnalyzerParameters#setObserverModule(UT2004ObserverModule).

Method Detail

getObserverModule

public UT2004AnalyzerFullObserverModule getObserverModule()

setObserverModule

public UT2004AnalyzerParameters setObserverModule(UT2004AnalyzerFullObserverModule observerModule)
Sets observer module (one that will be used to construct new UT2004AnalyzerObserver in order to sniff info about connected bots.

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 UT2004AnalyzerParameters setAgentId(IAgentId agentId)
Overrides:
setAgentId in class UT2004AgentParameters

setWorldAddress

public UT2004AnalyzerParameters 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 UT2004AnalyzerParameters 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 analyzer's observers should wait for match-restart before it starts to collect data.

Returns:

setWaitForMatchRestart

public UT2004AnalyzerParameters setWaitForMatchRestart(boolean waitForMatchRestart)
Sets whether the analyzer's observers should wait for match-restart before it starts to collect data.

Parameters:
waitForMatchRestart -

getFileNames

public Map<UnrealId,String> getFileNames()
This may be used to provide concrete filenames for outputting stats for bots identified by their id.

Returns:

setFileNames

public UT2004AnalyzerParameters setFileNames(Map<UnrealId,String> fileNames)
This may be used to provide concrete filenames for outputting stats for bots identified by their id.

Parameters:
fileNames -
Returns:

getObserverAddress

public SocketConnectionAddress getObserverAddress()
Returns observer address that should be used for spawning new observers.

Returns:

setObserverAddress

public UT2004AnalyzerParameters setObserverAddress(SocketConnectionAddress observerAddress)
Sets observer address that should be used for spawning new observers. If you do not specify it a default address will be used.

Parameters:
observerAddress -

getHumanLikeObserving

public Boolean getHumanLikeObserving()
Whether to produce logs for "HumanLikeBot project" analysis.

Returns:

setHumanLikeObserving

public UT2004AnalyzerParameters setHumanLikeObserving(Boolean humanLikeObserving)
Whether to produce logs for "HumanLikeBot project" analysis.

Parameters:
humanLikeObserving -

assignDefaults

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


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