Skip to content

TrafficSystemMock is a program that simulates traffic

Notifications You must be signed in to change notification settings

Norlandz/TrafficSystemMockJs

Repository files navigation

introduction

TrafficSystemMock is an program that simulates traffic, you can:

  • build a MapFile & Roadways
  • move a Vehicle along a path
  • use TrafficDetectors to detect & get movement info about the vehicles

demo

  • Demo Img

  • Demo Vid [//]: # ()

    TrafficSystemMock.Demo.20230714_225153.Intro.mp4

how to use

  1. start the server -- run Java (Javafx & Spring & Mysql)
  2. open the html file -- run Javascript (React)
  3. create the demo (Map & Vehicle)
  4. place vehicle in map
  5. click & move the vehilce in the map
  6. ...

technology stack

  • Java
  • JavaFx
  • Hibernate
  • Mysql
  • Spring
  • Javascript
  • Typescript
  • React
  • SpringMvc
  • Websocket (minor)
  • RxJava (minor)
  • H2 (minor)
  • TestFx

prior statement & misc

  • this is an experimental project (incompleted)
  • no documentations is written
  • no code comments
  • ... (incompleted design & functionalities)

compare to another project -- TrafficSystem vs TrafficSystemMock

  • TrafficSystem - focus mainly on

    • freehand movement (control like in RTS, there is no Path to restrict the movement)
    • find path algorithm (though many attempts, the algorithm ends up fall back to the original old way)
    • collision detection
  • TrafficSystemMock - focus mainly on

    • path connection design
    • persistence to database
    • movement animation mechanism (speed & batch) (though, not much better)
    • TrafficDetector
    • design webpage app in React; communication bt Javascript & Java;
  • (will fix the project naming problem)

related projects