Home
Alphabetical
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Railway Layout Problems

 

Computing the APR property

A few things first

You can download the above program for Mac OSX or for Windows as .zip files.  To the best of my knowledge there are no viruses or malware in these files.

The executable programs were made with LiveCode using a Mac running 10.6.8, from a unique code version.  The only run-time difference is in the use of the checkmark character "•" in the OSX version against "x" in Windows version.  This is checked in a single line of LiveCode:

if "NT" is in the systemversion then put "x" into gTick else put "•" into gTick

LiveCode thinks in terms of "stacks" of "cards", each stack shows in its own window.  In this program there is only one stack but it has a different card for each layout you might try.  I will use the terminology of cards and stacks in this page.

At the start

When you launch the program you will see a single window (Rail Layouts) and three menus (File, Edit, Help).  The window can be resized.

On the window are:

The File Menu

The File menu has:

The Edit Menu

The Edit menu has:

The Help Menu

The Help menu is inactive at this time (2011-12-11)

Limitations

Since I rely on naming the segments with a single letter, I'm limited to 26 segments.  But the number of switches is always even and the number of segments is always three times the number of pairs of switches.  Hence the maximum number of switches is (26 div 3)*2 = 16.  This also limits the segments to 3*16/2=24.  But a layout with 16 switches is already quite complex and the whole point is to experiment with computing the APR of some layouts, not use the program for arbitrary layouts.


Valid XHTML 1.0 StrictValid CSS

next planned revision: