Aimsun Next Scripting
22
|
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 GKVehiclePollutantRate & | getRate (uint) const |
void | removeRate (const GKVehiclePollutantRate &) |
void | removeRate (uint) |
const QVector< GKVehiclePollutantRate > & | getRates () const |
void | clearRates () |
Note that the pollutants must have a unique name among all the pollutants in a vehicle type.
GKVehiclePollutant::GKVehiclePollutant | ( | ) |
void GKVehiclePollutant::addRate | ( | const GKVehiclePollutantRate & | ) |
Adds a new rate. If the rate already exists it is not duplicated.
void GKVehiclePollutant::clearRates | ( | ) |
Removes all the rates.
float GKVehiclePollutant::getAER | ( | ) | const |
float GKVehiclePollutant::getDER | ( | ) | const |
float GKVehiclePollutant::getIER | ( | ) | const |
const QString & GKVehiclePollutant::getName | ( | ) | const |
const GKVehiclePollutantRate & GKVehiclePollutant::getRate | ( | uint | ) | const |
Gets a rate by its position.
const QVector< GKVehiclePollutantRate > & GKVehiclePollutant::getRates | ( | ) | const |
Gets all the rates.
void GKVehiclePollutant::removeRate | ( | const GKVehiclePollutantRate & | ) |
Removes a rate.
void GKVehiclePollutant::removeRate | ( | uint | ) |
Removes a rate.
void GKVehiclePollutant::setAER | ( | float | ) |
void GKVehiclePollutant::setDER | ( | float | ) |
void GKVehiclePollutant::setIER | ( | float | ) |
void GKVehiclePollutant::setName | ( | const QString & | ) |
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.