|
|||||||||
| 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.multi.factory.guice.GuiceTeamRemoteAgentModule<PARAMS>
public abstract class GuiceTeamRemoteAgentModule<PARAMS extends ITeamRemoteAgentParameters>

Module extending GuiceRemoteAgentModule for the purpose of remote agents (those communicating with the world using
IWorldConnection) that is using ISharedWorldView to synchronize information within the agent's team.
See GuiceRemoteAgentModule for more information.
This module introduces getSharedWorldViewProvider() that is correctly filled during prepareNewAgent(ITeamRemoteAgentParameters)
and so it can be used during agent construction.
GuiceAgentModule| Constructor Summary | |
|---|---|
GuiceTeamRemoteAgentModule()
|
|
| Method Summary | |
|---|---|
AdaptableProvider<ISharedWorldView> |
getSharedWorldViewProvider()
|
void |
prepareNewAgent(PARAMS agentParameters)
Must be called before another agent instance can be created. |
| Methods inherited from class cz.cuni.amis.pogamut.base.factory.guice.GuiceRemoteAgentModule |
|---|
configureModules, getAddressProvider |
| Methods inherited from class cz.cuni.amis.pogamut.base.factory.guice.GuiceAgentModule |
|---|
addModule, configure, createAgentScope, getAgentIdProvider, getAgentParamsProvider, getAgentScope |
| 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 |
| Constructor Detail |
|---|
public GuiceTeamRemoteAgentModule()
| Method Detail |
|---|
public AdaptableProvider<ISharedWorldView> getSharedWorldViewProvider()
public void prepareNewAgent(PARAMS agentParameters)
GuiceAgentModuleGuiceAgentModule.agentScope
and binds IAgentParameters.getAgentId() to the GuiceAgentModule.agentIdProvider.
Whenever you create your own IAgentParameters you may need to override this method to utilize your new
run-time dependencies. In such case, always call super.prepareNewAgent(agentParameters) as a first command.
prepareNewAgent in class GuiceRemoteAgentModule<PARAMS extends ITeamRemoteAgentParameters>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||