cz.cuni.amis.pogamut.defcon.factory
Class DefConAgentModule

Package class diagram package DefConAgentModule
java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by cz.cuni.amis.pogamut.base.factory.guice.GuiceAgentModule<AgentParameters>
          extended by cz.cuni.amis.pogamut.defcon.factory.DefConAgentModule
All Implemented Interfaces:
com.google.inject.Module

public class DefConAgentModule
extends GuiceAgentModule<AgentParameters>

Module for guice instantion.

Author:
Radek 'Black_Hand' Pibil

Constructor Summary
DefConAgentModule(Class<? extends DefConAgent> defConAgentClass, Class<? extends IDefConAgentLogicController> defConAgentLogicControllerClass)
           
 
Method Summary
protected  void configureModules()
           
 Class<? extends DefConAgent> getDefConAgentClass()
           
 void newBindings(IAgentId agentId)
          Binds runtime dependencies to the module/Injector.
 
Methods inherited from class cz.cuni.amis.pogamut.base.factory.guice.GuiceAgentModule
addModule, configure, createAgentScope, createAgentTeamScope, getAgentIdProvider, getAgentParamsProvider, getAgentScope, getAgentTeamScope, prepareNewAgent
 
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

DefConAgentModule

public DefConAgentModule(Class<? extends DefConAgent> defConAgentClass,
                         Class<? extends IDefConAgentLogicController> defConAgentLogicControllerClass)
Method Detail

getDefConAgentClass

public Class<? extends DefConAgent> getDefConAgentClass()

newBindings

public void newBindings(IAgentId agentId)
Binds runtime dependencies to the module/Injector.

Must be called before the new agent is instantiated with Injector.

Parameters:
agentId -

configureModules

protected void configureModules()
Overrides:
configureModules in class GuiceAgentModule<AgentParameters>


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.