Hello everyone, I am a sophomore student.My major is computer science and technology, this project is a course bonus project design assigned by our teacher, this project can run, but there are still many shortcomings, if you see and are interested in it, you can take a look, thank you! my English is poor, so please forgive me~, O(∩_∩)O
And the entrance class where you can start the project is Main.java. So, if you clone the project to your local machine, you can start from Main.java.
The function of this project is shown by following gif picture:
Before you start the project, you should know the following notes so you can form a basic structure of the project.
- In the Main.java, you can adjust the number of cars you want to show:
- And the structure of the project and the running environment:
- In the Car.java you can adjust the cycle time of a car when created.
- In the LightControl.java, you can also control some light properties like the repaint time of the light.
- The last attention is after you start the project in Main.java, you should do the first thing is click the "start" button in top-left corner. it does not show the button because of the repaint of the main panel has covered the button, you should hover your mouse pointer on the top-left area of the pop-up panel.