PyANGKernel.GKSectionChange

class GKSectionChange

A base class of all the actions that can be activated in a section

Inheritance diagram of PyANGKernel.GKSectionChange

Inherited by: GKSpeedChange, GKSectionIncident, GKPeriodicSectionIncident, GKSectionBehaviouralParametersChange, GKRoadPricing, GKParkAndRideChange, GKLaneClosingChange, GKForceTurning, GKDisableReservedLaneChange, GKDestinationChange

Synopsis

Methods

Virtual 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

class TargetType
__init__()
adjust()

Ensures offset, length and from/to lanes are valid values in the current section.

getChangeTarget()
Return type:

GKObject

returns the target (a section, group or road type) where the action is associated

getFromLane()
Return type:

int

Returns the first lane in the section (from 0 to number of lanes -1) this change affects to A -1 indicates all lanes will be affected

getFromSegment()
Return type:

int

Returns the first segment in the section (from 0 to number of segments -1) this change affects to. A -1 indicates all segments will be affected

getLength()
Return type:

float

It returns the length of this object in the section’s central line

getLengthAdaptedToLane(lane)
Parameters:

lane – int

Return type:

float

It returns the length of this object in the central line of the desired lane, not in the section’s central line

getOffset()
Return type:

float

It returns the offset of this object from the beginning of the section in the section’s central line. Right now, it only makes sense for incidents

getOffsetAdaptedToLane(lane)
Parameters:

lane – int

Return type:

float

It returns the offset from the beginning of the section but in the central line of the desired lane, not in the section’s central line

getOffsetWithoutPedestrianCrossingAtBeginning()
Return type:

float

It returns the offset of this object from the beginning of the section in the section’s central line without considering the pedestrian crossing at the beginning of the section, if any. Right now, it only makes sense for incidents

getSection()
Return type:

GKSection

OBSOLETE, UnknownCommand getChangeTarget returns the section where the action is associated

getSectionsAffected()
Return type:

.list of GKSection

Returns the section Objects of all the sections affected by this action

getTargetType()
Return type:

TargetType

Type of target

getToLane()
Return type:

int

Returns the last lane in the section (from 0 to number of lanes -1) this change affects to A -1 indicates all lanes will be affected

getToSegment()
Return type:

int

Returns the last segment in the section (from 0 to number of segments -1) this change affects to. A -1 indicates all segments will be affected

getTurnsAffected()
Return type:

.list of const GKTurning

Returns the turns affected by this action

getTurnsAffectedByID()
Return type:

.list of int

Returns the IDs of the turns affected by this action

setChangeTarget(asection)
Parameters:

asectionGKObject

sets the target (a section, group or road type) where the action is associated

setFromLane(value)
Parameters:

value – int

Sets the first lane in the section (from 0 to number of lanes -1) this change affects to. A -1 indicates all lanes will be affected

setFromSegment(value)
Parameters:

value – int

Sets the first segment in the section (from 0 to number of segments -1) this change affects to. A -1 indicates all segments will be affected

setLength(l)
Parameters:

l – float

Sets the length of this change in the section’s center line

setOffset(o)
Parameters:

o – float

Sets the offset from the beginning of the section to the start point where this change will be located in the section’s center line. Right now, it only makes sense for incidents

setSection(asection)
Parameters:

asectionGKSection

OBSOLETE, UnknownCommand setChangeTarget sets the section where the action is associated

setTargetType(targetType)
Parameters:

targetTypeTargetType

Type of target

setToLane(value)
Parameters:

value – int

Sets the last lane in the section (from 0 to number of lanes -1) this change affects to A -1 indicates all lanes will be affected

setToSegment(value)
Parameters:

value – int

Sets the last segment in the section (from 0 to number of segments -1) this change affects to. A -1 indicates all segments will be affected