public class WayPropertySet extends Object
Modifier and Type | Field and Description |
---|---|
WayPropertySetSource |
base |
WayProperties |
defaultProperties
The WayProperties applied to all ways that do not match any WayPropertyPicker.
|
Float |
defaultSpeed
The automobile speed for street segments that do not match any SpeedPicker.
|
Constructor and Description |
---|
WayPropertySet() |
Modifier and Type | Method and Description |
---|---|
void |
addCreativeNamer(OSMSpecifier spec,
CreativeNamer namer) |
void |
addNote(OSMSpecifier osmSpecifier,
NoteProperties properties) |
void |
addProperties(OSMSpecifier spec,
WayProperties properties) |
void |
addProperties(OSMSpecifier spec,
WayProperties properties,
boolean mixin) |
void |
addSpeedPicker(SpeedPicker picker) |
void |
createNames(String spec,
String patternKey) |
void |
createNotes(String spec,
String patternKey,
NoteMatcher matcher) |
boolean |
equals(Object o) |
float |
getCarSpeedForWay(OSMWithTags way,
boolean back)
Get the automobile speed, in meters per second, for this way.
|
HashMap<String,Float> |
getCarSpeedLookup()
Returns the current car speed lookup hashmap.
|
I18NString |
getCreativeNameForWay(OSMWithTags way) |
WayProperties |
getDataForWay(OSMWithTags way)
Applies the WayProperties whose OSMPicker best matches this way.
|
Float |
getMetersSecondFromSpeed(String speed) |
Set<T2<Alert,NoteMatcher>> |
getNoteForWay(OSMWithTags way) |
boolean |
getSlopeOverride(OSMWithTags way) |
HashMap<String,WayProperties> |
getWayPropertyLookup()
Returns the current way property lookup hashmap.
|
int |
hashCode() |
void |
index()
Initializes lookups and indexes for quick lookup of applicable values for way properties and car speeds.
|
boolean |
isSuitableForStreetParking(OSMWay way) |
boolean |
isSuitableForTNCStop(OSMWay way) |
void |
setCarSpeed(String spec,
float speed) |
void |
setProperties(String spec,
StreetTraversalPermission permission) |
void |
setProperties(String spec,
StreetTraversalPermission permission,
double safety,
double safetyBack)
Note that the safeties here will be adjusted such that the safest street
has a safety value of 1, with all others scaled proportionately.
|
void |
setProperties(String spec,
StreetTraversalPermission permission,
double safety,
double safetyBack,
boolean mixin) |
void |
setSlopeOverride(OSMSpecifier spec,
boolean override) |
public Float defaultSpeed
public WayProperties defaultProperties
public WayPropertySetSource base
public void index()
public WayProperties getDataForWay(OSMWithTags way)
public HashMap<String,WayProperties> getWayPropertyLookup()
public I18NString getCreativeNameForWay(OSMWithTags way)
public float getCarSpeedForWay(OSMWithTags way, boolean back)
public HashMap<String,Float> getCarSpeedLookup()
public Set<T2<Alert,NoteMatcher>> getNoteForWay(OSMWithTags way)
public boolean getSlopeOverride(OSMWithTags way)
public void addProperties(OSMSpecifier spec, WayProperties properties, boolean mixin)
public void addProperties(OSMSpecifier spec, WayProperties properties)
public void addCreativeNamer(OSMSpecifier spec, CreativeNamer namer)
public void addNote(OSMSpecifier osmSpecifier, NoteProperties properties)
public void setSlopeOverride(OSMSpecifier spec, boolean override)
public void addSpeedPicker(SpeedPicker picker)
public void createNotes(String spec, String patternKey, NoteMatcher matcher)
public void setProperties(String spec, StreetTraversalPermission permission)
public void setProperties(String spec, StreetTraversalPermission permission, double safety, double safetyBack)
public void setProperties(String spec, StreetTraversalPermission permission, double safety, double safetyBack, boolean mixin)
public void setCarSpeed(String spec, float speed)
public boolean isSuitableForTNCStop(OSMWay way)
public boolean isSuitableForStreetParking(OSMWay way)
Copyright © 2020. All rights reserved.