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

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:

otherGKScheduleMasterControlPlanItem

fromString()
Return type:

str

Returns the starting time in a string format

getControlPlan()
Return type:

GKControlPlan

Returns the associated control plan

getDuration()
Return type:

int

Returns the duration in seconds

getFrom()
Return type:

int

Returns the starting time in seconds

getZone()
Return type:

int

Returns the zone where it is applied (from 1 to N)

__eq__(item)
Parameters:

itemGKScheduleMasterControlPlanItem

Return type:

bool

Returns true if both items have the same control plan, starting time and duration

setControlPlan(aplan)
Parameters:

aplanGKControlPlan

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)