{"id":37633241,"url":"https://github.com/parantapa/sim2apl-sumo","last_synced_at":"2026-01-16T11:00:23.256Z","repository":{"id":39951946,"uuid":"217897473","full_name":"parantapa/sim2apl-sumo","owner":"parantapa","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-20T21:13:47.000Z","size":2259,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-15T08:45:29.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parantapa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-27T18:24:36.000Z","updated_at":"2020-02-06T17:49:17.000Z","dependencies_parsed_at":"2022-09-15T14:51:28.661Z","dependency_job_id":null,"html_url":"https://github.com/parantapa/sim2apl-sumo","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/parantapa/sim2apl-sumo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parantapa%2Fsim2apl-sumo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parantapa%2Fsim2apl-sumo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parantapa%2Fsim2apl-sumo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parantapa%2Fsim2apl-sumo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parantapa","download_url":"https://codeload.github.com/parantapa/sim2apl-sumo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parantapa%2Fsim2apl-sumo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T11:00:17.090Z","updated_at":"2026-01-16T11:00:23.231Z","avatar_url":"https://github.com/parantapa.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"A demonstration of how to use 2APL reasoning agents to to control agents in the [SUMO](http://sumo.sourceforge.net/) simulation environment.\n\nIn this simple demo, agents try to maximize their speed, while keeping their CO2 emission under the average. \n\n# Requirements\n* Java 10+\n* Maven\n* [Sim2APL](https://bitbucket.org/goldenagents/sim2apl/src/master/)\n* [SUMO](http://sumo.sourceforge.net/)\n* [TraaS](https://sumo.dlr.de/docs/TraCI/TraaS.html)\n\n# Installation\nFirst download and compile [Sim2APL](https://bitbucket.org/goldenagents/sim2apl/src/master/). The directory does not matter, since the compiled JAR will automatically be placed in your maven repository directory (on Linux: `~/.m2/repository`)\n\n```bash\n$ git clone https://bitbucket.org/goldenagents/sim2apl.git\n$ cd sim2apl\n$ mvn install\n```\n\nNext, install SUMO following the [SUMO installation instructions](https://sumo.dlr.de/docs/Downloads.html). For Windows, installers exist. For most Linux distributions, a PPA can be added, after which SUMO can be installed and kept up to date through your default package manager.\n\nAfter the installation of SUMO, locate the TraaS jar file. According to Sumo, this jar is provided with most SUMO installations (e.g. `\u003cSUMO_HOME\u003e/bin/TraaS.jar`). If the file is not present, the SUMO source can be downloaded from Git: (https://github.com/eclipse/sumo)[https://github.com/eclipse/sumo]. It is then located in `\u003cSUMO_GIT_DIR\u003e/tools/contributed/traas/`.\n\nCompile TraaS using maven, by navigating to the TraaS directory and running maven:\n\n```bash\n$ mvn install\n```\n\nNow, both Sim2APL and TraaS should be added to your local Maven repository, and you are ready to use the software. Clone this repository, and either open it in your favourite Java IDE, or install using maven and run the jar with dependencies.\n\n```\n$ git clone https://bitbucket.org/goldenagents/sim2apl-sumo.git\n$ cd sim2apl-sumo\n$ mvn install\n$ java -jar target/sim2apl-SUMO-simulation-1.0-SNAPSHOT-jar-with-dependencies.jar -s sumo-gui -c src/main/resources/eichstaedt/eichstaedt.sumo.cfg --step-length 1 --number-of-cars 20\n```\n\n# Usage\n```\nusage: Sim2APL SUMO -s \u003cSUMO binar\u003e -c \u003cConfiguration File Location\u003e [-i \u003cnumber of iterations\u003e] [-n \u003cNetwork file location\u003e] [--number-of-cars \u003cnumber of cars\u003e ] [--random-seed \u003crandom seed\u003e ] [--statistics-file \u003cstatistics destination file\u003e ]\n\n -s,--sumo-binary \u003cSUMO binary\u003e                          The exact location of the SUMO binary to execute the SUMO environment\n -c,--configuration-file \u003cConfiguration file location\u003e   Loads the named config on startup\n    \n    --collision.action \u003cnone,warn,teleport,remove\u003e       How to deal with collisions: [none,warn,teleport,remove]\n\n -i,--number-of-iterations \u003cnumber of iterations\u003e        The number of iterations / ticks the simulation should perform. If not specified, simulation will run until interrupted manually\n \n -n,--net-file \u003cNetwork file location\u003e                   Load road network description from FILE\n -p --car-id-prefix                                      Prefix of the car agent ID strings (Agents on different compute nodes should have diffrent prefix)\n    \n    --number-of-cars \u003cnumber of cars\u003e                    The number of cars to place in the environment\n   \n    --random-seed \u003cSeed\u003e                                 The seed to use for Random, so reproducibility can be ensured\n \n\n   \n    --statistics-file \u003cStatistics destination file\u003e      If specified, Sim2APL will track various statistics about the agents, and write these statisticsto a .csv file when the simulation has finished successfully\n   \n    --step-length \u003cStep length in seconds\u003e               Defines the step duration in seconds\n    --use-matrix \u003cUse Matrix\u003e                            If true use Matrix\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparantapa%2Fsim2apl-sumo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparantapa%2Fsim2apl-sumo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparantapa%2Fsim2apl-sumo/lists"}