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

Single head signals, 3 color. More...

Public Member Functions

 OneHead3Color (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 OneHead3Color type object. More...
 

Private Attributes

 signal
 Signal driver (SR4) More...
 

Detailed Description

Single head signals, 3 color.

Typically used for simple block signals. One SR4, with Q1 connected to the top lamp (green), Q2 connected to the middle lamp (yellow), and Q3 connected to the bottom lamp (red).

Typical usage:

azatrax_signals::OneHead3Color blocksignal1 -signalsn 0400001234 -signalname Signal1
Author
Robert Heller <heller@deepsoft.com>

Definition at line 57 of file Azatrax_Signals.tcl.

Constructor & Destructor Documentation

◆ OneHead3Color()

azatrax_signals::OneHead3Color::OneHead3Color ( 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:
  • -signalsn Serial number of the SR4 that controls this signal.
  • -signalname Name of the signal on the track work schematic.

Member Function Documentation

◆ setaspect()

azatrax_signals::OneHead3Color::setaspect ( aspect  )

Set signal aspect.

Parameters
aspectNew aspect color.

◆ validate()

static azatrax_signals::OneHead3Color::validate ( object  )
static

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

Parameters
objectSome object.

Member Data Documentation

◆ signal

azatrax_signals::OneHead3Color::signal
private

Signal driver (SR4)

Definition at line 64 of file Azatrax_Signals.tcl.

azatrax_signals::OneHead3Color
Single head signals, 3 color.
Definition: Azatrax_Signals.tcl:57