PyANGKernel.GKPublicLineTimeTableScheduleDeparture

class GKPublicLineTimeTableScheduleDeparture

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

Information about departures by a vehicle in a schedule in a transit line.

The departures can be either at a fixed time or at an interval.

See GKPublicLineTimeTable for more information on how to create these objects.

__init__()
__init__(copy)
Parameters:

copyGKPublicLineTimeTableScheduleDeparture

getDepartureTime()
Return type:

QTime

Returns the departure time for fixed-typed departures.

getDeviationTime()
Return type:

GKTimeDuration

Deviation on the mean time for interval-typed departures or on the departure time for fixed-typed departures.

getInitialLoad()
Return type:

int

Returns the initial vehicle load mean. It is only taken into account when modelling pedestrians.

getInitialLoadDeviation()
Return type:

int

Returns the initial vehicle load deviation. It is only taken into account when modelling pedestrians.

getLinkDelayTime()
Return type:

GKTimeDuration

Returns the delay time of a linked departure.

getLinkLine()
Return type:

GKPublicLine

Returns the line this line departure is linked with, if any.

getMeanTime()
Return type:

GKTimeDuration

Returns the mean time for interval-typed departures.

getVehicle()
Return type:

GKVehicle

Returns the vehicle type to be generated.

isFirstVehicleLinked()
Return type:

bool

Gets whether the first vehicle of a linked departure will wait for the linked line vehicle to arrive or not (in this case it will be generated as it was not linked).

setDepartureTime(atime)
Parameters:

atimeQTime

Sets the departure time for fixed-typed departures.

setDeviationTime(atime)
Parameters:

atimeGKTimeDuration

Deviation on the mean time for interval-typed departures or on the departure time for fixed-typed departures.

setFirstVehicleLinked(linkFirstVeh)
Parameters:

linkFirstVeh – bool

Sets the first vehicle of a linked departure to wait for the linked line vehicle to arrive or not (in this case it will be generated as it was not linked).

setInitialLoad(mean)
Parameters:

mean – int

Sets the initial vehicle load mean. It is only taken into account when modelling pedestrians.

setInitialLoadDeviation(dev)
Parameters:

dev – int

Sets the initial vehicle load deviation. It is only taken into account when modelling pedestrians.

setLinkDelayTime(ldt)
Parameters:

ldtGKTimeDuration

Sets the delay time of a linked departure.

setLinkLine(line)
Parameters:

lineGKPublicLine

Sets the line this line departure is linked with.

setMeanTime(atime)
Parameters:

atimeGKTimeDuration

Sets the mean time for interval-typed departures.

setVehicle(veh)
Parameters:

vehGKVehicle

Sets the vehicle type to be generated.