PyMacroPTPlugin.PTSection

class PTSection

The PTSection class

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__(iPTSection, id, ptLine, iModelConnection)
Parameters:
evaluatePTDelayTime(context, line)
Parameters:
  • contextGKFunctionCostContext

  • linePTLine

Return type:

float

evaluatePTDelayTimeComponent(context, line, component)
Parameters:
Return type:

float

evaluatePTFare(context, line)
Parameters:
  • contextGKFunctionCostContext

  • linePTLine

Return type:

float

evaluatePTFareComponent(context, line, component)
Parameters:
Return type:

float

getDestination()
Return type:

PTStop

getDistance()
Return type:

float

getLinePT()
Return type:

PTLine

getMacroId()
Return type:

int

getOrigin()
Return type:

PTStop

getRoute()
Return type:

.list of GKSection

getSpeed()
Return type:

float

setDestinationStop(destination)
Parameters:

destinationPTStop

setOriginStop(origin)
Parameters:

originPTStop