Export plugin: technical documentation
The current export UI supports playable model packages (.gamx) and editable project archives (.gamp). The UI handlers are in gama.ui.export; packaging and launch support are in gama.export. The links below point to the implementation in the GAMA source repository.
Playable model package (.gamx)​
ExportModelsdiscovers selected GAML files, experiments, projects, data dependencies and required plugins.SimulationPackageExporterassembles the selected models, data and package metadata, and includes compatible non-standard plugin jars when requested.SimulationPackagewrites and validates the portable archive.SimulationPackageLauncherprepares a package for the installed GAMA runtime.SimulationPackageOpeningopens it in the player.SimulationPackageSessionsmanages extracted package sessions;SimulationArtifactshandles files produced by a run.
A playable model package contains model content and metadata, not a full GAMA distribution. The package manifest declares the GAMA version requirement and plugin dependencies.
Editable project archive (.gamp)​
ProjectArchiveExporterplans and writes a project archive, optionally resolving linked resources and including required plugins.ProjectArchivereads, validates and extracts the archive.ProjectPluginsprepares any bundled plugin dependencies for import.
The archive preserves the project for import into a workspace; it is not a playable application.
Application bundling implementation​
GamaZipBuilder and its helpers implement the application-bundling path. This path builds a configured GAMA distribution with an embedded workspace; it is separate from the .gamx and .gamp archive workflows described above.
The UI implementation is in gama.ui.export, including the dialogs and commands for each export format. The headless packaging commands are in gama.headless.