cz.cuni.amis.pogamut.ut2004.analyzer
Interface 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
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IAgent |
getComponentId, getIntrospection, getLogger, getName, getState, kill, pause, resume, start, startPaused, stop |
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.