! A user needs to Press a button to enable AUDIO sound !

Adding Sound is quite difficult. I used Audio tags but who to they belong to? They are loaded with a sound. The Signal box has a bell for each adjacent signal boxes and they need to sound different bell codes. Web Audio allows a sound to be started and forgotten about. To Be done: Each signal box has different beels and gongs.

Wet string theory - signalling simulator

Think that a network can be thought of as hardware managed by blobs of software.

Every thing is managed by a blob of software represented by an object.

Now group these objects into an array indexed by a name.

Have an associative array of objects.

Index the associative array by a string representing the instance of the object.

BELL codes - simplified
1 	Attn
2 	Train enetring section
3-1	Is Line Clear for ?
1-3	Is Line Clear for ?
 
  a[ "nodeName" ] = object()
So there you have it.

Example - railway

INPUT:

OUTPUT:

  signalling:-
 
  box A has train 
  box A asks box B: Is Line Clear?
  box B ack and sets block instrument which is reflected back to box A
  box A allows train onto line
  box A tells box B: Train entering section
 
bell.png
bell_lr.png
bell_rl.png
block.png
blockLinCLR.png
blockLineBlocked.png
blockTrainOnLine.png
homeDanger.png
homeOff.png

Signalling

Attn

ATN ack

Is line CLEAR?

Is line CLEAR? ack

set by upline box

Let train start

Train Entering Section

Train Entering Section ack

set by upline box

set