Last Modified: $Date: 2002/02/09 14:05:34 $ by $Author: ferret $

# Food Map Editor

## What we eat is what we are

> Foods represent what worms know. As explain on the worm's page, worms have a DNA that express there moves. A move is the result of what can be seen by a worm.

> If a worm does not know what is food 'A' then it won't see it and move in its direction.

> If a worm knows food ('A',15) and food ('B',30) it will try to go first on food 'B' (since it has more value) otherwise it will try food 'A'.
> In fact at the begining worms know food's type ('A' or 'B' for example) but they do not known that 'B' is better than 'A'. At the end of the experiment worms should still know 'A' and 'B' but they should also be aware of the fact that eating 'B' will give them mutch more energy than eating 'A'.

> The food map editor will let you edit/create/delete foods used during the simulation. You can create lots of foods (~50 types), but keep in mind that:

> - a huge number of food will slow a simulation
> - when you select a color try to make it express the amount of energy that the food will represent
> - select energetic value well, makes it count (do not create ('A',1) ('B',2), ('C',3) prefer ('A',10) ('B',50), ('C',100))

## Food Map Editor

> Click on the picture for more information

> ## All Food

> > This list represents all foods that are in your current Food Map.
> > Foods are resumed here, you can see their name inside the colored square, and their color witch is the same as the square, Their energetic value is just after their type definition.
> > A double click on a food will popup the food editor.
> > If you want to delete a food you can press the Suppr key, or simply press the Delete button.

> ## Ok

> > Pressing this button will validate the current Food Map, and will design it as the food map to use for the current simulation.
> > This Food Map will aslo be used for the creation of worms and for the edition of the Life Room.

> ## Cancel

> > Pressing this button will unvalidate what you have done. It will be just as if you did nothing.

> ## Help

> > Will popup this help page.

> ## Load ()

> > You will be able to load a saved Food Map. The old food map will be replaced by the loaded one.
> > If a problem occured during loading then an error message will popup and the old Food Map will stay unchanged.
> > Loadable Food Map are XML files, see the XML specification for more information.

> ## Save ()

> > You will be able to save the current Food Map.
> > If a problem occured during saving then an error message will popup.
> > If the current Food Map as no name, then a you will be asked a name before saving the file.
> > Food Map will be written as XML file, see the XML specification for more information.

> ## Save As ()

> > You will be able to save the current Food Map with a specific name.
> > If a problem occured during saving then an error message will popup.
> > Before saving the Food Map you will be asked a file name.
> > Food Map will be written as XML file, see the XML specification for more information.

> ## Create a new Food ()

> > You will be able to create/add a new customised food to your current food map.
> > A new Window will popup:

> > There are some restrictions:
> > - Food must have a name, and this name must be unique. For limiting the number of genes in worm DNA, food's name is limited to upper char letter ('A', 'B', ...). If you edit/create an XML file you can also use lower char letter ('a', 'b', ...). Name of food already taken will not be shown on this window.
> > - Food must have a color. Just like for names, by editing the XML file you can use more complex colors expressed in RGB form (Red,Green,Blue => 0,125,201). Complex color will also be represented in this window
> > - Finaly, food must have an energetic value. This value can be positive or negative, but it must be a valid number.
> > Press the Ok button if you want to add this food to your food map, or press the Cancel button if you do not want to add this food to your food map.

> ## Edit the selected Food ()

> > Select a Food in the list and double click on it or simply press the edit button will let you edit the selected food.
> > A new Window will popup:

> > Press the Ok button if you want to validate your changes, or press the Cancel button if you do not want to validate your changes.

> ## Delete the selected Food ()

> > Select a Food in the list and press the Suppr key or simply press the delete button will let you delete the selected food.