documentationfor yFiles for HTML 2.6

PathSearchExtension

Extensions are added to a PathSearch to influence the search process.

Inheritance Hierarchy
PathSearchExtension

Remarks

An extension contains several callback methods that are used by the PathSearch to, e.g., calculate the costs for the next possible steps (i.e., entering the next partition cell) and to decide when the target is reached.

The PathSearch uses the callbacks in the following order:

  1. initialize
  2. initializeEdges
  3. initializeCurrentEdge
  4. initializeCurrentPathRequest
  5. appendStartEntrances
  6. calculateStartEntranceCost
  7. calculateCosts
  8. calculateHeuristicCosts
  9. isValidTargetEntrance
  10. finalizePath or cancelCurrentPathRequest
  11. finalizeCurrentEdge or cancelCurrentEdge
  12. finalizeEdges
  13. finalizePathSearchResult
  14. cleanUp

Type Details

yfiles module
router-polyline
yfiles-umd modules
layout-area, layout-multipage, layout-orthogonal-compact, layout, router-bus, router-polyline
Legacy UMD name
yfiles.router.PathSearchExtension

See Also

Constructors

Properties

Methods