|
Aimsun Next Scripting
24.0
|
Public Member Functions | |
| SkimCalculator (const BaseForest *iForest, GKModel *iAimsunModel, CalculationMethod iMethod, bool iParallelCalculation) | |
| QVector< GKODMatrix * > | createCostComponentMatrices (const GKCentroidConfiguration *iCenConfig) const |
| for (auto it=matrices.begin();it !=matrices.end();++it) | |
| End GKODMatrix * | createCostMatrix (const GKCentroidConfiguration *iCenConfig) const |
| GKODMatrix * | createDistanceMatrix (const GKCentroidConfiguration *iCenConfig) const |
| GKODMatrix * | createTripMatrix (const GKCentroidConfiguration *iCenConfig) const |
| void | init () |
| void | doPath (const PathKey &pathKey, const NSPTreeData &treeData, const QVector< QPair< qint32, qint8 > > &connections, void *aux=nullptr) |
| void | finishPaths () |
Public Member Functions inherited from ForestCalculator | |
| 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 () |
Public Attributes | |
| MethodCode QVector< GKODMatrix * > * | res = new QVector<GKODMatrix*>() |
| QVector< QPair< QString, GKODMatrix * > > | matrices = sipCpp->createCostComponentMatrices(a0) |
| sipRes = res | |
Additional Inherited Members | |
Public Types inherited from ForestCalculator | |
| enum | CalculationMethod { eOnlyAvailablePaths =0 , eAvailablePathsAndShortestPaths , eShortestPaths } |
This class provides the calculator for skim matrices Call the calculate( AnalysisFilter & filter ) from the parent class ForestCalculator to activate the calculation of the matrices
| SkimCalculator::SkimCalculator | ( | const BaseForest * | iForest, |
| GKModel * | iAimsunModel, | ||
| CalculationMethod | iMethod, | ||
| bool | iParallelCalculation | ||
| ) |
Skimcalculator constructor
| QVector< GKODMatrix * > SkimCalculator::createCostComponentMatrices | ( | const GKCentroidConfiguration * | iCenConfig | ) | const |
Create the cost component matrices, return temporary GKODMatrices
| End GKODMatrix * SkimCalculator::createCostMatrix | ( | const GKCentroidConfiguration * | iCenConfig | ) | const |
Create the cost matrix, return temporary GKODMatrix
| GKODMatrix * SkimCalculator::createDistanceMatrix | ( | const GKCentroidConfiguration * | iCenConfig | ) | const |
Create the distance matrix, return temporary GKODMatrix
| GKODMatrix * SkimCalculator::createTripMatrix | ( | const GKCentroidConfiguration * | iCenConfig | ) | const |
Create the trip matrix, return temporary GKODMatrix
|
virtual |
Do path, will be called automatically from the calculate method
Reimplemented from ForestCalculator.
|
virtual |
Finish paths, will be called automatically from the calculate method
Reimplemented from ForestCalculator.
|
inline |
References res.
|
virtual |
Initialize, will be called automatically from the calculate method
Implements ForestCalculator.
| QVector< QPair< QString, GKODMatrix* > > SkimCalculator::matrices = sipCpp->createCostComponentMatrices(a0) |
| MethodCode QVector<GKODMatrix*>* SkimCalculator::res = new QVector<GKODMatrix*>() |
Referenced by for().
| SkimCalculator::sipRes = res |
1.9.4