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.
Synopsis¶
Methods¶
def
__init__()def
getCapacity()def
getFullFit()def
getLines()def
getStopArea()def
getStopType()def
getWaitingArea()def
getWalkingTime()def
setCapacity()def
setFullFit()def
setStopType()def
setWaitingArea()def
setWalkingTime()
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:
Get the Boarding Cost Function for the Transit Assignment
returns the closest waiting area edge to the transit stop
- getLines()¶
- Return type:
.list of GKPublicLine
Returns the lines that serve this stop.
Returns the area (bay) where the bus stops.
- getStopType()¶
- Return type:
returns the waiting area (if rebuild is true, it regenerates a default waiting area)
- getWaitingTimeFunction()¶
- Return type:
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:
Returns the
GKWalkingTimeof this stop.returns whether the waiting area is visible or not. It’s only visible when the stop is inside a pedestrian area
- setBoardingCostFunction(iFunction)¶
- Parameters:
iFunction –
GKFunctionCost
Set the Boarding Cost Function for the Transit Assignment
- setCapacity(value)¶
- Parameters:
value – int
- setFullFit(value)¶
- Parameters:
value – bool
- setStopType(type)¶
- Parameters:
type –
GKBusStopType
* 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
Sets the waiting area geometry
- setWaitingTimeFunction(iFunction)¶
- Parameters:
iFunction –
GKFunctionCost
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:
w –
GKWalkingTime