|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.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(cz.cuni.amis.pogamut.base.agent.params.IAgentParameters defaults)
|
Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,String> |
getFileNames()
This may be used to provide concrete filenames for outputting stats for bots identified by their id. |
cz.cuni.amis.pogamut.base.communication.connection.impl.socket.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(cz.cuni.amis.pogamut.base.agent.IAgentId agentId)
|
UT2004AnalyzerParameters |
setFileNames(Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,String> fileNames)
This may be used to provide concrete filenames for outputting stats for bots identified by their id. |
UT2004AnalyzerParameters |
setObserverAddress(cz.cuni.amis.pogamut.base.communication.connection.impl.socket.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(cz.cuni.amis.pogamut.base.communication.connection.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 |
---|
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(cz.cuni.amis.pogamut.base.agent.IAgentId agentId)
setAgentId
in class UT2004AgentParameters
public UT2004AnalyzerParameters setWorldAddress(cz.cuni.amis.pogamut.base.communication.connection.IWorldConnectionAddress address)
setWorldAddress
in class UT2004AgentParameters
public String getOutputPath()
public UT2004AnalyzerParameters setOutputPath(String outputPath)
outputPath
- public boolean isWaitForMatchRestart()
public UT2004AnalyzerParameters setWaitForMatchRestart(boolean waitForMatchRestart)
waitForMatchRestart
- public Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,String> getFileNames()
public UT2004AnalyzerParameters setFileNames(Map<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,String> fileNames)
fileNames
-
public cz.cuni.amis.pogamut.base.communication.connection.impl.socket.SocketConnectionAddress getObserverAddress()
public UT2004AnalyzerParameters setObserverAddress(cz.cuni.amis.pogamut.base.communication.connection.impl.socket.SocketConnectionAddress observerAddress)
observerAddress
- public void assignDefaults(cz.cuni.amis.pogamut.base.agent.params.IAgentParameters defaults)
assignDefaults
in interface cz.cuni.amis.pogamut.base.agent.params.IAgentParameters
assignDefaults
in class cz.cuni.amis.pogamut.base.agent.params.impl.RemoteAgentParameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |