public class UT2004AnalyzerObsStats extends UT2004AnalyzerObserver
AgentStats
for that purpose.events, INTROSPECTION_ROOT_NAME, log, LOG_CATEGORY_NAME
Constructor and Description |
---|
UT2004AnalyzerObsStats(UT2004AnalyzerObserverParameters params,
IComponentBus bus,
IAgentLogger agentLogger,
UT2004WorldView worldView,
IAct act) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureObserver()
Called from the
UT2004AnalyzerObserver.startAgent() after InitializeObserver command
is sent to configure the observer instance. |
protected void |
gameRestartEnd()
Called whenever
GameRestart message with GameRestarted.isFinished() is received. |
AgentStats |
getStats()
Returns detailed statistics about the agent.
|
gameRestartStarted, getObservedBotId, getOutputFilePath, getParams, startAgent, startPausedAgent
createPasswordReply, getPasswordReply, getWorldView, killAgent, readyCommandRequested, reset, resetAgent, setPassword, stopAgent
getAct
addDependency, addDependency, addDependency, addJMXComponents, awaitState, awaitState, componentFatalError, componentStarted, componentStarted, componentStopped, componentStopping, createAgentJMX, createIntrospection, equals, getComponentId, getEventBus, getIntrospection, getJMX, getLog, getLogger, getName, getState, hashCode, inState, kill, notInState, pause, pauseAgent, preKillAgent, preStopAgent, resetEvent, resume, resumeAgent, setState, start, startPaused, stop, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAct
getWorldView
getComponentId, getIntrospection, getLogger, getName, getState, kill, pause, resume, start, startPaused, stop
getEventBus
@Inject public UT2004AnalyzerObsStats(UT2004AnalyzerObserverParameters params, IComponentBus bus, IAgentLogger agentLogger, UT2004WorldView worldView, IAct act)
public AgentStats getStats()
protected void gameRestartEnd()
UT2004AnalyzerObserver
GameRestart
message with GameRestarted.isFinished()
is received.
Place where you should reset data collection statistics / start them
in case of UT2004AnalyzerObserverParameters.isWaitForMatchRestart()
.
Current implementation is empty.
gameRestartEnd
in class UT2004AnalyzerObserver
protected void configureObserver()
UT2004AnalyzerObserver.startAgent()
after InitializeObserver
command
is sent to configure the observer instance.
Actually enables Self
, MyInventory
and async messages (i.e., BotKilled
).
configureObserver
in class UT2004AnalyzerObserver
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.