trafficjava

所属分类:Java编程
开发工具:Java
文件大小:27KB
下载次数:199
上传日期:2007-05-04 14:39:58
上 传 者phchen230
说明:  设计一个交通信号灯类: (1)变量:位置、颜色(红、黄、绿)、显示时间(秒)。 (2)方法:切换信号灯。 创建并启动两个线程(东西向、南北向)同时运行。 3.实验要求 (1)设计线程。 (2)设计路口信号灯示意图界面。 (3)进一步将每个方向的信号灯分成3种车道灯:左转、直行和右转。 (4)根据车流量进行时间的模糊控制。
(design of a traffic signal categories : (1) variables : location, color (red, yellow, green), indicating that time (seconds). (2) Method : Switch lights. Create and start two threads (to the East and West, North and the South to) the same time. 3. Experimental requirements (1) design thread. (2) design matrix interface signal junctions. (3) Further to the signal in each direction, divided into three lanes of lights : turn left, turn right and go straight. (4) According to vehicular traffic for the time of fuzzy control.)

文件列表:
trafficlight.java (11860, 2006-12-18)
road.jpg (61526, 2006-12-10)

近期下载者

相关文件


收藏者