Skip to main content
Version: 🚧 Alpha 🚧

Navigating in the Workspace

The Navigator lists projects and models in the current workspace, along with projects linked from the GAMA installation. You can open a model or manage its project from this view.

The Navigator in GAMA's Modeling perspective, outlined beside an open model editor.

Status of projects and models​

Projects and models are drawn with their category icon over which a small coloured circle reports the highest severity of the problems recorded on the resource: a green circle means it was validated without error nor warning (informational markers do not change the colour), an orange one means it carries at least one warning, and a red one means it contains compilation errors. A closed project carries a grey circle, and a model whose live validation has been switched off carries a "paused" one. Categories summarise the state of their content with the same circles, which is why the Tests category shows an orange circle and the mention "not yet run" until its tests have been run at least once (see ValidationOfModels).

The Navigator shows a valid project with a green status and a project with compilation errors in red; the open model shows the error markers.

The Different Categories of Models​

The Navigator groups projects into Data, Demos, Recipes, Tests, Tutorials, User, and, when applicable, Library. These categories organize the view; they do not indicate where a project is stored. A project can contain one or more model files and supporting resources, such as data files.

Projects supplied with GAMA or its extensions appear in the corresponding category. User projects appear under User. Projects supplied by the installation are linked into the workspace and remain in the installation files.

The content of each category is:

  • Data: examples of data management, including importing and exporting data, databases, and data analysis.
  • Demos: complete simulations, from classical replications found in the literature (Sugarscape, Schelling, ants, boids, game of life) to more elaborate models, which can be used as a starting point for your own work.
  • Library: installation projects that do not belong to another built-in category. This category appears only when it contains projects.
  • Recipes: "how to" models. Each one illustrates a single feature of GAML or of the platform in isolation: the various data structures (lists, maps, matrices), statements, loops, interactions and conditional structures, agent scheduling, charts, displays, user interaction. This is where to look when you need to write a specific construct.
  • Tutorials: the models that accompany the step-by-step tutorials of this wiki.
  • Tests: test projects shipped with GAMA and test projects in the workspace's Tests directory. See Validation of models to learn how to run tests.
  • User: projects created or imported into the workspace. Depending on how a project was created or imported, its files can be stored in the workspace or linked from another location. If changes made outside GAMA do not appear, refresh the affected project or folder.

The Demos category, expanded, listing the projects it contains.

Model files often reside in a models subfolder. A project can also contain other folders for its resources; their organization depends on the project.

Classical architecture of a project.

It may happen, on some occasions, that the library of models is not synchronized with the version of GAMA that uses your workspace. This is the case if you use different versions of GAMA to work with the same workspace. In that case, it is required that the library be manually updated. This can be done using the Clean and update workspace... item of the contextual menu (on a category or on a project), which rebuilds the links to the models shipped by the current installation. GAMA also asks, on startup, before rebuilding a corrupted workspace or using a workspace created by another version; both questions can be turned off in the preferences (Support > Preferences, Interface pane, group Startup).

A project context menu includes Clean and update workspace..., which rebuilds the model-library links.

The Navigator context menu for a model, with Copy highlighted.

To look up a particular model in the library, users can type in the Search... field placed above the navigator. The tree is filtered as you type, keeping the projects and the models whose name (or tag) matches, and expands what it keeps. A cross in the field clears the filter. By default the search looks only at titles; uncheck Only titles in the More... menu of the view (..., at the right of the field) to search inside the source of the models as well.

Search for models containing BDI in their name.

Inspect Models​

Each model is presented as a node in the navigation workspace, including Experiment buttons and/or a Contents node and/or a Uses node and/or a Tags node and/or an Imports node.

Expanded Ant Foraging model entry showing its Uses, Tags and five experiment entries in the Navigator.

  • Imports: The node Imports lists all the model files that are imported in the current model.

Imports node lists all the imported models.

  • Uses node: The node Uses lists local files referenced by the model when those paths resolve. If a model has both valid and invalid local resource paths, only the resolved files appear; if none resolve, the Uses node is omitted. Remote URLs are not listed as workspace files.

When the model includes external files they are listed in the Uses node. The expanded Uses node lists the valid local file, while the model editor shows both the valid path and a missing local path.

  • Tags node: The node Tags lists all the tags that have been specified in the header of the model.

  • Contents: The node Contents describes the tree of all the elements in the model, as the Outline view does. It is not displayed by default: check Model elements in the More... menu of the view (..., at the right of the search field) to have it appear, along with the experiments read from the model itself rather than from its header.

  • Experiment nodes: one node named Experiment <name> | Double-click to run is present for each experiment of the model that can be run (experiments declared virtual: true are not listed; they only serve as parents). The label states how to launch it: double-click on the node (a single click only selects it) to start the experiment, which switches to the simulation perspective. The contextual menu of the node offers the same command (Run...), together with Set as startup... and Export as playable model.... To learn more about running experiments, jump into this section.

Moving Models Around​

Model files and resources can be moved between projects in the Navigator. To make a local copy of a library model, choose Copy in the model's context menu, select a project in User, then choose Paste from that project's context menu. The screenshot above shows the Copy step; Paste is disabled until a resource has been copied. You can edit the copy without changing the model shipped with GAMA. Drag and drop is also supported.

Closing and Deleting Projects​

You can close or delete a project from its context menu. The menu also includes New..., Import..., Export..., Reveal in OS, Properties, Rename..., Copy, Paste, Refresh, Clean and update workspace..., Configure and Versions.... Available commands depend on the selected resource. Closing a project keeps it in the workspace and listed in the Navigator, but its models are not built or available to open until you reopen the project.

The Navigator context menu shows both Delete and Close Project for the selected project.

A closed project remains listed in the Navigator.

Deleting a project must be invoked when the user wants this project to not appear in the workspace anymore (unless that is, it is imported again). The command opens a Delete Resources dialog asking "Remove project '<name>' from the workspace?", with a Project location: field, a Preview > button, and a box Delete project contents on disk (cannot be undone) which is left unchecked: without it the workspace simply forgets the project, with it the files are removed from the disk as well.

The Delete Resources dialog asks whether to remove the project and leaves the option to delete its files unchecked.