Package org.goplanit.osm.defaults
Interface OsmInfrastructureConfiguration
-
- All Known Implementing Classes:
OsmHighwayTypeConfiguration,OsmInfrastructureConfigurationImpl,OsmRailwayTypeConfiguration,OsmWaterwayTypeConfiguration
public interface OsmInfrastructureConfigurationInterface with common functionality for configuration OSM ways (highway/rail/waterway)- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate(String... osmWayTypeValues)Choose to add a given way value to be on top of the defaults, e.g.voidactivate(List<String> osmWayTypeValues)Choose to add a given way value to be on top of the defaults, e.g.voidactivateAll()activate all types explicitlyvoiddeactivate(String osmValue)Choose to not parse the given combination of way subtype, e.g.voiddeactivateAll()deactivate all types explicitlyOsmInfrastructureConfigurationdeepClone()Deep clone instanceMap<String,Set<String>>getActivatedTypes()create a copy of the currently supported way types in set formMap<String,Set<String>>getDeactivatedTypes()create a copy of the currently unsupported way types in set formbooleanisActivated(String osmValue)Verify if the passed in OSM way type is explicitly supported.booleanisDeactivated(String osmValue)Verify if the passed in OSM way type is explicitly unsupported.voidlogDeactivatedTypes()
-
-
-
Method Detail
-
logDeactivatedTypes
void logDeactivatedTypes()
-
isDeactivated
boolean isDeactivated(String osmValue)
Verify if the passed in OSM way type is explicitly unsupported. Unsupported types will be ignored when processing ways.- Parameters:
osmValue- , e.g. primary, road- Returns:
- true when unSupported, false if not (which means it is either supported, or not registered)
-
isActivated
boolean isActivated(String osmValue)
Verify if the passed in OSM way type is explicitly supported. Supported types will be processed and converted into link(segments).- Parameters:
osmValue- , e.g. primary- Returns:
- true when supported, false if not (which means it is unsupported, or not registered)
-
deactivate
void deactivate(String osmValue)
Choose to not parse the given combination of way subtype, e.g. highway=road- Parameters:
osmValue- to use
-
activate
void activate(String... osmWayTypeValues)
Choose to add a given way value to be on top of the defaults, e.g. highway=road- Parameters:
osmWayTypeValues- to activate
-
activate
void activate(List<String> osmWayTypeValues)
Choose to add a given way value to be on top of the defaults, e.g. highway=road- Parameters:
osmWayTypeValues- to activate
-
getActivatedTypes
Map<String,Set<String>> getActivatedTypes()
create a copy of the currently supported way types in set form- Returns:
- set of supported types (by underlying key), any modifications on this set have no impact on the instance internals
-
getDeactivatedTypes
Map<String,Set<String>> getDeactivatedTypes()
create a copy of the currently unsupported way types in set form- Returns:
- deactivated way types (by underlying key), any modifications on this set have no impact on the instance internals
-
deactivateAll
void deactivateAll()
deactivate all types explicitly
-
activateAll
void activateAll()
activate all types explicitly
-
deepClone
OsmInfrastructureConfiguration deepClone()
Deep clone instance- Returns:
- deep clone
-
-