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


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) | |
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
Agent object in memory ; AgentCreateRequest notification with the resulting string, sending it to the target Factory agent ;
Definition at line 48 of file AgentFactory.java.
| 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.
| 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.
| firstTime | true when first called by the factory |
| 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 ... .
| from | agent sending notification | |
| not | notification to react to |
| 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:

1.5.0