Reply to this topic  Start new topic
> Traffic Lights, A Tutorial Widget
g6auc
post May 1 2009, 10:34 PM
Post #1






Posts: 4,265
Joined: 1-March 04
From: West Yorkshire, UK
Member No.: 2,322



IPB Image

Traffic Lights is a little tutorial Widget which shows how to write a class for a Traffic Light object.

The Widget simulates timed traffic lights at a simple East-West, North-South crossing. It makes use of a timer to step a finite state machine.

There are options to set the lengths of the green phases and whether the Widget is to simulate a UK (4-phase) of US (3-phase) system.




User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fast Reply  Reply to this topic    Start new topic  
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: