public class USAR2004BotModule<PARAMS extends USAR2004AgentParameters> extends USAR2004CommunicationModule<PARAMS>
UT2004CommunicationModule for the purpose of UT2004Bot instantiation.
Introduces UT2004BotModule#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 |
-> | UT2004BotModule#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 cz.cuni.amis.pogamut.base.utils.guice.AdaptableProvider<cz.cuni.amis.pogamut.base.component.controller.ComponentDependencies> |
worldViewDependenciesProvider
Dependency provider for the world view, so the world view know when to start.
|
connectionDependenciesProvider| Modifier | Constructor and Description |
|---|---|
protected |
USAR2004BotModule() |
|
USAR2004BotModule(Class<? extends IUSAR2004BotController> 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 cz.cuni.amis.pogamut.base.utils.guice.AdaptableProvider<cz.cuni.amis.pogamut.base.component.controller.ComponentDependencies> worldViewDependenciesProvider
protected USAR2004BotModule()
public USAR2004BotModule(Class<? extends IUSAR2004BotController> botControllerClass)
public void prepareNewAgent(PARAMS agentParameters)
USAR2004CommunicationModuleInjector.
Must be called before the new agent is instantiated with Injector.
prepareNewAgent in class USAR2004CommunicationModule<PARAMS extends USAR2004AgentParameters>protected void configureModules()
configureModules in class USAR2004CommunicationModule<PARAMS extends USAR2004AgentParameters>Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.