Aimsun Next Scripting
22
|
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 PTForest * | readFile (const QString &filename, GKModel *model) |
This class provides the paths of a macro transit experiment
void PTForest::acceptVisitor | ( | ForestVisitor & | visitor | ) | const |
Accept visitor object.
qint32 PTForest::getDestinationCentroidId | ( | qint32 | iCentroidPos | ) | const |
Get the centroid id from the position of the destination centroid.*/.
qint32 PTForest::getDestinationCentroidPos | ( | qint32 | iCentroidId | ) | const |
Get the centroid id from the position of the destination centroid.*/.
QVector< qint32 > PTForest::getDestinationCentroids | ( | ) | const |
Get the list of destination centroids.
qint32 PTForest::getOriginCentroidId | ( | qint32 | iCentroidPos | ) | const |
Get the centroid id from the position of the origin centroid.*/.
qint32 PTForest::getOriginCentroidPos | ( | qint32 | iCentroidId | ) | const |
Get the position of origin centroid iCentriodId.
QVector< qint32 > PTForest::getOriginCentroids | ( | ) | const |
Get the list of origin centroids.
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.
qint32 PTForest::getUserPos | ( | qint32 | iUserId | ) | const |
Get the position of user class iUserId.
const QVector< qint32 > & PTForest::getUsers | ( | ) | const |
Get the list of users class.
Read the forest from a file.
bool PTForest::writeFile | ( | const QString & | filename, |
GKModel * | model | ||
) |
Write the forest to a file.