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

1 comment:

  1. Civil Lab Equipment Manufacturer is the leading Manufacturer, Supplier and Exporter of Civil Engineering Lab Equipments or instruments. Established in 2005.

    Mob: +91-9891445495, +91-8448366515, +918587026175
    Phone : +91-11-23657121
    Website : http://setestindia.com, http://civillabequipmentmanufacturer.com/

    ReplyDelete