PyANGKernel.GKEntityBuilder

class GKEntityBuilder

Creator of the dynamic simulator entities and conflicts.

Details

This object holds all needed functions to calculate and get the turn entities and the node conflicts.

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

class ValuesToReturn

* eGiveDefaultValues always returns the default values * eGiveStoredValues returns the previously stored if they exist

__init__()
getConflicts(arg__1)
Parameters:

arg__1GKNode

Return type:

.list of GKNodeConflict

getConflicts(newentity, entities)
Parameters:
Return type:

.list of GKNodeConflict

Returns all conflicts of newentity with the list of entities

getConflicts(node, turnConnections[, _overWrite=true[, overwritePriorities=true]])
Parameters:
  • nodeGKNode

  • turnConnections – .QMapGKTurning,list of GKTurningSimEntity

  • _overWrite – bool

  • overwritePriorities – bool

Return type:

.list of GKNodeConflict

Returns a list of conflicts.

getConnectionEntities(turn[, save=false[, vtr=GKEntityBuilder.ValuesToReturn.eGiveStoredValues]])
Parameters:
Return type:

.list of GKTurningSimEntity

Returns the connection entities between the origin lanes and destination lanes of the turn. It takes into account the reserved lanes.

isConflicting(_entity1, _entity2)
Parameters:
Return type:

bool

Returns true if the two entities have a geometrical conflict. We can understand a geometrical conflict as an overlapping of the two physical volumes of the turns.

resetConflicts(node)
Parameters:

nodeGKNode

Recalculates the conflicts for the specified node

saveConnections(_turn, _entities)
Parameters:
  • _turnGKTurning

  • _entities – .list of GKTurningSimEntity

Clears the connection entities of the turn and stores the new entities