How to Use Navigation Point Rules (Applications)
m (→User Path Selection) |
m (→Application 1: Wait for Loading to be Completed) |
||
Line 4: | Line 4: | ||
'''1. The Scenario:''' | '''1. The Scenario:''' | ||
− | + | --- | |
A user controlled train arrives at a Navigation Point positioned at a coal loader. Coal loading proceeds. The Navigation Point remains in place until the last wagon is loaded. | A user controlled train arrives at a Navigation Point positioned at a coal loader. Coal loading proceeds. The Navigation Point remains in place until the last wagon is loaded. | ||
Revision as of 20:38, 13 May 2018
The screenshots shown below give examples of how navigation points can be used to control the operation of a session.
Application 1: Wait for Loading to be Completed
1. The Scenario: --- A user controlled train arrives at a Navigation Point positioned at a coal loader. Coal loading proceeds. The Navigation Point remains in place until the last wagon is loaded.
2. Rules Used:
- Navigation Display Rule creates the navigation point set.
- Trigger Check Rule to trigger the message event.
- Multiple Resource Check Rule to monitor the load level in the last wagon.
- Navigation Point Complete Rule to manually complete a navigation point.
- Message Popup Rule to open a message window on the screen.
The more obvious Wait on Navigation Point Rule is not used because the Navigation Point will be completed manually some time after the consist has arrived at the location. By using the Trigger Check Rule instead (the Navigation Point is attached to a trigger), the navigation icon remains on the screen until the loading has been completed.
3. Preconditions
The Navigation Point is created with its Style set to manual which means it will be completed by another rule and not the arrival of the consist.
The Multiple Resouce Check Rule is configured to watch the load of coal in the last wagon of the consist exceeding a set value that is close to the maximum for that wagon (apologies for the colour scheme).
4. Session Rules Screenshot
5. Example Explanation
- Line 1: Trigger Check the event is triggered by the arrival of the consist at the coal loader.
- Line 2: Multiple Resource Check when the last wagon has been loaded the following lines are executed.
- Line 3: Navigation Point Complete the Navigation Point is completed and its icon is removed from the screen.
- Line 4: Message Popup a "Loading completed" message appears on the screen.
- Line 2: Multiple Resource Check when the last wagon has been loaded the following lines are executed.
Application 2: User Path Selection
1. The Scenario:
A user controlled train stops at a navigation point in front of a junction and the driver is offered a choice of paths to allow a passing movement by an AI controlled train. Each path is indicated by different sets of navigation points. The path selected will determine other operations such as junction settings and AI train commands.
2. Rules Used:
- Navigation Display Rule creates the navigation point sets.
- Navigation Set Hide/Show Rule to hide and display the navigation point sets.
- Wait on Navigation Point Rule to trigger the message event.
- Navigation Set Clear Rule to manually terminate a navigation point set.
- Message Popup Rule to open a message window on the screen.
- Set Junctions Rule to set and lock junctions.
- Set Signal Extended Rule to set signals.
- Wait Rule to introduce a short delay.
- Driver Schedule Rule to give commands to the AI controlled train.
3. Session Logic:
Three sets of navigation points are created, one for each location on the map diagram above.
- Set A: at the junction, Point A in the map diagram. The two signals are set to STOP, Switch 2 is locked in position and the user is presented with a choice of using the Main Line or the Loop Line
- Set B: at the end signal on the Main Line. Switch 2 is set to the Loop Line and the AI train is given its instructions to pass on the Loop.
- Set C: at the end signal on the Loop Line. Switch 2 is set to the Main Line and the AI train is given its instructions to pass on the Main.
4. Session Rules Screenshot:
- Creating the Navigation Point Sets
Each set is created separately and sets B and C are hidden.
Each navigation point is attached to a track trigger - Point 1 in Set A is attached to a trigger placed in front of Switch 1 in the map diagram.
Navigation Point Set A'. Sets B and C are similar. |
- At Navigation Set A Point 1 - the junction
- Line 1: Wait on Navigation Point The event is triggered when the consist reaches (and stops at) Navigation Point 1 in Set A.
- Line 2: Navigation Set Hide/Show The Navigation Set B is made visible.
- Line 3: Navigation Set Hide/Show The Navigation Set C is made visible.
- Line 4: Set Junctions The junction Switch 2 is locked against user and AI control.
- Line 5: Set Signals Extended Signal A is set to STOP
- Line 6: Set Signals Extended Signal B is set to STOP
- Line 7: Message Popup A message browser window is shown giving instruction to the user to set Switch 1 to the Loop Line or the Main Line and then move the consist forward to the next signal.
- At Navigation Set B Point 1 - the stop signal on the Main Line
- Line 1: Wait on Navigation Point The event is triggered when the consist reaches (and stops at) Navigation Point 1 in Set B.
- Line 2: Navigation Set Clear The Navigation Set C is deleted and its visible Navigation Point disappears from the screen as the Loop Line path was not selected.
- Line 3: Message Popup A message browser window is shown giving instruction to the user to wait until the passing train has cleared Switch 1
- Line 4: Set Junctions The junction Switch 2 is set to the Loop Line but is still locked against user and AI control.
- Line 5: Wait A wait of 20 seconds then ...
- Line 6: Driver Schedule The AI train is given commands to move to the next destination via the Loop Line.
- At Navigation Set C Point 1 - the stop signal on the Loop Line
- Line 1: Wait on Navigation Point The event is triggered when the consist reaches (and stops at) Navigation Point 1 in Set C.
- Line 2: Navigation Set Clear The Navigation Set C is deleted and its visible Navigation Point disappears from the screen as the Main Line path was not selected.
- Line 3: Message Popup A message browser window is shown giving instruction to the user to wait until the passing train has cleared Switch 1
- Line 4: Set Junctions The junction Switch 2 is set to the Main Line but is still locked against user and AI control.
- Line 5: Wait A wait of 20 seconds then ...
- Line 6: Driver Schedule The AI train is given commands to move to the next destination via the Main Line.