Class RailWayLWIterator
- java.lang.Object
-
- org.noise_planet.noisemodelling.jdbc.railway.RailWayLWIterator
-
- All Implemented Interfaces:
Iterator<RailWayLWGeom>
public class RailWayLWIterator extends Object implements Iterator<RailWayLWGeom>
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,Integer>
sourceFields
-
Constructor Summary
Constructors Constructor Description RailWayLWIterator(Connection connection, String tableTrackGeometry, String tableTrainTraffic)
Generate sound source for train (with train source directivity) from traffic and geometry tracks tablesRailWayLWIterator(Connection connection, String tableTrackGeometry, String tableTrainTraffic, String vehicleDataFile, String trainSetDataFile, String railwayDataFile)
Generate sound source for train (with train source directivity) from traffic and geometry tracks tables
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RailWayLWGeom
current()
RailWayCnossosParameters
getRailwayEmissionFromResultSet(ResultSet rs, String period)
Retrieves railway emission parameters from the given ResultSet for a specified period.static boolean
hasColumn(org.h2gis.utilities.SpatialResultSet rs, String columnName)
Check if a specified column exists in the given SpatialResultSetboolean
hasNext()
RailWayLWGeom
next()
Retrieves the next RailWayLWGeom object in the sequence-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
RailWayLWIterator
public RailWayLWIterator(Connection connection, String tableTrackGeometry, String tableTrainTraffic)
Generate sound source for train (with train source directivity) from traffic and geometry tracks tables- Parameters:
connection
-tableTrackGeometry
- Track geometry and metadatatableTrainTraffic
- Train traffic associated with tracks
-
RailWayLWIterator
public RailWayLWIterator(Connection connection, String tableTrackGeometry, String tableTrainTraffic, String vehicleDataFile, String trainSetDataFile, String railwayDataFile)
Generate sound source for train (with train source directivity) from traffic and geometry tracks tables- Parameters:
connection
-tableTrackGeometry
- Track geometry and metadatatableTrainTraffic
- Train traffic associated with tracks
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<RailWayLWGeom>
-
hasColumn
public static boolean hasColumn(org.h2gis.utilities.SpatialResultSet rs, String columnName) throws SQLException
Check if a specified column exists in the given SpatialResultSet- Parameters:
rs
-columnName
-- Returns:
- "true" if the specified column name exists in the result set; "false" otherwise.
- Throws:
SQLException
-
next
public RailWayLWGeom next()
Retrieves the next RailWayLWGeom object in the sequence- Specified by:
next
in interfaceIterator<RailWayLWGeom>
- Returns:
- the current RailWayLWGeom object.
-
current
public RailWayLWGeom current()
-
getRailwayEmissionFromResultSet
public RailWayCnossosParameters getRailwayEmissionFromResultSet(ResultSet rs, String period) throws SQLException, IOException
Retrieves railway emission parameters from the given ResultSet for a specified period.- Parameters:
rs
- result set of sourceperiod
- Day or Evening or Night- Returns:
- Emission spectrum in dB
- Throws:
SQLException
IOException
-
-