cz.cuni.amis.pogamut.ut2004.factory.direct.remoteagent
Class UT2004ServerFactory<PARAMS extends UT2004AgentParameters>

java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.factory.direct.remoteagent.UT2004ServerFactory<PARAMS>
Type Parameters:
PARAMS -
All Implemented Interfaces:
IAgentFactory<UT2004Server,PARAMS>

public class UT2004ServerFactory<PARAMS extends UT2004AgentParameters>
extends java.lang.Object
implements IAgentFactory<UT2004Server,PARAMS>

Factory that uses direct instantiation (plain old Java style) of the UT2004Server class.

Can't be used to instantiate other classes!

If you need to instantiate own UT2004Server descendant, use UT2004ServerFactory and define own descendant of UT2004ServerModule.


Constructor Summary
UT2004ServerFactory()
           
 
Method Summary
 UT2004Server newAgent(PARAMS agentParameters)
          Factory method - it creates an agent with 'agentParameters'
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UT2004ServerFactory

public UT2004ServerFactory()
Method Detail

newAgent

public UT2004Server newAgent(PARAMS agentParameters)
                      throws PogamutException
Description copied from interface: IAgentFactory
Factory method - it creates an agent with 'agentParameters'

DOES NOT START THE AGENT!

Specified by:
newAgent in interface IAgentFactory<UT2004Server,PARAMS extends UT2004AgentParameters>
Returns:
new agent instance configured with 'agentParameters'
Throws:
PogamutException