Group Project for KCL
This traffic simulator is a group project aimed to build a traffic simulation software based on a Cellular Automaton Model
##Pre-requisites for running the project:
- You must have at least Java8u40 running on your machine
##Building and running the project:
- Open IntelliJ.
- File -> New -> Project from Version Control -> GitHub
- Paste this link into the Git Repository URL:
git clone https://github.com/violetavk/LondonSW_trafficsimulator.git
and hit Clone - Go into project settings "Project Structure" (File -> Project Structure)
- Look at the Project SDK in the Project tab in Project Settings. Make sure it is at least Java 1.8 update 40.
- Run the main method in
src/londonsw/SystemApp.java
. Done!
- Download a tar.gz file from our release page and open IntelliJ.
- File -> New -> Project from Existing Sources...
- Navigate to the root directory of this project
- Choose "Create project from existing sources" option and hit Next
- Keep "Project name" and "Project location" as is, hit Next
- If it asks to overwrite .idea files, it OK, do overwrite
- For source files, keep
/team_londonsw/src
ticked, untick/Demo/src
- For the libraries, untick "jung-2_0_1" and "jung2-2_0_1-sources" (they are for the Demo src), keep "lib" ticked. "lib" contains libraries such as rxjava, rxjavafx, etc.
- In the review screen, you will see "team_londonsw" in the modules, and "lib" in the Module dependencies. Hit Next.
- Select a project SDK. Make sure it is at least Java 1.8 update 40.
- No frameworks detected. Hit Finish.
- Go into project settings "Project Structure" (File -> Project Structure)
- Click the Modules tab on the left under Project Structure.
- Click the Sources tab on the right.
- Locate the
resources
directory in the root of the project structure. Click on it and mark as "Resources". - Locate the
test
directory insrc/londonsw/
. Click on it and mark it as "Tests". - Click OK.
- Run the main method in
src/londonsw/SystemApp.java
. Done!
- Download the latest release from our release page
- Double-click on the jar file or run the command
java -jar name-of-release-