Aimsun Next Scripting  22
Public Types | Public Member Functions | List of all members
GKEntityBuilder Class Reference

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)
 

Detailed Description

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

Member Enumeration Documentation

◆ ValuesToReturn

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

Enumerator
eGiveDefaultValues 
eGiveStoredValues 

Constructor & Destructor Documentation

◆ GKEntityBuilder()

GKEntityBuilder::GKEntityBuilder ( )

Member Function Documentation

◆ getConnectionEntities()

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.

◆ isConflicting()

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.

◆ resetConflicts()

void GKEntityBuilder::resetConflicts ( GKNode node)

Recalculates the conflicts for the specified node

◆ saveConnections()

void GKEntityBuilder::saveConnections ( GKTurning _turn,
QList< GKTurningSimEntity * >  _entities 
) const

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

© Aimsun SLU
Aimsun ®