cz.cuni.amis.pogamut.ut2004.analyzer
Interface IUT2004Analyzer

Package class diagram package IUT2004Analyzer
All Superinterfaces:
IAgent, IComponent, IComponentAware, IControllable, IGhostAgent, IObservingAgent, IUnrealServer<IUT2004Bot>, IUT2004Server, IWorldAgentsObserver<IUT2004Bot>, IWorldServer<IUT2004Bot>
All Known Implementing Classes:
UT2004Analyzer

public interface IUT2004Analyzer
extends IUT2004Server

Interface of the analyzer that should hook an IUT2004AnalyzerObserver agent onto every bot inside UT2004 game sniffing info about the bot.

Author:
Jimmy

Method Summary
 void addListener(IAnalyzerObserverListener listener)
          Hooks a listener that watches for creation/deletion of observers.
 Map<UnrealId,IUT2004AnalyzerObserver> getObservers()
          Returns all observers currently owned by the analyzer.
 boolean isListening(IAnalyzerObserverListener listener)
          Tests a listener whether it watches for creation/deletion of observers.
 void removeListener(IAnalyzerObserverListener listener)
          Removes a listener that watches for creation/deletion of observers.
 
Methods inherited from interface cz.cuni.amis.pogamut.ut2004.server.IUT2004Server
connectNativeBot, getAvailableMaps, getGameSpeedFlag, getMap, getMapName, getMutators, getNativeAgents, getPlayers, setAddress, setGameMap
 
Methods inherited from interface cz.cuni.amis.pogamut.unreal.server.IUnrealServer
connectNativeBot
 
Methods inherited from interface cz.cuni.amis.pogamut.base.server.IWorldServer
getWorldAddress
 
Methods inherited from interface cz.cuni.amis.pogamut.base.server.IWorldAgentsObserver
getAgents
 
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
 

Method Detail

getObservers

Map<UnrealId,IUT2004AnalyzerObserver> getObservers()
Returns all observers currently owned by the analyzer.

The id can be obtained for instance from Player.getId() or Self.getId() or new one can be obtained from String via UnrealId.get(String).

NOTE: returns unmodifiable map that is a copy of the inner map inside the analyzer.

Returns:

addListener

void addListener(IAnalyzerObserverListener listener)
Hooks a listener that watches for creation/deletion of observers. (WeakReference is used to store the listener reference!)

Parameters:
listener -

removeListener

void removeListener(IAnalyzerObserverListener listener)
Removes a listener that watches for creation/deletion of observers.

Parameters:
listener -

isListening

boolean isListening(IAnalyzerObserverListener listener)
Tests a listener whether it watches for creation/deletion of observers.

Parameters:
listener -
Returns:


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.