PyANGKernel.GKControllerDetector

class GKControllerDetector

Information associated with a detector used in a controller ( GKController )

Inherited by: OCITControllerDetector, GKSCOOTControllerDetector, GKSCATSRMSControllerDetector, GKSCATSControllerDetector

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__()
addLine(line)
Parameters:

lineGKPublicLine

Add a line that can be detected by this detector

clearLines()

Removes all the associated lines with this detector

getDetector()
Return type:

GKObject

getId()
Return type:

int

The ID of the controller detector in the external controller

getLines()
Return type:

.list of GKPublicLine

Returns all the lines detected by this detector

removeLine(line)
Parameters:

lineGKPublicLine

Removes a detected line from this detector

setDetector(detector)
Parameters:

detectorGKObject

setId(aid)
Parameters:

aid – int

The ID of the controller detector in the external controller

uses(line)
Parameters:

lineGKPublicLine

Return type:

bool

Returns true if the detector can detect vehicles in this transit line