PyANGKernel.GKDetector

class GKDetector

A detector device (loop detector, camera…) characterized by its detection capabilities

Details

We can understand GKDetector as a set of characteristics that define the capabilities of a detection device. You can query this object in order to know things about the detector or modify them in order to obtain the desired behavior.

Inheritance diagram of PyANGKernel.GKDetector

Inherited by: GKDetectorStation

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

__init__()
getCoverage()
Return type:

float

Gets the percentage of coverage of the section at the current position

getExtendedLength()
Return type:

float

getNumberOfLanes()
Return type:

int

Gets the number of Lanes this detector covers

getPositionFromEnd()
Return type:

float

Gets the detector position from the section end. The section object provides the position from the beginning of the section. This column is calculated automatically from that position and the section 2D length.

getPositionOffset()
Return type:

float

Gets the offset from the actual position of the detector (e.g. to make it work as if it was after the stop line). Value returned in meters.

getUsedInControlPlan()
Return type:

bool

setExtendedLength(value)
Parameters:

value – float

setPositionFromEnd(aValue)
Parameters:

aValue – float

Sets the detector position from the section end. The section object provides the position from the beginning of the section. This column is calculated automatically from that position and the section 2D length.

setPositionOffset(value)
Parameters:

value – float

Sets an offset to the actual position of the detector (e.g. to make it work as if it was after the stop line). Value in meters.

setUsedInControlPlan(used)
Parameters:

used – bool