PyANGKernel.GKControlDetector¶
- class GKControlDetector¶
Detector information in an actuated control plan
Details
Information associated with a detector used in an actuated control plan. These detectors are normally installed in some or all of the approaches to the intersection.
Synopsis¶
Methods¶
def
__init__()def
getCallDelay()def
getDetector()def
getLocking()def
setCallDelay()def
setDetector()def
setLocking()
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__()¶
Gets the amount of time that the detector delays its call following a vehicle actuation.
Returns the amount of time that the detector extends the call.
- getDetector()¶
- Return type:
The physical detector. The object is not adopted as it can be shared by other control detectors in other control plans.
Returns true if the detector has been defined as locking and false if it has been defined as no-locking. The Locking mode retains the number of vehicle actuations until the appropriate phase receives the green interval. The Non-Locking mode retains calls only while vehicles are in the zone of detection.
Returns whether the detector call is used to activate the phase when the phase is not active (true). When it is false and the phase is not active the detector call is not taken into account
Returns whether the detector call is used to extend the green time of the phase when the phase is active (true). When it is false and the phase is already active the detector call is not taken into account
- setCallDelay(adelay)¶
- Parameters:
adelay – float
Sets the amount of time that the detector delays its call following a vehicle actuation. This is used in non-locking mode when the desired effect is to produce a signal as if the detector was in a position closer to the stop line.
- setCallExtension(aextension)¶
- Parameters:
aextension – float
Sets the amount of time that the detector extends the call. This is particularly useful for very short-call detectors. This is used in non-locking mode with those narrow detectors for which the desired effect is to produce a presence signal as if they were longer.
- setDetector(arg__1)¶
- Parameters:
arg__1 –
GKDetector
Sets the physical detector. The object is not adopted as it can be shared by other control detectors in other control plans.
- setLocking(alock)¶
- Parameters:
alock – bool
Sets the detector as locking or non-locking. The Locking mode retains the number of vehicle actuations until the appropriate phase receives the green interval. This detector counts vehicle actuations during the yellow and red time of the phase (to accomplish this, the physical detector (
GKDetector) must have been configured with the count capability), for example for extending the minimum initial green time. This is particularly useful when the detectors are located remotely. The Non-Locking mode retains calls only while vehicles are in the zone of detection (The detector must be configured with presence capability). Non-locking mode is typically used with detectors close to the stop line. For volume-density operation, the locked mode must be selected.- setPhaseActivation(phActivation)¶
- Parameters:
phActivation – bool
Sets the detector call to be used to activate the phase when the phase is not active (true). If false and the phase is not active the detector call will be discarded. By default it is true
- setPhaseExtension(phExtension)¶
- Parameters:
phExtension – bool
Sets the detector call to be used to extend the green time of the phase when the phase is active (true). If false and the phase is already active the detector call will not be considered. By default it is true