|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.inject.AbstractModule cz.cuni.amis.pogamut.base.factory.guice.GuiceAgentModule<PARAMS> cz.cuni.amis.pogamut.base.factory.guice.GuiceCommunicationModule<PARAMS> cz.cuni.amis.pogamut.base.factory.guice.GuiceRemoteAgentModule<PARAMS> cz.cuni.amis.pogamut.udk.factory.guice.remoteagent.UDKCommunicationModule<PARAMS>
public class UDKCommunicationModule<PARAMS extends UDKAgentParameters>
Module extending RemoteGuiceAgentModule
for the purpose of UDK communication specification.
Newly binded classes:
Mapped class | Target | Description | |
---|---|---|---|
IWorldConnection | -> | SocketConnection | Agent bus synchronizing starting/stopping/etc. events. |
SocketConnection dependencies |
-> | connectionDependenciesProvider | |
SocketConnection address | -> | UT2004BotModule#getAddressProvider() | |
{@link IWorldMessageParser} | -> | {@link UDKParser} | Wrapper for the yylex parser of the messages coming from GameBotsUDK. |
{@link IYylex} | -> | {@link IUDKYylex} | Specifying yylex further. |
{@link IUDKYylex} | -> | {@link Yylex} | Specifying yylex further. |
{@link IYylexObserver} | -> | {@link IYylexObserver.LogObserver} | Yylex observer reporting errors. |
{@link IUDKYylex} | -> | {@link Yylex} | Concrete Yylex implementations that parses the messages coming from GameBotsUDK. |
{@link ItemTranslator} | -> | {@link ItemTranslator} | Object handling translation of INV messages. |
{@link UDKAgentParameters} | -> | {@link UDKCommunicationModule#getAgentParamsProvider()} | Agent parameters passed by the factory, contains additional runtime dependencies. |
Mapped class | Description |
---|---|
{@link IWorldView} | Binds world view as vision world view. |
{@link IWorldMessageTranslator} | Protocol-validating translator of {@link InfoMessage}s of GameBotsUDK. |
{@link IAgent} |
... don't forget to call super.configureModules() in the subclasses ;-)
GuiceRemoteAgentModule
,
GuiceAgentModule
Field Summary | |
---|---|
protected AdaptableProvider<ComponentDependencies> |
connectionDependenciesProvider
|
Constructor Summary | |
---|---|
UDKCommunicationModule()
|
Method Summary | |
---|---|
protected void |
configureModules()
|
void |
prepareNewAgent(PARAMS agentParameters)
Binds runtime dependencies to the module/ Injector . |
Methods inherited from class cz.cuni.amis.pogamut.base.factory.guice.GuiceRemoteAgentModule |
---|
getAddressProvider |
Methods inherited from class cz.cuni.amis.pogamut.base.factory.guice.GuiceAgentModule |
---|
addModule, configure, createAgentScope, createAgentTeamScope, getAgentIdProvider, getAgentParamsProvider, getAgentScope, getAgentTeamScope |
Methods inherited from class com.google.inject.AbstractModule |
---|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AdaptableProvider<ComponentDependencies> connectionDependenciesProvider
Constructor Detail |
---|
public UDKCommunicationModule()
Method Detail |
---|
public void prepareNewAgent(PARAMS agentParameters)
Injector
.
Must be called before the new agent is instantiated with Injector
.
prepareNewAgent
in class GuiceRemoteAgentModule<PARAMS extends UDKAgentParameters>
agentId
- address
- protected void configureModules()
configureModules
in class GuiceRemoteAgentModule<PARAMS extends UDKAgentParameters>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |