things.common.tools
Class StoplightMonitor

java.lang.Object
  extended by things.common.tools.StoplightMonitor

public class StoplightMonitor
extends java.lang.Object

This is a stoplight monitor.

Version:
1.0

Version History

EPG - Adapted from another project- 27 JUN 05
 
Author:
Erich P. Gatejen

Constructor Summary
StoplightMonitor()
           
 
Method Summary
 void stoplight()
          Approach the stoplight.
 void turnGreen()
          Turn on the stoplight green.
 void turnRed()
          Turn on the stoplight red.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoplightMonitor

public StoplightMonitor()
Method Detail

stoplight

public void stoplight()
Approach the stoplight. If the light is red, the thread will stop.


turnGreen

public void turnGreen()
Turn on the stoplight green.


turnRed

public void turnRed()
Turn on the stoplight red.



Things.