PyANGKernel.GKTurningSimEntity

class GKTurningSimEntity

Inheritance diagram of PyANGKernel.GKTurningSimEntity

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

Detailed Description

Defines a possible movement from section origin to section destination in a specific turn by defining the origin/destination lanes positions.

PyANGKernel.GKTurningSimEntity.turning
PyANGKernel.GKTurningSimEntity.originLane
PyANGKernel.GKTurningSimEntity.destinationLane
__init__()
__init__(aturn, origin, destination)
Parameters:
  • aturnGKTurning

  • origin – int

  • destination – int

Creates a turn entity for the turn ‘aturn’ with origin lane ‘origin’ and destination lane ‘destination’

calcStopLinesInformation(nodeConflicts, modelConnection, hasYellowBox, moveBuffers)
Parameters:
  • nodeConflicts – .list of GKNodeConflict

  • modelConnectionGKModelConnection

  • hasYellowBox – bool

  • moveBuffers – bool

Initializes the simulation stop lines (yield) information

calculateStopLinesInConflict(iniPos, endPos)
Parameters:
  • iniPos – float

  • endPos – float

Return type:

.QSetint

Returns the list of stop lines thar are in the subturning between iniPos and endPos

getCurve(fromPoint, toPoint)
Parameters:

Calculates a curve parallel to the turn, with an input as initial and final points

hasConflictWith(otherEntity, intersectionPoint)
Parameters:
Return type:

bool

Returns true if this turn entity intersects with the other entity. If the result is true then the intersection point is returned using the argument intersectionPoint, otherwise the argument is undefined

hasConflictWith(otherEntity, intersectionPoints)
Parameters:
Return type:

bool

Returns true if this turn entity intersects with the other entity. If the result is true then all the intersection points are returned using the argument intersectionPoints, otherwise the argument is undefined

__eq__(value)
Parameters:

valueGKTurningSimEntity

Return type:

bool