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) |
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 |
setBase(WayPropertySetSource base) |
void |
setSlopeOverride(OSMSpecifier spec,
boolean override) |
public Float defaultSpeed
public WayProperties defaultProperties
public WayPropertySetSource base
public void setBase(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)
Copyright © 2016. All rights reserved.