cz.cuni.amis.pogamut.ut2004.factory.guice.remoteagent
Class UT2004BotFactory<BOT extends IUT2004Bot,PARAMS extends UT2004AgentParameters>
java.lang.Object
cz.cuni.amis.pogamut.base.factory.guice.AbstractGuiceAgentFactory
cz.cuni.amis.pogamut.base.factory.guice.GuiceAgentFactory<BOT,PARAMS>
cz.cuni.amis.pogamut.ut2004.factory.guice.remoteagent.UT2004BotFactory<BOT,PARAMS>
- Type Parameters:
BOT
- PARAMS
-
- All Implemented Interfaces:
- IAgentFactory<BOT,PARAMS>
public class UT2004BotFactory<BOT extends IUT2004Bot,PARAMS extends UT2004AgentParameters>
- extends GuiceAgentFactory<BOT,PARAMS>
Guice-base IUT2004Bot
factory. It needs UT2004BotModule
to work correctly and the module is required
to bound IAgent
to the IUT2004Bot
, otherwise the method UT2004BotFactory#newAgent(IRemoteAgentParameters)
will throw ClassCastException
.
For more info about the factory, see GuiceAgentFactory
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UT2004BotFactory
public UT2004BotFactory(UT2004BotModule<PARAMS> agentModule)
getAgentModule
protected UT2004BotModule<PARAMS> getAgentModule()
- Description copied from class:
AbstractGuiceAgentFactory
- Returns the module that the factory is working with. Can be utilized to slip run-time dependencies
into the module.
- Overrides:
getAgentModule
in class AbstractGuiceAgentFactory
- Returns:
- factory module