kea.programs.pintail
Class TrafficLightSetting

java.lang.Object
  extended by kea.programs.pintail.TrafficLightSetting

public class TrafficLightSetting
extends java.lang.Object

Enum respresenting the different types of display available with an instance of TrafficLight class.

Version:
1.0.
Author:
Kevin Ashelford.

Field Summary
static TrafficLightSetting Amber
          Amber light on, all others off.
static TrafficLightSetting Green
          Green light on, all others off.
static TrafficLightSetting Off
          All lights off.
static TrafficLightSetting Red
          Red light on, all others off.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of TrafficLightSetting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Red

public static final TrafficLightSetting Red
Red light on, all others off.


Amber

public static final TrafficLightSetting Amber
Amber light on, all others off.


Green

public static final TrafficLightSetting Green
Green light on, all others off.


Off

public static final TrafficLightSetting Off
All lights off.

Method Detail

toString

public java.lang.String toString()
Returns a string representation of TrafficLightSetting.

Overrides:
toString in class java.lang.Object
Returns:
String.