Animated traffic lights on road intersection -- OOP (object oriented programming) demo
by Bogumila & Zbigniew MROZEK
24 Sep 2012
(Updated 25 Sep 2012)
simple classes and superclass are used to arrange flexible object oriented programming environment
|
Watch this File
|
| File Information |
| Description |
Only 30 lines of code in start.m is used to control animated traffic lights on road intersection. Superclass and three clases used in program (trafficLamp, tLamps, map) are used to define (1) single Red-Yellow-Green lamp, (2) set of four lamps (North, South, East, West direction) and (3) map of street intersection. Menu is used to change the mode of traffic light operation. |
| Required Products |
MATLAB
|
| MATLAB release |
MATLAB 8.0 (R2012b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 25 Sep 2012 |
superclass added |
|
Contact us