Aimsun Next Scripting
24.0
|
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) |
QList< GKNodeConflict > | getConflicts (GKNode *node) |
for (auto turning :turns) | |
for (GKNodeConflict conflict :sipCpp->getConflicts(a0, entitiesByTurn)) | |
End QList< GKNodeConflict > | getConflicts (GKTurningSimEntity *newentity, const QList< GKTurningSimEntity * > &entities) const |
Public Attributes | |
MethodCode QMap< GKTurning *, QList< GKTurningSimEntity * > > | entitiesByTurn |
GKTurnings | turns = a0->getTurnings() |
QList< GKNodeConflict > * | nodeConflicts = new QList<GKNodeConflict>() |
sipRes = nodeConflicts | |
This object holds all needed functions to calculate and get the turn entities and the node conflicts.
GKEntityBuilder::GKEntityBuilder | ( | ) |
|
inline |
References entitiesByTurn.
|
inline |
References nodeConflicts.
QList< GKNodeConflict > GKEntityBuilder::getConflicts | ( | GKNode * | node | ) |
Returns a list of conflicts.
End QList< GKNodeConflict > GKEntityBuilder::getConflicts | ( | GKTurningSimEntity * | newentity, |
const QList< GKTurningSimEntity * > & | entities | ||
) | const |
Returns all conflicts of newentity with the list of entities
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
MethodCode QMap< GKTurning*, QList<GKTurningSimEntity *> > GKEntityBuilder::entitiesByTurn |
Referenced by for().
QList<GKNodeConflict>* GKEntityBuilder::nodeConflicts = new QList<GKNodeConflict>() |
Referenced by for().
GKEntityBuilder::sipRes = nodeConflicts |
GKTurnings GKEntityBuilder::turns = a0->getTurnings() |