Skip to content

feat: EditConfig script#286

Merged
tkchouaki merged 3 commits into
developfrom
featEditConfig
Jan 8, 2025
Merged

feat: EditConfig script#286
tkchouaki merged 3 commits into
developfrom
featEditConfig

Conversation

@tkchouaki

Copy link
Copy Markdown
Collaborator

This PR proposes the org.eqasim.core.scenario.config.EditConfig script that allows allows to edit a MATSim configuration file exclusively through the command line.

While existing modules can be configured in most simulation running scripts using the config: prefix, existing modules cannot be removed and non-existing ones cannot be added. This is what this script allows to do.

The script can be used with the following command line arguments:

  • input-path: required
  • output-path: required
  • optional arguments in the form add-module:moduleName add the given module to the config. Module config groups matching the provided names are searched in the core modules and the optional modules specified by an EqasimConfigurator
  • optional arguments in the form remove-module:moduleName remove the given module from the config
  • eqasim-configurator the full name of a class extending the EqasimConfigurator class from which optional modules config groups are retrieved

After adding and removing modules, configuration elements can still be adapted using the config: prefix.

@tkchouaki tkchouaki merged commit c7a9346 into develop Jan 8, 2025
@tkchouaki tkchouaki deleted the featEditConfig branch January 8, 2025 04:42
And128 pushed a commit to And128/eqasim-java that referenced this pull request Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant