Class Railway
java.lang.Object
org.noise_planet.noisemodelling.emission.railway.Railway
- Direct Known Subclasses:
RailwayCnossos, RailwayCnossosvar
Railway noise evaluation from Cnossos reference : COMMISSION DIRECTIVE (EU) 2015/996
of 19 May 2015 establishing common noise assessment methods according to Directive 2002/49/EC
of the European Parliament and of the Council
amending, for the purposes of adapting to scientific and technical progress, Annex II to
Directive 2002/49/EC of the European Parliament and of the Council as regards
common noise assessment methods
part 2.3. Railway noise
Return the dB value corresponding to the parameters
- Author:
- Adrien Le Bellec, Université Gustave Eiffel, Olivier Chiello, Université Gustave Eiffel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleSentinel speed (km/h) used when no speed limit is known. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(RailwayVehicleParameters vehicleParameters, RailwayTrackParameters trackParameters) Evaluate the sound level for one Vehiclecom.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodeGet the CNOSSOS coefficients from a specific file version (French have their own CNOSSOS coefficients).static InputStreamgetStreamFromResourceString(String resource) Retrieves an InputStream from a resource string, which can either be a URI or a classpath resource.com.fasterxml.jackson.databind.JsonNodeSpecific to French adaptation of the CNOSSOS method Get the SNCF composition of a train (one train can contains one or more vehicles)com.fasterxml.jackson.databind.JsonNodeGet the vehicles attributesgetVehicleFromTrainset(String trainName) Get vehicle from a trainsetcom.fasterxml.jackson.databind.JsonNodegetVehicleNode(String typeVehicle) booleanisInVehicleList(String vehicleName) Find if a specific vehicle is in the Vehicle Liststatic <T> Iterable<T> iteratorToIterable(Iterator<T> iterator) voidsetRailwayDataFile(String railwayResource) voidsetTrainSetDataFile(String trainsetResource) voidsetVehicleDataFile(String VehicleData)
-
Field Details
-
NO_SPEED_LIMIT
public static final double NO_SPEED_LIMITSentinel speed (km/h) used when no speed limit is known. It is high enough not to constrain real railway traffic, while avoidinginfinityin downstream maths.- See Also:
-
-
Constructor Details
-
Railway
public Railway()
-
-
Method Details
-
iteratorToIterable
-
getStreamFromResourceString
Retrieves an InputStream from a resource string, which can either be a URI or a classpath resource. If the resource string represents a valid URI, the input stream is opened from the URI. Otherwise, the input stream is retrieved from the classpath using the resource string.- Parameters:
resource- the resource string, which can be a URI or a classpath resource- Returns:
- the InputStream corresponding to the resource
- Throws:
IOException- if the resource cannot be found or accessed
-
setVehicleDataFile
- Throws:
IOException
-
setTrainSetDataFile
- Throws:
IOException
-
setRailwayDataFile
- Throws:
IOException
-
fetchNode
public com.fasterxml.jackson.databind.JsonNode fetchNode(com.fasterxml.jackson.databind.JsonNode node, String key) -
getVehicleNode
-
getRailWayData
public com.fasterxml.jackson.databind.JsonNode getRailWayData()Get the CNOSSOS coefficients from a specific file version (French have their own CNOSSOS coefficients).- Returns:
- get the CNOSSOS Coefficients
-
getVehicleData
public com.fasterxml.jackson.databind.JsonNode getVehicleData()Get the vehicles attributes- Returns:
- Coefficients related to the characteristics of vehicles
-
getTrainsetData
public com.fasterxml.jackson.databind.JsonNode getTrainsetData()Specific to French adaptation of the CNOSSOS method Get the SNCF composition of a train (one train can contains one or more vehicles)- Returns:
- SNCF composition of a train
-
getVehicleFromTrainset
-
isInVehicleList
Find if a specific vehicle is in the Vehicle List- Parameters:
vehicleName- Name of a Vehicle- Returns:
- true if in list
-
evaluate
public RailWayParameters evaluate(RailwayVehicleParameters vehicleParameters, RailwayTrackParameters trackParameters) throws IOException Evaluate the sound level for one Vehicle- Parameters:
vehicleParameters- Vehicle Noise emission parameterstrackParameters- Track Noise emission parameters constant speed- Returns:
- LWRoll / LWTraction A and B / LWAerodynamic A and B / LWBridge level in dB
- Throws:
IOException- io exception
-