aminePlatform.mas.amineJade
Class AmineJadeMas
java.lang.Object
aminePlatform.mas.AmineMAS
aminePlatform.mas.amineJade.AmineJadeMas
- All Implemented Interfaces:
- IAmineMAS
- public class AmineJadeMas
- extends AmineMAS
Title : AmineJadeMas class
Description : AmineJadeMas is the class that allows to create a new MAS.
Copyright : Copyright (c) Adil KABBAJ 2004-2009
Constructor Summary |
AmineJadeMas(java.lang.String name,
java.lang.String[] args)
The constructor of this class is the method to use to create a new MAS. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AmineJadeMas
public AmineJadeMas(java.lang.String name,
java.lang.String[] args)
- The constructor of this class is the method to use to create a new MAS. To do so, the
programmer has to provide the name of the MAS and an array of Strings. Each element of the
array represents parameters of one agent. That means that the size of the array corresponds
to the number of agents of your system. It is not to the programmer to create the agents,
the programmer only provides parameters of every agent. The call to this constructor (thanks
to Jade Platform) would create the associated processes for every agent. The programmer can
then have access to these agents (pointer to the corresponding process) using the getAgentById method
- Parameters:
name
- A Stringargs
- An array of Strings containing parameters of agents. Each String should respect the following structure:
agent's name:the path of agent's class(arguments separated by a space)
For example, the String "John:aminePlatform.agent.amineJade.AmineJadeAgent(John.pcg ontology.xml)"
represents an agent that has the name John, its class is AmineJadeAgent that exists in the path aminePlatform/agent/amineJade
and the arguments of John are the files John.pcg and ontology.xml
getAgentById
public static AmineAgent getAgentById(java.lang.String id)
getAgent
public static AmineAgent getAgent(Identifier id)
init
public void init(java.lang.String[] args)
- Specified by:
init
in interface IAmineMAS
- Specified by:
init
in class AmineMAS