|
Aimsun Next Scripting
22
|
Public Types | |
| enum | ValuesToReturn { eGiveDefaultValues , eGiveStoredValues } |
Public Member Functions | |
| GKEntityBuilder () | |
| QList< GKTurningSimEntity * > | getConnectionEntities (GKTurning *turn, bool save=false, ValuesToReturn vtr=eGiveStoredValues) const |
| void | saveConnections (GKTurning *_turn, QList< GKTurningSimEntity * > _entities) const |
| bool | isConflicting (GKTurningSimEntity *_entity1, GKTurningSimEntity *_entity2) |
| void | resetConflicts (GKNode *node) |
This object holds all needed functions to calculate and get the turn entities and the node conflicts.
| GKEntityBuilder::GKEntityBuilder | ( | ) |
| QList< GKTurningSimEntity * > GKEntityBuilder::getConnectionEntities | ( | GKTurning * | turn, |
| bool | save = false, |
||
| ValuesToReturn | vtr = eGiveStoredValues |
||
| ) | const |
Returns the connection entities between the origin lanes and destination lanes of the turn. It takes into account the reserved lanes.
| bool GKEntityBuilder::isConflicting | ( | GKTurningSimEntity * | _entity1, |
| GKTurningSimEntity * | _entity2 | ||
| ) |
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.
| void GKEntityBuilder::resetConflicts | ( | GKNode * | node | ) |
Recalculates the conflicts for the specified node
| void GKEntityBuilder::saveConnections | ( | GKTurning * | _turn, |
| QList< GKTurningSimEntity * > | _entities | ||
| ) | const |
Clears the connection entities of the turn and stores the new entities
1.9.4