Aimsun Next Scripting
24.0
|
Public Types | |
enum | CalculationMethod { eOnlyAvailablePaths =0 , eAvailablePathsAndShortestPaths , eShortestPaths } |
Public Member Functions | |
ForestCalculator (const BaseForest *iForest, GKModel *iAimsunModel, CalculationMethod iMethod=eOnlyAvailablePaths) | |
virtual | ~ForestCalculator () |
void | setNumPaths (int value) |
void | calculate (const AnalysisFilter &iFilter) |
virtual void | init ()=0 |
virtual void | doPath (const PathKey &pathKey, const NSPTreeData &treeData, const QVector< QPair< qint32, qint8 > > &connections, void *aux=nullptr) |
virtual void | finishPaths () |
This class provides the a calculator to iterate over all paths of a forest
ForestCalculator::ForestCalculator | ( | const BaseForest * | iForest, |
GKModel * | iAimsunModel, | ||
CalculationMethod | iMethod = eOnlyAvailablePaths |
||
) |
|
virtual |
void ForestCalculator::calculate | ( | const AnalysisFilter & | iFilter | ) |
|
virtual |
Reimplemented in LinkAnalysisCalculator, and SkimCalculator.
|
virtual |
Reimplemented in LinkAnalysisCalculator, and SkimCalculator.
|
pure virtual |
Implemented in LinkAnalysisCalculator, and SkimCalculator.
void ForestCalculator::setNumPaths | ( | int | value | ) |
Set the number of paths to get. If -1 then it gets all paths but they may be disaggregated. It means that the path could be repeated due to internal path calculation. If >0 then it joins those paths that are equal and it takes only the best n paths.