PyANGKernel.GKBusStop

class GKBusStop

A stop for a transit line.

Details

A bus stop is a place where transit stops. Note that any kind of transit vehicle can use the bus stop and not only buses (as trams or trains).

It is over a section in one of its lanes. It also hold the following information: - Type of stop:

-Normal: The bus will stop in the lane where the bus stop is placed, blocking the traffic. Only one bus can be stopped at the same time in this stop. - Bus Bay: The bus will stop outside the section, non blocking the traffic. Only one bus can be stopped at the same time in this stop. - Bus Terminal: The bus will stop outside the section, non blocking the traffic. Up to N buses can stop simultaneously in this bus stop, where N is the capacity of the bus stop.

  • Capacity: used when is a terminal bus stop. - Distance to stop: The Distance to Stop parameter governs the lane-changing behavior with respect to the Bus Stop. When the distance from the bus to the next stop is lower than Distance to Stop, the bus behaves as normal vehicles do in zone 3, it means that they are forced to reach the appropriate stopping lane. - Lines: Transit lines that uses this stop.

Inheritance diagram of PyANGKernel.GKBusStop

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

class GKBusStopType
__init__()
getBoardingCostFunction()
Return type:

GKFunctionCost

Get the Boarding Cost Function for the Transit Assignment

getCapacity()
Return type:

int

getClosestPoints()
Return type:

GKPoints

returns the closest waiting area edge to the transit stop

getFullFit()
Return type:

bool

getLines()
Return type:

.list of GKPublicLine

Returns the lines that serve this stop.

getStopArea()
Return type:

GKPoints

Returns the area (bay) where the bus stops.

getStopType()
Return type:

GKBusStopType

getStoppedVehiclesMoveToFront()
Return type:

bool

getVisibilityDistance()
Return type:

float

getWaitingArea([rebuild=false])
Parameters:

rebuild – bool

Return type:

GKPoints

returns the waiting area (if rebuild is true, it regenerates a default waiting area)

getWaitingTimeFunction()
Return type:

GKFunctionCost

Get the Waiting Time Function for the Transit Assignment

getWaitingTimeOverrides()
Return type:

Dictionary with keys of type .GKPublicLine and values of type GKFunctionCost.

Get the waitingTimeOverrides

getWalkingTime()
Return type:

GKWalkingTime

Returns the GKWalkingTime of this stop.

isShowingWaitingArea()
Return type:

bool

returns whether the waiting area is visible or not. It’s only visible when the stop is inside a pedestrian area

setBoardingCostFunction(iFunction)
Parameters:

iFunctionGKFunctionCost

Set the Boarding Cost Function for the Transit Assignment

setCapacity(value)
Parameters:

value – int

setFullFit(value)
Parameters:

value – bool

setStopType(type)
Parameters:

typeGKBusStopType

* Sets stopTypeAtt to the type passed as parameter and performs some changes * if needed depending on the new type (p.e. change lanes)

setStoppedVehiclesMoveToFront(value)
Parameters:

value – bool

setVisibilityDistance(value)
Parameters:

value – float

setWaitingArea(points)
Parameters:

pointsGKPoints

Sets the waiting area geometry

setWaitingTimeFunction(iFunction)
Parameters:

iFunctionGKFunctionCost

Set the Waiting Time Function for the Transit Assignment

setWaitingTimeOverrides(iWaitingTimes)
Parameters:

iWaitingTimes – Dictionary with keys of type .GKPublicLine and values of type GKFunctionCost.

Set the waiting time overrides

setWalkingTime(w)
Parameters:

wGKWalkingTime