|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| Packages that use World | |
| examples | Some examples of agents and worlds. |
| Interface | Default graphic interface for sema. |
| modelling | Modelling of the main features of a world and agents' behaviours. |
| sema | Extensible Multi-Agent Simulator. |
| SEMAbeans | Beans used by the interface to display the world. |
| worlds | Some examples of agents and worlds. |
| Uses of World in examples |
| Subclasses of World in examples | |
class |
GradientWorld
We have to give the good constructor in order to have these world accepted by the interface. |
| Constructors in examples with parameters of type World | |
AgentTestAction(World world)
Creates a new instance of agentTestaction |
|
AgentTestGrowing(World world,
Area area,
float delay,
java.awt.Image image)
|
|
AgentTestSeeing(World world,
Area area,
float delay,
java.awt.Image image)
|
|
RandomAgent(World world,
Area area,
float delay,
java.awt.Image image)
|
|
testMovingAgent(World world,
float delay,
java.awt.Image image,
float speed)
Creates a new instance of testMovingAgent |
|
testMovingAgent2(World world,
float delay,
java.awt.Image image,
float speed)
Creates a new instance of testMovingAgent |
|
| Uses of World in Interface |
| Methods in Interface that return World | |
World |
Sema.getWorld()
Returns the current world. |
World |
SimFileRW.open(java.io.File f)
Open a SIM file. |
World |
SimFileRW.edit(java.io.File f)
Edit a SIM file. |
World |
SimFileRW.open(java.io.File f,
int boxFactor)
Open a simulation file, with the specified box factor. |
| Methods in Interface with parameters of type World | |
void |
Sema.setWorld(World m)
Sets the world to simulate. |
void |
SimFileRW.save(java.io.File f,
World world)
Save the current world in the specified file. |
protected Box |
SimFileRW.changeBox(World world,
int x,
int y,
java.lang.String boxCode)
Changes the (x,y) box of the world, instanciating the new box from a string given in argument, and that follows the BoxFormat specifications. |
protected Element |
SimFileRW.addElement(java.lang.String line,
World world)
Add an element to the world, element corresponding to the string, following the ElementFormat specifications. |
| Uses of World in modelling |
| Constructors in modelling with parameters of type World | |
CommunicatingAgent(World world,
Area area,
float delay,
java.awt.Image image)
|
|
EatableAgent(World world,
Area area,
float delay,
java.awt.Image image)
Creates a new instance of eatable agent with the same arguments than an agent. |
|
EatingAgent(World world,
Area area,
float delay,
java.awt.Image image)
Creates a new instance of eatable agent with fixed reserves and consomptions of food. |
|
GrowingAgent(World world,
Area area,
float delay,
java.awt.Image image,
float reachableSize,
float timeToGrow)
Creates a new growing agent, with a given time to incrase his size by a factor of 1.1, and the reachable size, with the convention that the initial size of the agent is 1. |
|
MovingAgent(World world,
Area area,
float delay,
java.awt.Image image,
float speed)
Receives a speed and the paramaters of a normal agent. |
|
NewAgent(World world)
Le constructeur de l'agent prend nécessairement le monde d'acceuil en argument. |
|
Pheromone(World world,
Area area,
java.awt.Image image,
java.lang.String contents,
double during,
Selector selector)
Creates a new pheromone that may be percieved by the element satisfying the selector. |
|
Pheromone(World world,
Area area,
java.awt.Image image,
java.lang.String contents,
double during,
java.lang.String kind)
Creates a new pheromone percieved by the elements of the given kind. |
|
PheromoneUserAgent(World world,
Area area,
float delay,
java.awt.Image image,
java.awt.Image pheromoneImage)
Creates a new user of pheromona. |
|
ReceptiveAgent(World world,
Area area,
float delay,
java.awt.Image image)
Creates a new agent able to catch signals, with the same parameters than agent. |
|
SeeingAgent(World world,
Area area,
float delay,
java.awt.Image image,
float visionRadius)
Creates a new instance of seeing agent. |
|
| Uses of World in sema |
| Fields in sema declared as World | |
World |
Element.world
World in which is this element. |
| Constructors in sema with parameters of type World | |
Agent(World world,
Area area,
float delay,
java.awt.Image image)
Creates a new agent in the specified world, and registers it to this world. |
|
Element(World world,
Area area,
java.awt.Image image)
Constructs an element of the specified world and register itself to this world. |
|
| Uses of World in SEMAbeans |
| Methods in SEMAbeans with parameters of type World | |
void |
ZGCarteSEMA.init(World world)
Inits the bean with a world. |
| Uses of World in worlds |
| Constructors in worlds with parameters of type World | |
RandomAgentOneByBox(World world,
Area area,
float delay,
java.awt.Image image)
|
|
|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||