Wednesday, June 15, 2016

Design A New Traffic Light System

Principle Requirements:
http://www.hiringlibrary.com/design-a-new-traffic-light-system/

Object Oriented Design:
We can have a Signal class, which is inherited by vehicle Signal and Pedestrian Signal.
Signal{
LED
Timer
}

Class SignalManager{
VehicleSingnal[4];
PedestrianSingnal[8];

doWork()
{
while ( true)
switch on the signals in roundrobin fashion
}

}
http://www.ccs.neu.edu/home/vkp/Papers/Traffic-sigcse98.pdf
http://www.programering.com/a/MDMyYTMwATQ.html
http://www.academia.edu/5161257/OBJECT-ORIENTED_PROGRAMMING_IN_JAVA
https://www.careercup.com/question?id=319706

No comments:

Post a Comment