PyANGKernel.GKControlGreenMetering¶
- class GKControlGreenMetering¶
Control plan information for a green ramp meter
Details
Settings used in a control plan for a green ramp meter.
Inherited by:
GKControlGreenMeteringByLaneSynopsis¶
Methods¶
def
__init__()def
getCycle()def
getGreen()def
getMaxGreen()def
getMinGreen()def
getOffset()def
getYellowTime()def
setCycle()def
setGreen()def
setMaxGreen()def
setMinGreen()def
setOffset()def
setYellowTime()
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 cycle (in seconds).
Gets if the ramp meter will flash on green or not.
Gets the green time (in seconds).
Gets the maximum green time (in seconds).
Gets the minimum green time (in seconds).
Gets the offset (in seconds).
Gets the red percentage of the yellow time.
Gets the yellow time (in seconds).
- setCycle(c)¶
- Parameters:
c – float
Sets the cycle (in seconds).
- setFlashInGreen(value)¶
- Parameters:
value – bool
Sets whether to flash in green or not.
- setGreen(g)¶
- Parameters:
g – float
Sets the green time (in seconds).
- setMaxGreen(maxG)¶
- Parameters:
maxG – float
Sets the maximum green time (in seconds).
- setMinGreen(minG)¶
- Parameters:
minG – float
Sets the minimum green time (in seconds).
- setOffset(o)¶
- Parameters:
o – float
Sets the offset (in seconds).
- setRedPercentageInYellowTime(percentage)¶
- Parameters:
percentage – int
Sets the red percentage (in the range from 0 to 100) of the yellow time.
- setYellowTime(o)¶
- Parameters:
o – float
Sets the yellow time (in seconds).