Package org.goplanit.osm.defaults
Class OsmRailwayTypeConfiguration
- java.lang.Object
-
- org.goplanit.osm.defaults.OsmInfrastructureConfigurationImpl
-
- org.goplanit.osm.defaults.OsmRailwayTypeConfiguration
-
- All Implemented Interfaces:
OsmInfrastructureConfiguration
public class OsmRailwayTypeConfiguration extends OsmInfrastructureConfigurationImpl
Configuration options regarding the activation/deactivation of specific OSM railway types in the parser- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description protected static Set<String>
DEFAULT_ACTIVATED_OSM_RAILWAY_TYPES
the OSM railway types that are marked as activated OSM types, i.e., will be processed when parsingprotected static Set<String>
DEFAULT_DEACTIVATED_OSM_RAILWAY_TYPES
the OSM railway types that are marked as deactivated OSM types, i.e., will be ignored when parsing-
Fields inherited from class org.goplanit.osm.defaults.OsmInfrastructureConfigurationImpl
activatedOsmTypes, deactivatedOsmTypes, osmKey
-
-
Constructor Summary
Constructors Constructor Description OsmRailwayTypeConfiguration()
Default constructor
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static void
initialiseDefaultActivatedOsmRailwayTypes()
Since we are building a macroscopic network based on OSM, we provide a mapping from the common OSM railway types to macroscopic link segment types that we explicitly do include, i.e., support.protected static void
initialiseDefaultDeactivatedOsmRailwayTypes()
Since we are building a macroscopic network based on OSM, we provide a mapping from the common OSM railway types to macroscopic link segment types that we explicitly do not activate either because they are not used in general assignment (miniature) or because we cannot properly convert them (turn tables, razed), or because they do not represent a railway as such (platform as a way) FUNICULAR MONO_RAIL NARROW_GAUGE ABANDONED CONSTRUCTION DISUSED MINIATURE RAZED TURNTABLE PROPOSED-
Methods inherited from class org.goplanit.osm.defaults.OsmInfrastructureConfigurationImpl
activate, activate, activateAll, deactivate, deactivateAll, deepClone, getActivatedTypes, getDeactivatedTypes, isActivated, isDeactivated, logDeactivatedTypes
-
-
-
-
Method Detail
-
initialiseDefaultActivatedOsmRailwayTypes
protected static void initialiseDefaultActivatedOsmRailwayTypes() throws PlanItException
Since we are building a macroscopic network based on OSM, we provide a mapping from the common OSM railway types to macroscopic link segment types that we explicitly do include, i.e., support.- LIGHT_RAIL
- RAIL
- SUBWAY
- TRAM
- Throws:
PlanItException
- thrown when error
-
initialiseDefaultDeactivatedOsmRailwayTypes
protected static void initialiseDefaultDeactivatedOsmRailwayTypes() throws PlanItException
Since we are building a macroscopic network based on OSM, we provide a mapping from the common OSM railway types to macroscopic link segment types that we explicitly do not activate either because they are not used in general assignment (miniature) or because we cannot properly convert them (turn tables, razed), or because they do not represent a railway as such (platform as a way)- FUNICULAR
- MONO_RAIL
- NARROW_GAUGE
- ABANDONED
- CONSTRUCTION
- DISUSED
- MINIATURE
- RAZED
- TURNTABLE
- PROPOSED
- Throws:
PlanItException
- thrown when error
-
-