文件名称:traffic
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:10.63kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
交通灯模拟管理系统 模拟实现十字路口的交通灯管理系统逻辑,具体需求如下:
? 异步随机生成按照各个路线行驶的车辆。
例如:
由南向而来去往北向的车辆 ---- 直行车辆
由西向而来去往南向的车辆 ---- 右转车辆
由东向而来去往南向的车辆 ---- 左转车辆
。。。
? 信号灯忽略黄灯,只考虑红灯和绿灯。
? 应考虑左转车辆控制信号灯,右转车辆不受信号灯控制。
? 具体信号灯控制逻辑与现实生活中普通交通灯控制逻辑相同,不考虑特殊情况下的控制逻辑。
注:南北向车辆与东西向车辆交替放行,同方向等待车辆应先放行直行车辆而后放行左转车辆。
? 每辆车通过路口时间为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
traffic/.project
traffic/bin/com/isoftstone/interview/traffic/Lamp.class
traffic/bin/com/isoftstone/interview/traffic/LampController$1.class
traffic/bin/com/isoftstone/interview/traffic/LampController.class
traffic/bin/com/isoftstone/interview/traffic/MainClass.class
traffic/bin/com/isoftstone/interview/traffic/Road$1.class
traffic/bin/com/isoftstone/interview/traffic/Road$2.class
traffic/bin/com/isoftstone/interview/traffic/Road.class
traffic/src/com/isoftstone/interview/traffic/Lamp.java
traffic/src/com/isoftstone/interview/traffic/LampController.java
traffic/src/com/isoftstone/interview/traffic/MainClass.java
traffic/src/com/isoftstone/interview/traffic/Road.java
traffic/bin/com/isoftstone/interview/traffic
traffic/src/com/isoftstone/interview/traffic
traffic/bin/com/isoftstone/interview
traffic/src/com/isoftstone/interview
traffic/bin/com/isoftstone
traffic/src/com/isoftstone
traffic/bin/com
traffic/src/com
traffic/bin
traffic/src
traffic
traffic/.project
traffic/bin/com/isoftstone/interview/traffic/Lamp.class
traffic/bin/com/isoftstone/interview/traffic/LampController$1.class
traffic/bin/com/isoftstone/interview/traffic/LampController.class
traffic/bin/com/isoftstone/interview/traffic/MainClass.class
traffic/bin/com/isoftstone/interview/traffic/Road$1.class
traffic/bin/com/isoftstone/interview/traffic/Road$2.class
traffic/bin/com/isoftstone/interview/traffic/Road.class
traffic/src/com/isoftstone/interview/traffic/Lamp.java
traffic/src/com/isoftstone/interview/traffic/LampController.java
traffic/src/com/isoftstone/interview/traffic/MainClass.java
traffic/src/com/isoftstone/interview/traffic/Road.java
traffic/bin/com/isoftstone/interview/traffic
traffic/src/com/isoftstone/interview/traffic
traffic/bin/com/isoftstone/interview
traffic/src/com/isoftstone/interview
traffic/bin/com/isoftstone
traffic/src/com/isoftstone
traffic/bin/com
traffic/src/com
traffic/bin
traffic/src
traffic
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.