Aimsun Next Scripting  24.0
Public Types | Public Member Functions | Public Attributes | List of all members
NSPTreeData Class Reference

Public Types

enum  PathType {
  eNone , eRC , eAPA , eOD ,
  eTRAJECTORY , ePoint2Point
}
 

Public Member Functions

 NSPTreeData ()
 
bool operator== (const NSPTreeData &p) const
 
const NSPPath * getPath (const BaseForest *forest) const
 
QVector< QPair< qint32, qint8 > > getPathConnections (const BaseForest *iForest, qint32 iUserClassIndex, bool includeTrajectorySections=false) const
 
bool identicalPath (const NSPTreeData *_path, const BaseForest *_forest, int vehType) const
 
float getTrips () const
 
float getAssignmentFactor (const PathKey &key, const BaseForest *forest) const
 
float getPercentage () const
 
PathType pathType () const
 
QVector< float > getComponents () const
 

Public Attributes

uint entranceConnectionPosition
 
uint entrancePosition
 
quint32 pathid
 

Detailed Description

This class provides data for a path

Member Enumeration Documentation

◆ PathType

Enumerator
eNone 
eRC 
eAPA 
eOD 
eTRAJECTORY 
ePoint2Point 

Constructor & Destructor Documentation

◆ NSPTreeData()

NSPTreeData::NSPTreeData ( )

default constructor

Member Function Documentation

◆ getAssignmentFactor()

float NSPTreeData::getAssignmentFactor ( const PathKey key,
const BaseForest *  forest 
) const

Get real assignment factor

◆ getComponents()

QVector< float > NSPTreeData::getComponents ( ) const

Get vector of components

◆ getPath()

const NSPPath * NSPTreeData::getPath ( const BaseForest *  forest) const

◆ getPathConnections()

QVector< QPair< qint32, qint8 > > NSPTreeData::getPathConnections ( const BaseForest *  iForest,
qint32  iUserClassIndex,
bool  includeTrajectorySections = false 
) const

◆ getPercentage()

float NSPTreeData::getPercentage ( ) const

Get theoretical assignment percentage. This percentage is only available in dynamic simulations. It is a value from 0 to 100.

◆ getTrips()

float NSPTreeData::getTrips ( ) const

get real trips

◆ identicalPath()

bool NSPTreeData::identicalPath ( const NSPTreeData _path,
const BaseForest *  _forest,
int  vehType 
) const

test if the sections of the two paths are identical

◆ operator==()

bool NSPTreeData::operator== ( const NSPTreeData p) const

compare if two paths data are the same

◆ pathType()

PathType NSPTreeData::pathType ( ) const

Get path type

Member Data Documentation

◆ entranceConnectionPosition

uint NSPTreeData::entranceConnectionPosition

Entrance connection

◆ entrancePosition

uint NSPTreeData::entrancePosition

entrance section

◆ pathid

quint32 NSPTreeData::pathid

path id

© Aimsun SLU
Aimsun ®