Class DoubleTurnoutSignalHead

  • All Implemented Interfaces:
    java.beans.VetoableChangeListener, java.lang.Comparable<NamedBean>, java.util.EventListener, PropertyChangeProvider, NamedBean, Signal, SignalHead
    Direct Known Subclasses:
    TripleOutputSignalHead, TripleTurnoutSignalHead

    public class DoubleTurnoutSignalHead
    extends DefaultSignalHead
    Drive a single signal head via two "Turnout" objects.

    After much confusion, the user-level terminology was changed to call these "Double Output"; the class name remains the same to reduce recoding.

    The two Turnout objects are provided during construction, and each drives a specific color (RED and GREEN). Normally, "THROWN" is on, and "CLOSED" is off. YELLOW is provided by turning both on ("THROWN")

    This class also listens to the Turnouts to see if they've been changed via some other mechanism.