Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

IDEA::AgentFactory Class Reference
[Agent handle classesAgent handle classes]

Factory class for several agent-modules. More...

#include <AgentFactory.hh>

Inheritance diagram for IDEA::AgentFactory:

IDEA::Factory< AgentFactory > IDEA::PlasmaAgentFactory List of all members.

Public Methods

virtual ~AgentFactory ()
 Destructor.

virtual AgentImplcreateAgentImpl () const=0
 Creates an AgentImpl instance.

const std::string & getKey () const
 Returns the key of the invoking Factory.


Static Public Methods

void useKey (const std::string &key)
 Sets the key to use to return the instance, see Factory::instance.

const AgentFactory * instance ()
 Returns the instance with key Factory::getUseKey. If no such key exists 0 is returned.


Protected Methods

 AgentFactory (const std::string &name)
 Constructor.


Detailed Description

Factory class for several agent-modules.

Author:
David Rijsman rijsman@email.arc.nasa.gov


Constructor & Destructor Documentation

IDEA::AgentFactory::~AgentFactory   [virtual]
 

Destructor.

IDEA::AgentFactory::AgentFactory const std::string &    name [protected]
 

Constructor.


Member Function Documentation

virtual AgentImpl* IDEA::AgentFactory::createAgentImpl   [pure virtual]
 

Creates an AgentImpl instance.

Implemented in IDEA::PlasmaAgentFactory.

const std::string& IDEA::Factory< AgentFactory >::getKey   const [inline, inherited]
 

Returns the key of the invoking Factory.

const AgentFactory* IDEA::Factory< AgentFactory >::instance   [inline, static, inherited]
 

Returns the instance with key Factory::getUseKey. If no such key exists 0 is returned.

void IDEA::Factory< AgentFactory >::useKey const std::string &    key [inline, static, inherited]
 

Sets the key to use to return the instance, see Factory::instance.


Contact information
© IDEA
Generated on Fri Feb 3 17:09:44 2006 for IDEA.