Class FormOfWayRangeBasedPropertyMap
java.lang.Object
com.here.platform.location.referencing.olr.javadsl.FormOfWayRangeBasedPropertyMap
- All Implemented Interfaces:
PropertyMap<Vertex,,List<RangeBasedProperty<FormOfWay>>> RangeBasedPropertyMap<Vertex,FormOfWay>
public class FormOfWayRangeBasedPropertyMap
extends Object
implements RangeBasedPropertyMap<Vertex,FormOfWay>
A
RangeBasedPropertyMap that returns the Form of Way for
a Vertex.
The Form of Way represents the physical road type of line.
The calculation is based on the following Vertex attributes: - physicalAttributes - roadUsages - roadAccesses - specialCategories
-
Constructor Summary
ConstructorsConstructorDescriptionFormOfWayRangeBasedPropertyMap(RangeBasedPropertyMap<Vertex, PhysicalAttribute> physicalAttributes, RangeBasedPropertyMap<Vertex, RoadUsage> roadUsages, RangeBasedPropertyMap<Vertex, RoadAccessType> roadAccesses, RangeBasedPropertyMap<Vertex, SpecialTrafficAreaCategory> specialCategories) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Vertex key) Tests whether this PropertyMap contains a value for a particular key.Look up all range-based properties for a givenkey.Look up the range-based property for a givenkeyandoffset.
-
Constructor Details
-
FormOfWayRangeBasedPropertyMap
public FormOfWayRangeBasedPropertyMap(RangeBasedPropertyMap<Vertex, PhysicalAttribute> physicalAttributes, RangeBasedPropertyMap<Vertex, RoadUsage> roadUsages, RangeBasedPropertyMap<Vertex, RoadAccessType> roadAccesses, RangeBasedPropertyMap<Vertex, SpecialTrafficAreaCategory> specialCategories)
-
-
Method Details
-
containsKey
Tests whether this PropertyMap contains a value for a particular key.- Specified by:
containsKeyin interfacePropertyMap<Vertex,List<RangeBasedProperty<FormOfWay>>> - Returns:
trueif this PropertyMap contains a value forkey,falseotherwise
-
get
Look up all range-based properties for a givenkey.- Specified by:
getin interfacePropertyMap<Vertex,List<RangeBasedProperty<FormOfWay>>> - Specified by:
getin interfaceRangeBasedPropertyMap<Vertex,FormOfWay> - Returns:
- The sequence of non-overlapping range-based properties, in ascending order by start offset, then end offset
- Note:
- Consecutive calls with the same arguments must return the ranges in the same order, Two ranges r1 and r2 are non-overlapping iff
r1.start >= r2.end || r1.end <= r2.start
-
get
Description copied from interface:RangeBasedPropertyMapLook up the range-based property for a givenkeyandoffset.The last range containing the
offsetis returned. So when the end offset O of the range R1 equals the start offset of the range R2 (the ranges are adjacent to each other), get(key, O) returns R2.- Specified by:
getin interfaceRangeBasedPropertyMap<Vertex,FormOfWay>
-