|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.cuni.amis.pogamut.base.agent.params.impl.AgentParameters
cz.cuni.amis.pogamut.base.agent.params.impl.RemoteAgentParameters
cz.cuni.amis.pogamut.ut2004.agent.params.UT2004AgentParameters
cz.cuni.amis.pogamut.ut2004.analyzer.UT2004AnalyzerParameters
public class UT2004AnalyzerParameters

Agent parameters are meant to provide run-time parameters needed by 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 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)
Fills missing parameters of 'this' with values from 'defaults'. |
java.util.Map<UnrealId,java.lang.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()
|
java.lang.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)
Sets agent id into the parameters. |
UT2004AnalyzerParameters |
setFileNames(java.util.Map<UnrealId,java.lang.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(java.lang.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)
Sets connection address into the parameters. |
| 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 |
|---|
public UT2004AnalyzerParameters()
setAgentId(IAgentId), setWorldAddress(IWorldConnectionAddress),
UT2004AnalyzerParameters#setObserverModule(UT2004ObserverModule).
| Method Detail |
|---|
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)
AgentParametersWARNING: 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.
setAgentId in class UT2004AgentParameterspublic UT2004AnalyzerParameters setWorldAddress(IWorldConnectionAddress address)
RemoteAgentParametersWARNING: 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.
setWorldAddress in class UT2004AgentParameterspublic java.lang.String getOutputPath()
public UT2004AnalyzerParameters setOutputPath(java.lang.String outputPath)
outputPath - public boolean isWaitForMatchRestart()
public UT2004AnalyzerParameters setWaitForMatchRestart(boolean waitForMatchRestart)
waitForMatchRestart - public java.util.Map<UnrealId,java.lang.String> getFileNames()
public UT2004AnalyzerParameters setFileNames(java.util.Map<UnrealId,java.lang.String> fileNames)
fileNames -
public SocketConnectionAddress getObserverAddress()
public UT2004AnalyzerParameters setObserverAddress(SocketConnectionAddress observerAddress)
observerAddress - public void assignDefaults(IAgentParameters defaults)
IAgentParameters
This method is meant as a hook for IAgentRunners that can ease the burden
of instantiating&launching the agent into a specific environment.
It assigns params from 'default' only to fields (of this) that are null!
assignDefaults in interface IAgentParametersassignDefaults in class RemoteAgentParametersdefaults - values that should filled missing parameters
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||