Description: Cars cannot pass each other on the bridge. The buttons set the number of cars moving in each direction. The default is one blue car and one red car. Try two and three. The safe checkbox, if cleared, changes the bridge monitor to a null implementation. The fair checkbox, when ticked, changes the bridge monitor to one which guarantees fair access to both red and blue cars.
To Search:
File list (Check if you may need any files):
BlueCar.java
Bridge.java
BridgeCanvas.java
FairBridge.java
RedCar.java
SafeBridge.java
SingleLaneBridge.java