fr.dyade.aaa.agent.AgentFactory Class Reference

Inherits fr.dyade.aaa.agent.Agent.

Inheritance diagram for fr.dyade.aaa.agent.AgentFactory:

Inheritance graph
[legend]
Collaboration diagram for fr.dyade.aaa.agent.AgentFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void react (AgentId from, Notification not) throws Exception

Protected Member Functions

String getLogTopic ()
void agentInitialize (boolean firstTime) throws Exception

Package Functions

 AgentFactory (AgentId factoryId)

Detailed Description

Agent used to allow remote agent creation. Every agent server hosts a factory agent, they all use a predefined stamp identifier AgentId.factoryId. The factory must be able to create all types of objects, actually it is supposed that the corresponding classes can be reached.

The agent creation process involves the following steps

The AgentDeleteRequest class of notification follows a similar process to remotely delete agents.

Definition at line 48 of file AgentFactory.java.


Constructor & Destructor Documentation

fr.dyade.aaa.agent.AgentFactory.AgentFactory ( AgentId  factoryId  )  [package]

Allocates a new AgentFactory agent. An AgentFactory agent must be created on every agent server the first time it runs.

Definition at line 58 of file AgentFactory.java.


Member Function Documentation

String fr.dyade.aaa.agent.AgentFactory.getLogTopic (  )  [protected]

Returns log topic for factory agent.

Reimplemented from fr.dyade.aaa.agent.Agent.

Definition at line 67 of file AgentFactory.java.

void fr.dyade.aaa.agent.AgentFactory.agentInitialize ( boolean  firstTime  )  throws Exception [protected]

Gives this agent an opportunity to initialize after having been deployed, and each time it is loaded into memory. Loads the list of agents with a fixed field set to true.

Parameters:
firstTime true when first called by the factory
Exceptions:
Exception unspecialized exception

Reimplemented from fr.dyade.aaa.agent.Agent.

Definition at line 81 of file AgentFactory.java.

void fr.dyade.aaa.agent.AgentFactory.react ( AgentId  from,
Notification  not 
) throws Exception

Reacts to notifications ... .

Parameters:
from agent sending notification
not notification to react to
Exceptions:
Exception unspecialized exception

Reimplemented from fr.dyade.aaa.agent.Agent.

Definition at line 93 of file AgentFactory.java.

References fr.dyade.aaa.agent.AgentCreateRequest.agentState, fr.dyade.aaa.agent.AgentCreateRequest.deploy, fr.dyade.aaa.agent.Notification.getContext(), fr.dyade.aaa.agent.Agent.getId(), fr.dyade.aaa.agent.Agent.id, fr.dyade.aaa.agent.Agent.logmon, fr.dyade.aaa.agent.Agent.name, fr.dyade.aaa.agent.AgentCreateRequest.reply, fr.dyade.aaa.agent.Agent.sendTo(), and fr.dyade.aaa.agent.Notification.setContext().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:16:15 2008 for joram by  doxygen 1.5.0