PyANGKernel.GKControllerDetector¶
- class GKControllerDetector¶
Information associated with a detector used in a controller (
GKController)Inherited by:
OCITControllerDetector,GKSCOOTControllerDetector,GKSCATSRMSControllerDetector,GKSCATSControllerDetectorSynopsis¶
Methods¶
def
__init__()def
getDetector()def
getId()def
getLines()def
setDetector()def
setId()def
uses()
Virtual methods¶
def
addLine()def
clearLines()def
removeLine()
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:
line –
GKPublicLine
Add a line that can be detected by this detector
- clearLines()¶
Removes all the associated lines with this detector
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:
line –
GKPublicLine
Removes a detected line from this detector
- setId(aid)¶
- Parameters:
aid – int
The ID of the controller detector in the external controller
- uses(line)¶
- Parameters:
line –
GKPublicLine- Return type:
Returns true if the detector can detect vehicles in this transit line