Class RailwayPlatform

java.lang.Object
org.noise_planet.noisemodelling.jdbc.railway.RailwayPlatform

public class RailwayPlatform extends Object
Describes a railway platform geometry and ground properties. These parameters define the cross-section of the railway track platform used for noise emission and propagation calculations. Platform definitions are loaded from a JSON resource file (RailwayPlatforms.json).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    Track gauge - distance between rails (m)
    double
    Top width of the ballast shoulder (m)
    double
    Bottom width of the ballast shoulder (m)
    double
    Total platform width (m)
    static final RailwayPlatform
    Default platform with standard SNCF values
    double
    Ground factor of the platform area (0=hard, 1=soft)
    double
    Ground factor of the ballast shoulder (0=hard, 1=soft)
    double
    Ground factor between the rails (0=hard, 1=soft)
    double
    Height of the ballast shoulder (m)
    double
    Height of the rail above the ballast - hRail (m)
    double
    trackSpacing spacing between tracks (m)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getD2(int nTrack, double trackSpacing)
     
    double
    getD3(int nTrack, double trackSpacing)
     
    double
    getD4(int nTrack, double trackSpacing)
     
    double
     
    loadFromJSON(String fileName)
    Load platform definitions from a JSON resource file.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • d1

      public double d1
      Track gauge - distance between rails (m)
    • d2_0

      public double d2_0
      Top width of the ballast shoulder (m)
    • d3_0

      public double d3_0
      Bottom width of the ballast shoulder (m)
    • d4_0

      public double d4_0
      Total platform width (m)
    • g1

      public double g1
      Ground factor of the platform area (0=hard, 1=soft)
    • g2

      public double g2
      Ground factor of the ballast shoulder (0=hard, 1=soft)
    • g3

      public double g3
      Ground factor between the rails (0=hard, 1=soft)
    • h1

      public double h1
      Height of the ballast shoulder (m)
    • h2

      public double h2
      Height of the rail above the ballast - hRail (m)
    • trackspacing

      public double trackspacing
      trackSpacing spacing between tracks (m)
    • DEFAULT_PLATFORM

      public static final RailwayPlatform DEFAULT_PLATFORM
      Default platform with standard SNCF values
  • Constructor Details

    • RailwayPlatform

      public RailwayPlatform()
    • RailwayPlatform

      public RailwayPlatform(RailwayPlatform other)
  • Method Details

    • getHRail

      public double getHRail()
      Returns:
      Height of the rail above the ballast (h2 only). Ballast is considered as the ground reference, so hRail represents the rail protruding above it. Used in body barrier calculation and source height positioning.
    • getD2

      public double getD2(int nTrack, double trackSpacing)
      Parameters:
      nTrack - number of tracks in the section
      trackSpacing - spacing between tracks (m)
      Returns:
      Top width of the ballast shoulder adjusted for multi-track: d2_0 + (nTrack - 1) * trackSpacing
    • getD3

      public double getD3(int nTrack, double trackSpacing)
      Parameters:
      nTrack - number of tracks in the section
      trackSpacing - spacing between tracks (m)
      Returns:
      Bottom width of the ballast shoulder adjusted for multi-track: d3_0 + (nTrack - 1) * trackSpacing
    • getD4

      public double getD4(int nTrack, double trackSpacing)
      Parameters:
      nTrack - number of tracks in the section
      trackSpacing - spacing between tracks (m)
      Returns:
      Total platform width adjusted for multi-track: d4_0 + (nTrack - 1) * trackSpacing
    • loadFromJSON

      public static Map<String, RailwayPlatform> loadFromJSON(String fileName)
      Load platform definitions from a JSON resource file. The JSON is located next to the Railway class resources, or if the filename is an URL, it is opened.
      Parameters:
      fileName - name of the JSON file (e.g. "RailwayPlatforms.json") or JSON url (e.g. "file:///path/to/RailwayPlatforms.json")
      Returns:
      map of platform name to RailwayPlatform