¿ªÔÆÌåÓý

Locked Re: Signal Mast Appearance definition file


 

Hal,

In order to understand the internals of signal mast logic does require looking at xml files.

When a signal mast is defined in the JMRI Signal Mast table, the?Signal System and Mast Type are selected. ?The same Signal System is used for all of the masts.

Each mast type has an appearance-??????.xml file in the signal system directory. ?The <name> element has the user friendly name that is shown in JMRI.

The <appearances> section defines what the mast looks like, including the icons to be displayed on a JMRI panel.

The <aspectMappings> section defines what aspect should be displayed based on the current aspect of the next signal mast. ?A <aspectMapping> set is defined for each possible aspect as defined in aspects.xml. ?The next aspect name is defined using <advancedAspect>. ?This is followed by one or more <ourAspect> entries using one of the appearances listed in the <appearances> section.

If more than one <ourAspect> is listed, then the route and speed values in the aspects.xml file are used to determine the correct aspect for the mast.

The speed is based on the Path Speed as shown in the Signaling Mast Pairs SML window. ?This is based on block and turnout speeds.

The route is Normal if all turnouts are normal and Diverging if any turnout is diverging.

I hope I have not made things more confusing.

Dave Sand



On Sep 19, 2019, at 7:40 AM, haltz@... wrote:

Thanks, Billybob, vey helpful. I was just trying to figure out what the logic is as described in the "JMRI Signal Mast Logic" page. There it says (italics?mine):

"Which Aspect our source Signal Mast displays after being released from "Danger" is firstly determined by the?Aspect mapping that has been defined in?the Signal Mast Appearance definition file.?If there is only one Aspect that could be displayed, then the Signal Mast will be set to that Aspect.
However if multiple Aspects could potentially be displayed then the logic looks at two areas to determine the resulting Aspect to be?displayed:"...Diverging Route...Block/Signal Speed..."

That's why I was trying to look at a definition fie, but didn't know which one to look at nor how to look at it (short of reading xml, which is fine as a last?resort)
I'll look closer at all you wrote and maybe understand better. Thanks again, Hal.

Join [email protected] to automatically receive all group messages.