|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcom.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>
cz.cuni.amis.pogamut.udk.factory.guice.remoteagent.UDKServerModule<PARAMS>
public class UDKServerModule<PARAMS extends UDKAgentParameters>
Module extending UDKCommunicationModule for the purpose of UDKServer instantiation.
Introduces worldViewDependenciesProvider.
Newly binded classes:
| Mapped class | Target | Description | |
|---|---|---|---|
IWorldMessageTranslator | -> | ServerFSM | 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 | -> | UDKLockableWorldView | Binds world view with concrete implementation. |
UDKLockableWorldView dependencies |
-> | worldViewDependenciesProvider | |
IAgent | -> | IWorldServer | |
IWorldServer | -> | IUDKServer | |
IUDKServer | -> | UDKServer | Binds concrete implementation of the agent. |
| Mapped class | Description |
|---|---|
| nothing |
... don't forget to call super.configureModules() in the subclasses ;-)
UDKCommunicationModule,
GuiceRemoteAgentModule,
GuiceAgentModule| Field Summary | |
|---|---|
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. |
| Fields inherited from class cz.cuni.amis.pogamut.udk.factory.guice.remoteagent.UDKCommunicationModule |
|---|
connectionDependenciesProvider |
| Constructor Summary | |
|---|---|
UDKServerModule()
|
|
| 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 cz.cuni.amis.pogamut.base.utils.guice.AdaptableProvider<cz.cuni.amis.pogamut.base.component.controller.ComponentDependencies> worldViewDependenciesProvider
| Constructor Detail |
|---|
public UDKServerModule()
| Method Detail |
|---|
public void prepareNewAgent(PARAMS agentParameters)
UDKCommunicationModuleInjector.
Must be called before the new agent is instantiated with Injector.
prepareNewAgent in class UDKCommunicationModule<PARAMS extends UDKAgentParameters>protected void configureModules()
configureModules in class UDKCommunicationModule<PARAMS extends UDKAgentParameters>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||