cz.cuni.amis.pogamut.udk.factory.guice.remoteagent
Class UDKObserverFactory<SERVER extends IUDKServer,PARAMS extends UDKAgentParameters>

Package class diagram package UDKObserverFactory
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.factory.guice.AbstractGuiceAgentFactory
      extended by cz.cuni.amis.pogamut.base.factory.guice.GuiceAgentFactory<SERVER,PARAMS>
          extended by cz.cuni.amis.pogamut.udk.factory.guice.remoteagent.UDKObserverFactory<SERVER,PARAMS>
Type Parameters:
BOT -
PARAMS -
All Implemented Interfaces:
IAgentFactory<SERVER,PARAMS>

public class UDKObserverFactory<SERVER extends IUDKServer,PARAMS extends UDKAgentParameters>
extends GuiceAgentFactory<SERVER,PARAMS>

Guice-based IUDKObserver factory. It needs UDKObserverModule to work correctly and the module is required to bound IAgent to the IUDKObserver, otherwise the method UDKObserverFactory#newAgent(IRemoteAgentParameters) will throw ClassCastException.

For more info about the factory, see GuiceAgentFactory.

Author:
Jimmy

Constructor Summary
UDKObserverFactory(UDKServerModule agentModule)
           
 
Method Summary
protected  UDKServerModule getAgentModule()
           
 
Methods inherited from class cz.cuni.amis.pogamut.base.factory.guice.GuiceAgentFactory
configureModule, newAgent
 
Methods inherited from class cz.cuni.amis.pogamut.base.factory.guice.AbstractGuiceAgentFactory
getInjector, setAgentModule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDKObserverFactory

public UDKObserverFactory(UDKServerModule agentModule)
Method Detail

getAgentModule

protected UDKServerModule getAgentModule()
Overrides:
getAgentModule in class AbstractGuiceAgentFactory


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