Model Railroad System  2.2.2
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
azatrax_signals::ThreeHead3over2over2 Class Reference

Three head signals, 3 over 2 over 2. More...

Public Member Functions

 ThreeHead3over2over2 (name,...)
 Constructor: initialize the signal object. More...
 
 setaspect (aspect)
 Set signal aspect. More...
 

Static Public Member Functions

static validate (object)
 Type validating code Raises an error if object is not either the empty string or a TwoHead3over2over2 type object. More...
 

Private Attributes

 signalupper
 Signal driver (SR4) More...
 
 signallower
 Signal driver (SR4) More...
 

Detailed Description

Three head signals, 3 over 2 over 2.

Typically used for simple interlocking signals. Two SR4s, with one driving the top head: with Q1 connected to the top lamp (green), Q2 connected to the middle lamp (yellow), and Q3 connected to the bottom lamp (red). The second SR4 wired to the middle and lower heads, its Q1 connected to the top lamp (green or yellow) of the middle head, and Q2 to the bottom lamp (red) of the middle head. Then Q3 is connected to the top lamp (green or yellow) of the bottom head, and Q4 connected to the bottom lamp (red) of the bottom head.

Typical usage:

azatrax_signals::TwoHead3over2over2 interlocksignal1 \
-signalsnupper 0400001234 \
-signalsnlower 0400001235 \
-signalname Signal1
Author
Robert Heller <heller@deepsoft.com>

Definition at line 243 of file Azatrax_Signals.tcl.

Constructor & Destructor Documentation

◆ ThreeHead3over2over2()

azatrax_signals::ThreeHead3over2over2::ThreeHead3over2over2 ( name  ,
  ... 
)

Constructor: initialize the signal object.

Create a low level actuator object and install it as a component.

Parameters
nameName of the signal object.
...Options:
  • -signalsnupper Serial number of the SR4 that controls the upper head of this signal.
  • -signalsnlower Serial number of the SR4 that controls the lower two heads of this signal.
  • -signalname Name of the signal on the track work schematic.

Member Function Documentation

◆ setaspect()

azatrax_signals::ThreeHead3over2over2::setaspect ( aspect  )

Set signal aspect.

Parameters
aspectNew aspect color.

◆ validate()

static azatrax_signals::ThreeHead3over2over2::validate ( object  )
static

Type validating code Raises an error if object is not either the empty string or a TwoHead3over2over2 type object.

Parameters
objectSome object.

Member Data Documentation

◆ signallower

azatrax_signals::ThreeHead3over2over2::signallower
private

Signal driver (SR4)

Definition at line 255 of file Azatrax_Signals.tcl.

◆ signalupper

azatrax_signals::ThreeHead3over2over2::signalupper
private

Signal driver (SR4)

Definition at line 251 of file Azatrax_Signals.tcl.