PyANGKernel.GKPTZonePlan

class GKPTZonePlan

Inheritance diagram of PyANGKernel.GKPTZonePlan

Synopsis

Methods

Virtual 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__()
abstractmethod activate()
addZone(iZone[, keepPolygon=false])
Parameters:
  • iZoneGKPTZone

  • keepPolygon – bool

addZone(iZone, fromFares, toFares[, keepPolygon=false])
Parameters:
  • iZoneGKPTZone

  • fromFares – Dictionary with keys of type .GKPTZone and values of type double.

  • toFares – Dictionary with keys of type .GKPTZone and values of type double.

  • keepPolygon – bool

contains(iGKPTZone)
Parameters:

iGKPTZoneGKPTZone

Return type:

bool

abstractmethod deactivate()
getFare(from, to)
Parameters:
Return type:

float

getFare(from, to)
Parameters:
  • from – int

  • to – int

Return type:

float

getFaresToVector()
Return type:

.list of list of double

abstractmethod isActive()
Return type:

bool

refreshPolygons()
removeZone(iZone)
Parameters:

iZoneGKPTZone

setFare(from, to, fare)
Parameters:
setFare(from, to, fare)
Parameters:
  • from – int

  • to – int

  • fare – float

setFaresFromVector(iVector)
Parameters:

iVector – .list of list of double

setZones(iZones)
Parameters:

iZones – .list of GKPTZone

updatePolygons()
zones()
Return type:

.list of GKPTZone