PyMacroPTPlugin.PTForest

class PTForest

The PTForest class

Synopsis

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

PyMacroPTPlugin.PTForest.PTForest__Version
PyMacroPTPlugin.PTForest.PTForest__MinVersion
__init__()
acceptVisitor(visitor)
Parameters:

visitorForestVisitor

addAlphas(iAlphas)
Parameters:

iAlphas – .std.vectordouble

getBusStops(iModel)
Parameters:

iModelGKModel

Return type:

.list of GKBusStop

getCentroidConfigurations(iModel)
Parameters:

iModelGKModel

Return type:

.list of GKCentroidConfiguration

getCostComponents()
Return type:

.std.vectorstd.pairqint32,QString

getDestinationCentroidId(iCentroidPos)
Parameters:

iCentroidPos – int

Return type:

int

getDestinationCentroidPos(iCentroidId)
Parameters:

iCentroidId – int

Return type:

int

getDestinationCentroids()
Return type:

.list of qint32

getInterval()
Return type:

.std.pairQDateTime,QDateTime

getLines()
Return type:

.list of qint32

Parameters:

iLinkPos – int

Return type:

PTTreeLink

getOriginCentroidId(iCentroidPos)
Parameters:

iCentroidPos – int

Return type:

int

getOriginCentroidPos(iCentroidId)
Parameters:

iCentroidId – int

Return type:

int

getOriginCentroids()
Return type:

.list of qint32

getUserId(iUserPos)
Parameters:

iUserPos – int

Return type:

int

getUserPos(iUserId)
Parameters:

iUserId – int

Return type:

int

getUsers()
Return type:

.list of qint32

getWaitingTime(userIndex, iHyperLinkId)
Parameters:
  • userIndex – int

  • iHyperLinkId – int

Return type:

float

getWaitingTimeCostComponent(userIndex, iHyperLinkId, componentIndex)
Parameters:
  • userIndex – int

  • iHyperLinkId – int

  • componentIndex – int

Return type:

float

initWaitingTimeCostComponents(numOfHyperLinks)
Parameters:

numOfHyperLinks – int

postRestore()
static readFile(filename, model)
Parameters:
  • filename – str

  • modelGKModel

Return type:

PTForest

setCostComponents(components)
Parameters:

components – .std.vectorGKFunctionComponent

setInterval(iInterval)
Parameters:

iInterval – .std.pairQDateTime,QDateTime

sortTrips()
store(stream)
Parameters:

streamQDataStream

writeFile(filename, model)
Parameters:
  • filename – str

  • modelGKModel

Return type:

bool