文件名称:traffic
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 11kb
- 下载次数:
- 0次
- 提 供 者:
- j***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
交通灯模拟管理系统 模拟实现十字路口的交通灯管理系统逻辑,具体需求如下:
? 异步随机生成按照各个路线行驶的车辆。
例如:
由南向而来去往北向的车辆 ---- 直行车辆
由西向而来去往南向的车辆 ---- 右转车辆
由东向而来去往南向的车辆 ---- 左转车辆
。。。
? 信号灯忽略黄灯,只考虑红灯和绿灯。
? 应考虑左转车辆控制信号灯,右转车辆不受信号灯控制。
? 具体信号灯控制逻辑与现实生活中普通交通灯控制逻辑相同,不考虑特殊情况下的控制逻辑。
注:南北向车辆与东西向车辆交替放行,同方向等待车辆应先放行直行车辆而后放行左转车辆。
? 每辆车通过路口时间为1秒(提示:可通过线程Sleep的方式模拟)。
-Simulation to achieve the traffic light intersection management system logic, the specific requirements are as follows: ? Asynchronous randomly generated according to various routes of the vehicles. For example: to go from south to north from the vehicle---- straight to the traffic from south to west to come to the right of vehicles---- Vehicles coming from the east to the south to the vehicle---- left turn vehicles. . . ? ignoring yellow lights, consider only the red and green. ? should consider vehicle control lights turn left, turn right at traffic lights are not controlled. ? ? randomly generated vehicle traffic light switching interval and the time interval from the set, you can set.
? 异步随机生成按照各个路线行驶的车辆。
例如:
由南向而来去往北向的车辆 ---- 直行车辆
由西向而来去往南向的车辆 ---- 右转车辆
由东向而来去往南向的车辆 ---- 左转车辆
。。。
? 信号灯忽略黄灯,只考虑红灯和绿灯。
? 应考虑左转车辆控制信号灯,右转车辆不受信号灯控制。
? 具体信号灯控制逻辑与现实生活中普通交通灯控制逻辑相同,不考虑特殊情况下的控制逻辑。
注:南北向车辆与东西向车辆交替放行,同方向等待车辆应先放行直行车辆而后放行左转车辆。
? 每辆车通过路口时间为1秒(提示:可通过线程Sleep的方式模拟)。
-Simulation to achieve the traffic light intersection management system logic, the specific requirements are as follows: ? Asynchronous randomly generated according to various routes of the vehicles. For example: to go from south to north from the vehicle---- straight to the traffic from south to west to come to the right of vehicles---- Vehicles coming from the east to the south to the vehicle---- left turn vehicles. . . ? ignoring yellow lights, consider only the red and green. ? should consider vehicle control lights turn left, turn right at traffic lights are not controlled. ? ? randomly generated vehicle traffic light switching interval and the time interval from the set, you can set.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
traffic\.classpath
.......\.project
.......\bin\com\isoftstone\interview\traffic\Lamp.class
.......\...\...\..........\.........\.......\LampController$1.class
.......\...\...\..........\.........\.......\LampController.class
.......\...\...\..........\.........\.......\MainClass.class
.......\...\...\..........\.........\.......\Road$1.class
.......\...\...\..........\.........\.......\Road$2.class
.......\...\...\..........\.........\.......\Road.class
.......\src\com\isoftstone\interview\traffic\Lamp.java
.......\...\...\..........\.........\.......\LampController.java
.......\...\...\..........\.........\.......\MainClass.java
.......\...\...\..........\.........\.......\Road.java
.......\bin\com\isoftstone\interview\traffic
.......\src\com\isoftstone\interview\traffic
.......\bin\com\isoftstone\interview
.......\src\com\isoftstone\interview
.......\bin\com\isoftstone
.......\src\com\isoftstone
.......\bin\com
.......\src\com
.......\bin
.......\src
traffic
.......\.project
.......\bin\com\isoftstone\interview\traffic\Lamp.class
.......\...\...\..........\.........\.......\LampController$1.class
.......\...\...\..........\.........\.......\LampController.class
.......\...\...\..........\.........\.......\MainClass.class
.......\...\...\..........\.........\.......\Road$1.class
.......\...\...\..........\.........\.......\Road$2.class
.......\...\...\..........\.........\.......\Road.class
.......\src\com\isoftstone\interview\traffic\Lamp.java
.......\...\...\..........\.........\.......\LampController.java
.......\...\...\..........\.........\.......\MainClass.java
.......\...\...\..........\.........\.......\Road.java
.......\bin\com\isoftstone\interview\traffic
.......\src\com\isoftstone\interview\traffic
.......\bin\com\isoftstone\interview
.......\src\com\isoftstone\interview
.......\bin\com\isoftstone
.......\src\com\isoftstone
.......\bin\com
.......\src\com
.......\bin
.......\src
traffic