Aimsun Next Scripting: PTForest Class Reference
Aimsun Next Scripting  22
Public Member Functions | Static Public Member Functions | List of all members
PTForest Class Reference

Public Member Functions

bool writeFile (const QString &filename, GKModel *model)
 
const QVector< qint32 > & getUsers () const
 
QVector< qint32 > getOriginCentroids () const
 
QVector< qint32 > getDestinationCentroids () const
 
qint32 getUserPos (qint32 iUserId) const
 
qint32 getOriginCentroidPos (qint32 iCentroidId) const
 
qint32 getOriginCentroidId (qint32 iCentroidPos) const
 
qint32 getDestinationCentroidPos (qint32 iCentroidId) const
 
qint32 getDestinationCentroidId (qint32 iCentroidPos) const
 
PTODPair getPTODPair (qint32 iUserPos, qint32 iOriginPos, qint32 iDestinationPos, const PTForestFilter &iFilter=PTForestFilter(), bool parallel=false) const
 
void acceptVisitor (ForestVisitor &visitor) const
 

Static Public Member Functions

static PTForestreadFile (const QString &filename, GKModel *model)
 

Detailed Description

This class provides the paths of a macro transit experiment

Member Function Documentation

◆ acceptVisitor()

void PTForest::acceptVisitor ( ForestVisitor visitor) const

Accept visitor object.

◆ getDestinationCentroidId()

qint32 PTForest::getDestinationCentroidId ( qint32  iCentroidPos) const

Get the centroid id from the position of the destination centroid.*‍/.

◆ getDestinationCentroidPos()

qint32 PTForest::getDestinationCentroidPos ( qint32  iCentroidId) const

Get the centroid id from the position of the destination centroid.*‍/.

◆ getDestinationCentroids()

QVector< qint32 > PTForest::getDestinationCentroids ( ) const

Get the list of destination centroids.

◆ getOriginCentroidId()

qint32 PTForest::getOriginCentroidId ( qint32  iCentroidPos) const

Get the centroid id from the position of the origin centroid.*‍/.

◆ getOriginCentroidPos()

qint32 PTForest::getOriginCentroidPos ( qint32  iCentroidId) const

Get the position of origin centroid iCentriodId.

◆ getOriginCentroids()

QVector< qint32 > PTForest::getOriginCentroids ( ) const

Get the list of origin centroids.

◆ getPTODPair()

PTODPair PTForest::getPTODPair ( qint32  iUserPos,
qint32  iOriginPos,
qint32  iDestinationPos,
const PTForestFilter iFilter = PTForestFilter(),
bool  parallel = false 
) const

Get all strategies of the OD Pair defined by iUser, iOrigin and iDestination.

◆ getUserPos()

qint32 PTForest::getUserPos ( qint32  iUserId) const

Get the position of user class iUserId.

◆ getUsers()

const QVector< qint32 > & PTForest::getUsers ( ) const

Get the list of users class.

◆ readFile()

static PTForest * PTForest::readFile ( const QString &  filename,
GKModel model 
)
static

Read the forest from a file.

◆ writeFile()

bool PTForest::writeFile ( const QString &  filename,
GKModel model 
)

Write the forest to a file.

© Aimsun SLU
Aimsun ®