public class UT2004AnalyzerParameters extends UT2004AgentParameters
UT2004Analyzer.
Crucial parameters that (even though are present in the UT2004AnalyzerRunner might be needed
in order to customize whole UT2004Analyzer: UT2004AnalyzerParameters#setObserverModule(UT2004AnalyzerObserverModule).
NOTE: all {@link IAgentParameters} implementors are usually used together with {@link IAgentRunner} or {@link IMultipleAgentRunner} which usually contains sensible default params, therefore there is no need to set all parameters into newly created ones as runners will supply them via {@link IAgentParameters#assignDefaults(IAgentParameters)}.
UT2004AgentParameters| Constructor and Description |
|---|
UT2004AnalyzerParameters()
If you need to populate the parameters after instantiation, use setters available in this
class:
setAgentId(IAgentId), setWorldAddress(IWorldConnectionAddress),
UT2004AnalyzerParameters#setObserverModule(UT2004ObserverModule). |
| Modifier and Type | Method and Description |
|---|---|
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.
|
SocketConnectionAddress |
getObserverAddress()
Returns observer address that should be used for spawning new observers.
|
UT2004AnalyzerObserverModule |
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 |
setObserverAddress(SocketConnectionAddress observerAddress)
Sets observer address that should be used for spawning new observers.
|
UT2004AnalyzerParameters |
setObserverModule(UT2004AnalyzerObserverModule 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) |
getWorldAddressgetAgentIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAgentIdpublic UT2004AnalyzerParameters()
setAgentId(IAgentId), setWorldAddress(IWorldConnectionAddress),
UT2004AnalyzerParameters#setObserverModule(UT2004ObserverModule).public UT2004AnalyzerObserverModule getObserverModule()
public UT2004AnalyzerParameters setObserverModule(UT2004AnalyzerObserverModule observerModule)
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.
address - public UT2004AnalyzerParameters setAgentId(IAgentId agentId)
setAgentId in class UT2004AgentParameterspublic UT2004AnalyzerParameters setWorldAddress(IWorldConnectionAddress address)
setWorldAddress in class UT2004AgentParameterspublic String getOutputPath()
public UT2004AnalyzerParameters setOutputPath(String outputPath)
outputPath - public boolean isWaitForMatchRestart()
public UT2004AnalyzerParameters setWaitForMatchRestart(boolean waitForMatchRestart)
waitForMatchRestart - public Map<UnrealId,String> getFileNames()
public UT2004AnalyzerParameters setFileNames(Map<UnrealId,String> fileNames)
fileNames - public SocketConnectionAddress getObserverAddress()
public UT2004AnalyzerParameters setObserverAddress(SocketConnectionAddress observerAddress)
observerAddress - public void assignDefaults(IAgentParameters defaults)
assignDefaults in interface IAgentParametersassignDefaults in class RemoteAgentParametersCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.