Exporting models and projects
GAMA provides two ways to share work. Choose the format according to what the recipient needs:
| Format | What it contains | How it is used |
|---|---|---|
.gamx playable model | Selected models and experiments, required model data and package metadata; required non-standard plugin jars can be included. | Open or play it with a compatible GAMA installation. It does not include GAMA itself. |
.gamp project archive | An editable GAMA project, with optional linked resources and required plugin jars. | Import the project into a GAMA workspace and continue editing it. |
Export a playable model​
Open File > Export as playable model... from a GAML editor, or select a model or project in the navigator and choose Export as playable model... from its context menu. The dialog lets you choose the title, description, optional image, experiments to include, and which experiment is selected at startup. You can also review the non-standard plugin dependencies that the package will include.
Choose a destination for the .gamx file. The recipient opens it in GAMA with File > Play model..., or selects the file in the navigator and chooses Play. A playable model runs in GAMA's player and is separate from the editable project in a workspace.
A .gamx package does not embed the GAMA application. Its manifest specifies a minimum GAMA version; the installed version must meet that requirement. Standard plugins are provided by GAMA, while compatible non-standard plugin jars can travel with the package.
Export an editable project​
In Eclipse, choose File > Export... > GAMA > GAMA project (.gamp). Select the project, then save the resulting .gamp archive. The export dialog can include linked files and folders as regular project resources. If the project depends on additional GAMA plugins, the dialog offers to include those plugins.
To use the archive, choose File > Import... > GAMA > Project... and select the .gamp file. The project is added to the workspace and can be edited like other GAMA projects.
Command-line use​
The headless launcher can create, validate and run .gamx and .gamp archives; a .gamp run selects a model from its project. See Headless mode and the installed gama-headless help for the options supported by your GAMA version.
For implementation details, see Export Plugin: Technical Documentation.