文件名称:XR
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 4kb
- 下载次数:
- 0次
- 提 供 者:
- 伊*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
交通信号灯的线程设计
实验目的:多线程设计,同步机制
题意
设计一个交通信号灯类:
(1) 变量:位置、颜色(红、黄、绿)、显示时间(秒)。
(2) 方法:切(3) 换信号灯。
创建并启动两个线程(东西向、南北向)同时运行。
实验要求
(4) 设计线程。
(5) 设计路口信号灯示意图界面。
(6) 进一步将每个方向的信号灯分成3种车道灯:左转、直行和右转。
(7) 根据车流量进行时间的模糊控制。
-Traffic signal design experimental purposes thread: multi-threaded design, synchronization mechanism to design a title intended to traffic lights categories: (1) variables: location, color (red, yellow and green), showing time (seconds). (2) Method: Cut (3) for signal. Create and start two threads (east to west, north-south) to run simultaneously. Experimental requirements (4) design thread. (5) Schematic diagram of the interface design of the junction signal. (6) further in each direction, the signal is divided into three kinds of driveway lights: turn left, go straight and turn right. (7) in accordance with the time flow of fuzzy control.
实验目的:多线程设计,同步机制
题意
设计一个交通信号灯类:
(1) 变量:位置、颜色(红、黄、绿)、显示时间(秒)。
(2) 方法:切(3) 换信号灯。
创建并启动两个线程(东西向、南北向)同时运行。
实验要求
(4) 设计线程。
(5) 设计路口信号灯示意图界面。
(6) 进一步将每个方向的信号灯分成3种车道灯:左转、直行和右转。
(7) 根据车流量进行时间的模糊控制。
-Traffic signal design experimental purposes thread: multi-threaded design, synchronization mechanism to design a title intended to traffic lights categories: (1) variables: location, color (red, yellow and green), showing time (seconds). (2) Method: Cut (3) for signal. Create and start two threads (east to west, north-south) to run simultaneously. Experimental requirements (4) design thread. (5) Schematic diagram of the interface design of the junction signal. (6) further in each direction, the signal is divided into three kinds of driveway lights: turn left, go straight and turn right. (7) in accordance with the time flow of fuzzy control.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
XR.java