Aimsun Next Scripting  22
Public Member Functions | List of all members
GKVehiclePollutant Class Reference

Public Member Functions

 GKVehiclePollutant ()
 
void setName (const QString &)
 
const QString & getName () const
 
void setIER (float)
 
float getIER () const
 
void setAER (float)
 
float getAER () const
 
void setDER (float)
 
float getDER () const
 
void addRate (const GKVehiclePollutantRate &)
 
void setRate (uint, const GKVehiclePollutantRate &)
 
const GKVehiclePollutantRategetRate (uint) const
 
void removeRate (const GKVehiclePollutantRate &)
 
void removeRate (uint)
 
const QVector< GKVehiclePollutantRate > & getRates () const
 
void clearRates ()
 

Detailed Description

Note that the pollutants must have a unique name among all the pollutants in a vehicle type.

See also
GKVehicle

Constructor & Destructor Documentation

◆ GKVehiclePollutant()

GKVehiclePollutant::GKVehiclePollutant ( )

Member Function Documentation

◆ addRate()

void GKVehiclePollutant::addRate ( const GKVehiclePollutantRate )

Adds a new rate. If the rate already exists it is not duplicated.

◆ clearRates()

void GKVehiclePollutant::clearRates ( )

Removes all the rates.

◆ getAER()

float GKVehiclePollutant::getAER ( ) const

◆ getDER()

float GKVehiclePollutant::getDER ( ) const

◆ getIER()

float GKVehiclePollutant::getIER ( ) const

◆ getName()

const QString & GKVehiclePollutant::getName ( ) const

◆ getRate()

const GKVehiclePollutantRate & GKVehiclePollutant::getRate ( uint  ) const

Gets a rate by its position.

◆ getRates()

const QVector< GKVehiclePollutantRate > & GKVehiclePollutant::getRates ( ) const

Gets all the rates.

◆ removeRate() [1/2]

void GKVehiclePollutant::removeRate ( const GKVehiclePollutantRate )

Removes a rate.

◆ removeRate() [2/2]

void GKVehiclePollutant::removeRate ( uint  )

Removes a rate.

◆ setAER()

void GKVehiclePollutant::setAER ( float  )

◆ setDER()

void GKVehiclePollutant::setDER ( float  )

◆ setIER()

void GKVehiclePollutant::setIER ( float  )

◆ setName()

void GKVehiclePollutant::setName ( const QString &  )

◆ setRate()

void GKVehiclePollutant::setRate ( uint  ,
const GKVehiclePollutantRate  
)

Sets a rate by its position in the rate list. If the position is bigger that the list size nothing happens.

© Aimsun SLU
Aimsun ®