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)
Calculate the automobile speed, in meters per second, for this way.
|
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) |
int |
hashCode() |
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 WayProperties getDataForWay(OSMWithTags way)
public I18NString getCreativeNameForWay(OSMWithTags way)
public float getCarSpeedForWay(OSMWithTags way, boolean back)
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)
Copyright © 2019. All rights reserved.