trait RangeBasedPropertyMap[K, T] extends PropertyMap[K, Seq[RangeBasedProperty[T]]]
Specialized PropertyMap for properties that potentially apply to only part of a key.
These properties are represented by a series of ranges assigning a value to parts of an element. Each part is defined by a start and an end offset (in the [0.0; 1.0] range).
For example, the speed limits could be represented by a RangeBasedProperty[Vertex, Int]
where
each vertex could be mapped to multiple speed limits. Each range corresponds to a specific speed limit
and defines where it starts and ends.
- Alphabetic
- By Inheritance
- RangeBasedPropertyMap
- PropertyMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
apply(key: K): Seq[RangeBasedProperty[T]]
Look up all range-based properties for a given
key
.Look up all range-based properties for a given
key
.- returns
The sequence of non-overlapping range-based properties, in ascending order by start offset, then end offset
- Definition Classes
- RangeBasedPropertyMap → PropertyMap
- 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
-
abstract
def
contains(key: K): Boolean
Tests whether this PropertyMap contains a value for a particular key.
Tests whether this PropertyMap contains a value for a particular key.
- returns
true
if this PropertyMap contains a value forkey
,false
otherwise
- Definition Classes
- PropertyMap
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(key: K, offset: Double): Option[RangeBasedProperty[T]]
Look up the range-based property for a given
key
andoffset
.Look up the range-based property for a given
key
andoffset
.The last range containing the
offset
is 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), apply(key, O) returns R2. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()