Aimsun Next Scripting  24.0
Public Member Functions | List of all members
MacroPTAdjustmentResult Class Reference

Public Member Functions

bool hasResults () const
 
unsigned int getNumberOfStates () const
 
const PTResultAdjustmentStategetState (const unsigned int iIndex) const
 
PTResultAdjustmentState findState (const GKUserClass &iUserClass, const GKCentroid &iOrigin, const GKCentroid &iDestination) const
 
std::vector< PTResultAdjustmentStategetStates () const
 
const QVector< PTResultObservation > & getObservations () const
 
QVector< double > getOriginalStateValues () const
 
QVector< double > getAdjustedStateValues () const
 
const QVector< double > & getOriginalObservationValues () const
 
const QVector< double > & getAdjustedObservationValues () const
 
QVector< GKUserClass * > getUsers () const
 
GKTrafficDemandpublishAdjustedDemand (GKModel *iModel)
 
GKODMatrixpublishMatrix (GKUserClass *iUser, bool iCreateInModel) const
 
double getCheckSum () const
 

Detailed Description

This class provides the functionality of a PTAdjustmentExperiment

Member Function Documentation

◆ findState()

PTResultAdjustmentState MacroPTAdjustmentResult::findState ( const GKUserClass iUserClass,
const GKCentroid iOrigin,
const GKCentroid iDestination 
) const

Try to find a state with the specific user, origin and destinations. If not found, returns a state with null original and adjusted demand.

◆ getAdjustedObservationValues()

const QVector< double > & MacroPTAdjustmentResult::getAdjustedObservationValues ( ) const

Get the adjusted observated values.

◆ getAdjustedStateValues()

QVector< double > MacroPTAdjustmentResult::getAdjustedStateValues ( ) const

Get the adjusted state values.

◆ getCheckSum()

double MacroPTAdjustmentResult::getCheckSum ( ) const

Function for QA.

◆ getNumberOfStates()

unsigned int MacroPTAdjustmentResult::getNumberOfStates ( ) const

Get the number of PTResultAdjustmentState.

◆ getObservations()

const QVector< PTResultObservation > & MacroPTAdjustmentResult::getObservations ( ) const

Get the observations.

◆ getOriginalObservationValues()

const QVector< double > & MacroPTAdjustmentResult::getOriginalObservationValues ( ) const

Get the original observated values.

◆ getOriginalStateValues()

QVector< double > MacroPTAdjustmentResult::getOriginalStateValues ( ) const

Get the orgininal state values before the adjustment.

◆ getState()

const PTResultAdjustmentState & MacroPTAdjustmentResult::getState ( const unsigned int  iIndex) const

Get the number of PTResultAdjustmentState using the index. iIndex must be between 0 and N-1 (where N is the number of states ).

◆ getStates()

std::vector< PTResultAdjustmentState > MacroPTAdjustmentResult::getStates ( ) const

Get the adjustment states.

◆ getUsers()

QVector< GKUserClass * > MacroPTAdjustmentResult::getUsers ( ) const

Get the users used in the demand adjusted.

◆ hasResults()

bool MacroPTAdjustmentResult::hasResults ( ) const

Return true if results are available.

◆ publishAdjustedDemand()

GKTrafficDemand * MacroPTAdjustmentResult::publishAdjustedDemand ( GKModel iModel)

Creates the adjusted demand.

◆ publishMatrix()

GKODMatrix * MacroPTAdjustmentResult::publishMatrix ( GKUserClass iUser,
bool  iCreateInModel 
) const

Create the adjusted for the specified GKUserClass, set iCreateInModel to true in order to generate temporary matrices in the model.

© Aimsun SLU
Aimsun ®