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

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

public class UT2004ObserverFactory<PARAMS extends UT2004AgentParameters>
extends java.lang.Object
implements IAgentFactory<UT2004Observer,PARAMS>

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

Can't be used to instantiate other classes!

If you need to instantiate own UT2004Observer descendant, use UT2004ObserverFactory and define own descendant of UT2004ObserverModule.


Constructor Summary
UT2004ObserverFactory()
           
 
Method Summary
 UT2004Observer 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

UT2004ObserverFactory

public UT2004ObserverFactory()
Method Detail

newAgent

public UT2004Observer 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<UT2004Observer,PARAMS extends UT2004AgentParameters>
Returns:
new agent instance configured with 'agentParameters'
Throws:
PogamutException