Dev:Connection between tracks: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
No edit summary |
mNo edit summary |
||
Line 13: | Line 13: | ||
= Simple Connection Between Two Tracks = | = Simple Connection Between Two Tracks = | ||
[http://apmsrv034.apm.etc.tu-bs.de/simpleCon.png Imagine the following scenario, in which the tracks T1 and T2 shall directly connected with each other (click for graphic).] The labels shown the figure have the following meaning: | [http://apmsrv034.apm.etc.tu-bs.de/simpleCon.png Imagine the following scenario, in which the tracks T1 and T2 shall be directly connected with each other (click for graphic).] The labels shown the figure have the following meaning: | ||
* T1 = Track 1 | * T1 = Track 1 | ||
Line 21: | Line 21: | ||
* C1 = Connection 1 from TE1 to TB2 | * C1 = Connection 1 from TE1 to TB2 | ||
* C2 = Connection 2 from TB2 to TE1 | * C2 = Connection 2 from TB2 to TE1 | ||
The relevant XML code for this example would be: |
Revision as of 17:31, 13 March 2010
Introduction
People just starting out with RailML are often puzzled how to store connections between track elements and how to model a simple switch. This page will show some examples and give some explanations on the preferred solutions for these problems. In detail, this page will show
- the connection between two subsequent tracks
- the insertion of a switch somewhere on a track
- a crossover between two parallel tracks
along with fragmentary XML code snippets.
Simple Connection Between Two Tracks
Imagine the following scenario, in which the tracks T1 and T2 shall be directly connected with each other (click for graphic). The labels shown the figure have the following meaning:
- T1 = Track 1
- T2 = Track 2
- TE1 = trackEnd of track 1
- TB2 = trackBegin of track 2
- C1 = Connection 1 from TE1 to TB2
- C2 = Connection 2 from TB2 to TE1
The relevant XML code for this example would be: