|
||||||||||
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.impl.AbstractAgent cz.cuni.amis.pogamut.base.agent.impl.AbstractObservingAgent<WORLD_VIEW> cz.cuni.amis.pogamut.base.agent.impl.AbstractGhostAgent<WORLD_VIEW,ACT> cz.cuni.amis.pogamut.ut2004.observer.impl.AbstractUT2004Observer<UT2004WorldView,IAct> cz.cuni.amis.pogamut.ut2004.observer.impl.UT2004Observer cz.cuni.amis.pogamut.ut2004.analyzer.UT2004AnalyzerObserver
@Deprecated public class UT2004AnalyzerObserver
Base class implementing IUT2004AnalyzerObserver
, does not add that much functionality, except
starting the observation for desired agent and abide watching out for GameRestarted
so you
have easy work to restart the observation data collection (and to abide UT2004AnalyzerObserverParameters.isWaitForMatchRestart()
).
See gameRestartStarted()
and gameRestartEnd()
.
Field Summary |
---|
Fields inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent |
---|
events, INTROSPECTION_ROOT_NAME, log, LOG_CATEGORY_NAME |
Constructor Summary | |
---|---|
UT2004AnalyzerObserver(UT2004AnalyzerObserverParameters params,
IComponentBus bus,
IAgentLogger agentLogger,
UT2004WorldView worldView,
IAct act)
Deprecated. |
Method Summary | |
---|---|
protected void |
configureObserver()
Deprecated. Called from the startAgent() after InitializeObserver command
is sent to configure the observer instance. |
protected void |
gameRestartEnd()
Deprecated. Called whenever GameRestart message with GameRestarted.isFinished() is received. |
protected void |
gameRestartStarted()
Deprecated. Called whenever GameRestart message with GameRestarted.isStarted() is received. |
UnrealId |
getObservedBotId()
Deprecated. Returns id of the bot that the observer is sniffing info from. |
String |
getOutputFilePath()
Deprecated. Returns path to file that should be used for outputting the data |
UT2004AnalyzerObserverParameters |
getParams()
Deprecated. Returns parameters that were passed into the agent during the construction. |
protected void |
startAgent()
Deprecated. Initialize the observer to listen on the UT2004AnalyzerObserverParameters.getObservedAgentId() that is obtained from
the getParams() . |
protected void |
startPausedAgent()
Deprecated. |
Methods inherited from class cz.cuni.amis.pogamut.ut2004.observer.impl.AbstractUT2004Observer |
---|
createPasswordReply, getPasswordReply, getWorldView, killAgent, readyCommandRequested, reset, resetAgent, setPassword, stopAgent |
Methods inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractGhostAgent |
---|
getAct |
Methods inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IGhostAgent |
---|
getAct |
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IObservingAgent |
---|
getWorldView |
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IAgent |
---|
getComponentId, getIntrospection, getLogger, getName, getState, kill, pause, resume, start, startPaused, stop |
Methods inherited from interface cz.cuni.amis.pogamut.base.component.IComponentAware |
---|
getEventBus |
Constructor Detail |
---|
@Inject public UT2004AnalyzerObserver(UT2004AnalyzerObserverParameters params, IComponentBus bus, IAgentLogger agentLogger, UT2004WorldView worldView, IAct act)
Method Detail |
---|
public UT2004AnalyzerObserverParameters getParams()
UT2004Observer
This is a great place to parametrize your agent. Note that you may pass arbitrary subclass of UT2004AgentParameters
to the constructor/factory/runner and pick them up here.
getParams
in class UT2004Observer
public UnrealId getObservedBotId()
IUT2004AnalyzerObserver
getObservedBotId
in interface IUT2004AnalyzerObserver
public String getOutputFilePath()
protected void gameRestartStarted()
GameRestart
message with GameRestarted.isStarted()
is received.
You probably won't need to override this method, better override gameRestartEnd()
, that
is the place where you should reset data collection statistics / start them in case of UT2004AnalyzerObserverParameters.isWaitForMatchRestart()
.
Current implementation is empty.
protected void gameRestartEnd()
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.
protected void startAgent()
UT2004AnalyzerObserverParameters.getObservedAgentId()
that is obtained from
the getParams()
.
startAgent
in class AbstractUT2004Observer<UT2004WorldView,IAct>
protected void startPausedAgent()
startPausedAgent
in class AbstractUT2004Observer<UT2004WorldView,IAct>
protected void configureObserver()
startAgent()
after InitializeObserver
command
is sent to configure the observer instance.
Actually enables Self
, MyInventory
and async messages (i.e., BotKilled
).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |