abstract class TiledEdgePropertyMap[T, U] extends PropertyMap[Edge, U]

A PropertyMap[Edge, T] that retrieves edge attribute values from multiple EdgePropertyTiles.

For a given edge, TiledEdgePropertyMap first uses tileById to retrieve the propertyTile that has the same tile ID as the Edge source Vertex. Then, TiledEdgePropertyMap retrieves the attribute value from this EdgePropertyTile by calling propertyTile.values(edge.index.value).

If, for a given tile ID, the mapping function returns an EdgePropertyTile that has a different tile ID, apply throws a RuntimeException.

Linear Supertypes
PropertyMap[Edge, U], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TiledEdgePropertyMap
  2. PropertyMap
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TiledEdgePropertyMap(tileById: (TileId) ⇒ Option[EdgePropertyTile[T]])

    tileById

    Used to retrieve a data tile by its ID, if it exists

Abstract Value Members

  1. abstract def transform(value: T): U

    Converts the value of a property from its representation inside the underlying EdgePropertyTile to the form that will be returned to the user.

    Converts the value of a property from its representation inside the underlying EdgePropertyTile to the form that will be returned to the user.

    This transformation will be applied every time a value is retrieved and its results will not be cached. For this reason, this method should be as fast as possible.

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(edge: Edge): U

    Retrieves the property value associated with a particular key.

    Retrieves the property value associated with a particular key.

    Definition Classes
    TiledEdgePropertyMapPropertyMap
    Exceptions thrown

    java.util.NoSuchElementException if the key is not found

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. def contains(edge: Edge): 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 for key, false otherwise

    Definition Classes
    TiledEdgePropertyMapPropertyMap
  8. def default(edge: Edge): U

    Specifies how to handle missing tiles.

    Specifies how to handle missing tiles.

    If tileById returns None for a specific tile ID, the tile is missing, which means that there is no data available.

    This method lets you tune how this is interpreted.

    The default implementation is to throw NoSuchElementException, meaning that trying to access the data of such a tile is an error.

    For some properties the missing tile should be interpreted as if all values in the tile are the same default value, depending on the semantics of the property. For example, a missing tile that describes permitted turns for a given edge, might mean that all turns are permitted for all vehicle types. In that case, override this method to provide that default value.

    Attributes
    protected
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from PropertyMap[Edge, U]

Inherited from AnyRef

Inherited from Any

Ungrouped