Object oriented program example: animated traffic lights on road intersection

classes and superclass are used to arrange flexible object oriented programming environment
2.8K 次下载
更新时间 2016/8/10

查看许可证

Only 31 lines of code in start.m is used to control animated traffic lights on road intersection. LampSuperclass and three clases (trafficLamp, tLamps, map) are used in program. Classes define (1) single Red-Yellow-Green traffic 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.

引用格式

Bogumila & Zbigniew MROZEK (2025). Object oriented program example: animated traffic lights on road intersection (https://ww2.mathworks.cn/matlabcentral/fileexchange/38316-object-oriented-program-example-animated-traffic-lights-on-road-intersection), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Software Development Tools 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.3.0.0

tested with MATLAB 2014a
tested with MATLAB 8.0 (R2012b) and MATLAB 9.0 (R2016a)
Tested with MATLAB 8.0 (R2012b) and MATLAB 2016a, minor change of title (example instead of demo)

1.2.0.0

general upgrade insluding proprieties and methods in all classes, title

1.1.0.0

superclass added

1.0.0.0