Introduction - If you have any usage issues, please Google them yourself
. design a traffic signal light system:
Variable: position color (red yellow green)display time (second)
Method: switching signal lamp
Requirement
Design the intersection signal to show the intention interface.
Create and start two threads (east-west, north-south) running at the same time
Control according to the traffic flow.
This job requires programming and debugging through. There is a detailed description of the class you have designed (the contents encapsulated in the class, the properties, the function and the meaning of the method, etc.).