Class RailwayPlatform
java.lang.Object
org.noise_planet.noisemodelling.jdbc.railway.RailwayPlatform
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
FieldsModifier and TypeFieldDescriptiondoubleTrack gauge - distance between rails (m)doubleTop width of the ballast shoulder (m)doubleBottom width of the ballast shoulder (m)doubleTotal platform width (m)static final RailwayPlatformDefault platform with standard SNCF valuesdoubleGround factor of the platform area (0=hard, 1=soft)doubleGround factor of the ballast shoulder (0=hard, 1=soft)doubleGround factor between the rails (0=hard, 1=soft)doubleHeight of the ballast shoulder (m)doubleHeight of the rail above the ballast - hRail (m)doubletrackSpacing spacing between tracks (m) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetD2(int nTrack, double trackSpacing) doublegetD3(int nTrack, double trackSpacing) doublegetD4(int nTrack, double trackSpacing) doublegetHRail()static Map<String, RailwayPlatform> loadFromJSON(String fileName) Load platform definitions from a JSON resource file.
-
Field Details
-
d1
public double d1Track gauge - distance between rails (m) -
d2_0
public double d2_0Top width of the ballast shoulder (m) -
d3_0
public double d3_0Bottom width of the ballast shoulder (m) -
d4_0
public double d4_0Total platform width (m) -
g1
public double g1Ground factor of the platform area (0=hard, 1=soft) -
g2
public double g2Ground factor of the ballast shoulder (0=hard, 1=soft) -
g3
public double g3Ground factor between the rails (0=hard, 1=soft) -
h1
public double h1Height of the ballast shoulder (m) -
h2
public double h2Height of the rail above the ballast - hRail (m) -
trackspacing
public double trackspacingtrackSpacing spacing between tracks (m) -
DEFAULT_PLATFORM
Default platform with standard SNCF values
-
-
Constructor Details
-
RailwayPlatform
public RailwayPlatform() -
RailwayPlatform
-
-
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 sectiontrackSpacing- 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 sectiontrackSpacing- 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 sectiontrackSpacing- spacing between tracks (m)- Returns:
- Total platform width adjusted for multi-track: d4_0 + (nTrack - 1) * trackSpacing
-
loadFromJSON
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
-