agentsoz / bdi-abm-integration

BDI ABM Integration
GNU Lesser General Public License v3.0
8 stars 13 forks source link

Consolidate EES command line options #2

Closed dhixsingh closed 6 years ago

dhixsingh commented 6 years ago

EES runtime options are currently specified in Main.java in a few ways:

Probably most of them can be consolidated into the main config file supplied via --config. For example, --seed can be replaced by <seed>...</seed> with a handy in-file description of what it does and how to use it.

/cc @kainagel

dhixsingh commented 6 years ago

Working well since 1fe37d2. Includes

  1. a new EES config v2 XML schema;
  2. all EES arguments fully specified through the new config file, see example ees.xml here.
  3. A cleaner program main in io.github.agentsoz.ees.Run (legacy main still available as before in io.github.agentsoz.ees.Main).

Have switched the SurfCoastShirePopulationSubgroupsSampleTest test to the new config: https://github.com/agentsoz/bdi-abm-integration/blob/1fe37d23e3ea9ee75d99dfb899d22ee319570532/examples/bushfire/src/test/java/io/github/agentsoz/ees/SurfCoastShirePopulationSubgroupsSampleTest.java#L29-L35

The new config is flexible and can be easily extended with new global/per-model options, without requiring changes to the XSD schema.

The old legacy config can now be phased out and all tests slowly moved to the new config.

/cc @osbornejr