PyANGKernel.ForestShortestPathCalculator

class ForestShortestPathCalculator

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

__init__(iForest)
Parameters:

iForestBaseForest

calculate()
calculateForDestination(iUserIndex, iDestinationIndex)
Parameters:
  • iUserIndex – int

  • iDestinationIndex – int

calculateForUserclass(iUserIndex)
Parameters:

iUserIndex – int

calculateKShortestPaths(k, iUserIndex, iOriginId, iDestinationId[, iMaxDeviation=-1.0])
Parameters:
  • k – int

  • iUserIndex – int

  • iOriginId – int

  • iDestinationId – int

  • iMaxDeviation – float

getPath(iUserClass, iOrigin, iDestination)
Parameters:
Return type:

NSPTreeData

getPath(iUserIndex, iOriginIndex, iDestinationIndex, ioValidPath)
Parameters:
  • iUserIndex – int

  • iOriginIndex – int

  • iDestinationIndex – int

  • ioValidPath – bool

Return type:

NSPTreeData

getRoute(iUserClass, iOrigin, iDestination)
Parameters:
Return type:

GKODRoute