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¶
def
__init__()def
getConflicts()def
isConflicting()def
resetConflicts()
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__1 –
GKNode- Return type:
.list of GKNodeConflict
- getConflicts(newentity, entities)
- Parameters:
newentity –
GKTurningSimEntityentities – .list of GKTurningSimEntity
- Return type:
.list of GKNodeConflict
Returns all conflicts of newentity with the list of entities
- getConflicts(node, turnConnections[, _overWrite=true[, overwritePriorities=true]])
- Parameters:
node –
GKNodeturnConnections – .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:
turn –
GKTurningsave – bool
vtr –
ValuesToReturn
- 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:
_entity1 –
GKTurningSimEntity_entity2 –
GKTurningSimEntity
- Return type:
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.
Recalculates the conflicts for the specified node
- saveConnections(_turn, _entities)¶
- Parameters:
_turn –
GKTurning_entities – .list of GKTurningSimEntity
Clears the connection entities of the turn and stores the new entities