PyANGKernel.GKScheduleMasterControlPlanItem¶
- class GKScheduleMasterControlPlanItem¶
A control plan in a master control plan.
Details
It tells to the simulator when it will start, the duration and the zone. Zone attribute helps to redefine a junction subset control plan or all junctions control plans. So the Master Control Plan will search for each signalized junction which is the control plan that holds not an Unspecified schedule. It searches from zone 1 to zone N, so the last not Unspecified schedule found will be applied.
Synopsis¶
Methods¶
def
__init__()def
fromString()def
getControlPlan()def
getDuration()def
getFrom()def
getZone()def
__eq__()def
setControlPlan()def
setDuration()def
setFrom()def
setZone()
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__()¶
- __init__(other)
- Parameters:
other –
GKScheduleMasterControlPlanItem
Returns the starting time in a string format
- getControlPlan()¶
- Return type:
Returns the associated control plan
Returns the duration in seconds
Returns the starting time in seconds
Returns the zone where it is applied (from 1 to N)
- __eq__(item)¶
- Parameters:
- Return type:
Returns true if both items have the same control plan, starting time and duration
- setControlPlan(aplan)¶
- Parameters:
aplan –
GKControlPlan
Sets the associated control plan
- setDuration(seconds)¶
- Parameters:
seconds – int
Sets the duration in seconds
- setFrom(seconds)¶
- Parameters:
seconds – int
Sets the starting time in seconds
- setZone(azone)¶
- Parameters:
azone – int
Sets the zone where it will be applied (from 1 to N)