PyANGKernel.GKControlGreenMetering

class GKControlGreenMetering

Control plan information for a green ramp meter

Details

Settings used in a control plan for a green ramp meter.

Inheritance diagram of PyANGKernel.GKControlGreenMetering

Inherited by: GKControlGreenMeteringByLane

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__()
getCycle()
Return type:

float

Gets the cycle (in seconds).

getFlashInGreen()
Return type:

bool

Gets if the ramp meter will flash on green or not.

getGreen()
Return type:

float

Gets the green time (in seconds).

getMaxGreen()
Return type:

float

Gets the maximum green time (in seconds).

getMinGreen()
Return type:

float

Gets the minimum green time (in seconds).

getOffset()
Return type:

float

Gets the offset (in seconds).

getRedPercentageInYellowTime()
Return type:

int

Gets the red percentage of the yellow time.

getYellowTime()
Return type:

float

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).