Aimsun Next Scripting  22
Public Member Functions | Public Attributes | List of all members
GKTurningSimEntity Class Reference
Inheritance diagram for GKTurningSimEntity:
GKSimEntity

Public Member Functions

 GKTurningSimEntity ()
 
 GKTurningSimEntity (const GKTurning *aturn, uint origin, uint destination)
 
bool hasConflictWith (GKTurningSimEntity *otherEntity, GKPoint *intersectionPoint) const
 
bool hasConflictWith (GKTurningSimEntity *otherEntity, GKPoints *intersectionPoints) const
 
void iniPoints ()
 
void iniXIniXEnd ()
 
void calcStopLinesInformation (QList< GKNodeConflict > &nodeConflicts, GKModelConnection *modelConnection, bool hasYellowBox, const bool aDemandIncludePedestrians)
 
- Public Member Functions inherited from GKSimEntity
 GKSimEntity ()
 
 GKSimEntity (GKSimEntityType type)
 
virtual ~GKSimEntity ()
 
void setType (GKSimEntityType atype)
 
GKSimEntityType getType () const
 
void setPoints (const GKPoints &points)
 
const GKPointgetPoint (uint pos, bool *ok) const
 
const GKPointsgetPoints () const
 
void setWidth (double value)
 
double getWidth () const
 
double getXIni () const
 
double getXEnd () const
 
void setXIni (double value)
 
void setXEnd (double value)
 
virtual void iniPoints ()=0
 
virtual void iniXIniXEnd ()=0
 

Public Attributes

const GKTurningturning
 
uint originLane
 
uint destinationLane
 

Additional Inherited Members

- Public Types inherited from GKSimEntity
enum  GKSimEntityType { eIntersection , eCentralLane , eEntranceLateralLane , eExitLateralLane }
 

Detailed Description

Defines a possible movement from section origin to section destination in a specific turn by defining the origin/destination lanes positions.

Constructor & Destructor Documentation

◆ GKTurningSimEntity() [1/2]

GKTurningSimEntity::GKTurningSimEntity ( )

◆ GKTurningSimEntity() [2/2]

GKTurningSimEntity::GKTurningSimEntity ( const GKTurning aturn,
uint  origin,
uint  destination 
)

Creates a turn entity for the turn 'aturn' with origin lane 'origin' and destination lane 'destination'

Member Function Documentation

◆ calcStopLinesInformation()

void GKTurningSimEntity::calcStopLinesInformation ( QList< GKNodeConflict > &  nodeConflicts,
GKModelConnection modelConnection,
bool  hasYellowBox,
const bool  aDemandIncludePedestrians 
)

Initializes the simulation stop lines (yield) information

◆ hasConflictWith() [1/2]

bool GKTurningSimEntity::hasConflictWith ( GKTurningSimEntity otherEntity,
GKPoint intersectionPoint 
) const

Returns true if this turn entity intersects with the other entity. If the result is true then the intersection point is returned using the argument intersectionPoint, otherwise the argument is undefined

◆ hasConflictWith() [2/2]

bool GKTurningSimEntity::hasConflictWith ( GKTurningSimEntity otherEntity,
GKPoints intersectionPoints 
) const

Returns true if this turn entity intersects with the other entity. If the result is true then all the intersection points are returned using the argument intersectionPoints, otherwise the argument is undefined

◆ iniPoints()

void GKTurningSimEntity::iniPoints ( )
virtual

Initializes the simulation entity points

Implements GKSimEntity.

◆ iniXIniXEnd()

void GKTurningSimEntity::iniXIniXEnd ( )
virtual

Initializes the simulation entity xIni and xFin values

Implements GKSimEntity.

Member Data Documentation

◆ destinationLane

uint GKTurningSimEntity::destinationLane

◆ originLane

uint GKTurningSimEntity::originLane

◆ turning

const GKTurning* GKTurningSimEntity::turning

© Aimsun SLU
Aimsun ®