Dev:Connection between tracks

From railML 2 Wiki
Jump to navigation Jump to search

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 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