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.
a[ "nodeName" ] = object()So there you have it.
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