PyANGKernel.ForestPaths

class ForestPaths

Synopsis

Methods

Virtual methods

Static functions

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

addSPTreeCompressed(path[, _treeId=-1[, iCluster=0[, iIteration=0[, iSlice=0]]]])
Parameters:
  • pathNSPPath

  • _treeId – int

  • iCluster – int

  • iIteration – int

  • iSlice – int

Return type:

bool

clearTree(path)
Parameters:

pathNSPPath

clearTreesForReferenceCentroid(destinationId)
Parameters:

destinationId – int

static correctPaths(forest, paths, targetTotal)
Parameters:
  • forestBaseForest

  • paths – .list of NSPTreeData

  • targetTotal – float

getLoadTreesInMemory()
Return type:

bool

abstractmethod getLocalIteration(intervalIndex, vehicleIndex, originIndex, originCon, destinationIndex, destinationCon)
Parameters:
  • intervalIndex – int

  • vehicleIndex – int

  • originIndex – int

  • originCon – int

  • destinationIndex – int

  • destinationCon – int

Return type:

int

abstractmethod getNBAssignmentIntervals()
Return type:

int

getNumberOfIterations(interval)
Parameters:

interval – int

Return type:

int

abstractmethod getPaths(intervalIndex, vehicleIndex, originIndex, originCon, destinationIndex, destinationCon, filterPaths[, nrPaths=-1])
Parameters:
  • intervalIndex – int

  • vehicleIndex – int

  • originIndex – int

  • originCon – int

  • destinationIndex – int

  • destinationCon – int

  • filterPaths – .std.vectorNSPTreeData.PathType

  • nrPaths – int

Return type:

.list of NSPTreeData

abstractmethod getTrees(intervalIndex, vehicleIndex, destinationIndex, destinationCon)
Parameters:
  • intervalIndex – int

  • vehicleIndex – int

  • destinationIndex – int

  • destinationCon – int

Return type:

.std.vectorNSPPath

getTreesForReferenceCentroid(centroidIndex)
Parameters:

centroidIndex – int

Return type:

.std.vectorNSPPath

joinIdenticalPaths(paths, iUserIndex)
Parameters:
  • paths – .list of NSPTreeData

  • iUserIndex – int

static limitPaths(forest, paths, k)
Parameters:
  • forestBaseForest

  • paths – .list of NSPTreeData

  • k – int

prepareTree(path)
Parameters:

pathNSPPath

prepareTreesForReferenceCentroid(centroidId)
Parameters:

centroidId – int

restore(stream, tempstream)
Parameters:
setLoadTreesInMemory(iValue)
Parameters:

iValue – bool

sortPaths(paths)
Parameters:

paths – .list of NSPTreeData

store(stream)
Parameters:

streamQDataStream

Return type:

bool