PyANGKernel.GKPublicLinePlan

class GKPublicLinePlan

Inheritance diagram of PyANGKernel.GKPublicLinePlan

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

Detailed Description

A transit plan is used by the simulator to know what lines will be simulated and with what schedules.

Transit line plans are contained in a folder. The internal name of the transit plans folder is: “GKModel::publicPlans”. The external name is “Transit Plans”.

__init__()
addTimeTable(tt)
Parameters:

ttGKPublicLineTimeTable

Adds a timetable to the Transit plan.

getNbPTLines()
Return type:

int

Returns the number of Transit Lines on this plan.

getOrderedTimeTables(iLine)
Parameters:

iLineGKPublicLine

Return type:

.std.vectorstd.pairstd.pairQTime,GKTimeDuration,GKPublicLineTimeTable

getProblemNet()
Return type:

GKProblemNet

Returns the Subnetwork this transit plan belongs to

getPublicLines()
Return type:

.QSetconst GKPublicLine

Returns the Transit Lines on this plan.

getPublicLinesSortered()
Return type:

.std.vectorconst GKPublicLine

Returns the Transit Lines on this plan ordered by increasing ID.

getTimeTables()
Return type:

.list of GKPublicLineTimeTable

Returns a vector with all the timetables in the transit plan.

getTotalNumberOfVehicles(iLine, iStart, iEnd)
Parameters:
Return type:

Dictionary with keys of type .const GKVehicle and values of type double.

Get total number of vehicles.

getUsedVehicles()
Return type:

.list of GKVehicle

Returns a list of the vehicles used in this transit plan.

getUsedVehicles(ptline)
Parameters:

ptlineGKPublicLine

Return type:

.list of GKVehicle

Returns the list of vehicles used by the ptline. It can return an empty vector

isEmpty()
Return type:

bool

Returns true if no item is contained in the transit plan.

removeTimeTable(tt)
Parameters:

ttGKPublicLineTimeTable

Removes the specified timetable from the list of timetables of the transit plan. The timetable itself is not deleted.

removeTimeTables()

Removes all the timetables from the list of timetables of the transit plan. The timetables themselves are not deleted.

setProblemNet(aProblemNet)
Parameters:

aProblemNetGKProblemNet

Sets the Subnetwork this transit plan belongs to

uses(publicLine)
Parameters:

publicLineGKPublicLine

Return type:

bool

Returns true if this plan uses any timetable of the specified line.

usesTimeTable(timeTable)
Parameters:

timeTableGKPublicLineTimeTable

Return type:

bool

Returns true if this plan uses the specified timetable.