public class UT2004BotModule<PARAMS extends UT2004BotParameters> extends UT2004CommunicationModule<PARAMS>
UT2004CommunicationModule for the purpose of UT2004Bot instantiation.
Introduces worldViewDependenciesProvider.
Newly binded classes:
| Mapped class | Target | Description | |
|---|---|---|---|
IWorldMessageTranslator | -> | BotFSM | Protocol-validating translator of InfoMessages of GameBots2004. |
IWorldView | -> | IVisionWorldView | Binds world view as vision world view. |
IVisionWorldView | -> | ILockableVisionWorldView | Binds vision world view as lockable one. |
ILockableWorldView | -> | ILockableVisionWorldView | Binds lockable world view as vision world view. |
ILockableVisionWorldView | -> | UT2004SyncLockableWorldView | Binds world view with concrete implementation. |
UT2004SyncLockableWorldView dependencies |
-> | worldViewDependenciesProvider | |
IAgent | -> | IAgent3D | |
IAgent3D | -> | IUT2004Bot | |
IUT2004Bot | -> | UT2004Bot | Binds concrete implementation of the agent. |
| Mapped class | Description |
|---|---|
IUT2004BotController | Controller of the bot. |
... don't forget to call super.configureModules() in the subclasses ;-)
UT2004CommunicationModule,
GuiceRemoteAgentModule,
GuiceAgentModule| Modifier and Type | Field and Description |
|---|---|
protected AdaptableProvider<ComponentDependencies> |
worldViewDependenciesProvider
Dependency provider for the world view, so the world view know when to start.
|
connectionDependenciesProvider| Modifier | Constructor and Description |
|---|---|
protected |
UT2004BotModule() |
|
UT2004BotModule(Class<? extends IUT2004BotController> botControllerClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureModules() |
void |
prepareNewAgent(PARAMS agentParameters)
Binds runtime dependencies to the module/
Injector. |
getAddressProvideraddModule, configure, createAgentScope, createAgentTeamScope, getAgentIdProvider, getAgentParamsProvider, getAgentScope, getAgentTeamScopeaddError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingprotected AdaptableProvider<ComponentDependencies> worldViewDependenciesProvider
protected UT2004BotModule()
public UT2004BotModule(Class<? extends IUT2004BotController> botControllerClass)
public void prepareNewAgent(PARAMS agentParameters)
UT2004CommunicationModuleInjector.
Must be called before the new agent is instantiated with Injector.
prepareNewAgent in class UT2004CommunicationModule<PARAMS extends UT2004BotParameters>protected void configureModules()
configureModules in class UT2004CommunicationModule<PARAMS extends UT2004BotParameters>Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.