PyANGKernel.GKVehiclePollutant

class GKVehiclePollutant

Pollutants generated by a vehicle (by vehicle type) as a collection of pollution rates ( GKVehiclePollutantRate ) and IER, AER and DER values (all in g/s). See the Aimsun Next User manual for more information.

Details

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

See also

GKVehicle

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

__init__()
addRate(rate)
Parameters:

rateGKVehiclePollutantRate

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

addSlopeEffectSlope(slope)
Parameters:

slope – float

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

addSlopeEffectSpeed(speed)
Parameters:

speed – float

Adds a new slope effect speed. If the slope effect speed already exists it is not duplicated.

changeSlopeEffectSlope(oldSlope, slope)
Parameters:
  • oldSlope – float

  • slope – float

Updates all the items for a slope. If the slope already exists nothing happens.

changeSlopeEffectSpeed(oldSpeed, speed)
Parameters:
  • oldSpeed – float

  • speed – float

Updates all the items for a speed. If the speed already exists nothing happens.

clearRates()

Removes all the rates.

clearSlopeEffects()

Removes all the slope effects.

copyGuiToModel(aUnits)
Parameters:

aUnitsUnitSystem

Return type:

GKVehiclePollutant

copyModelToGui(aUnits)
Parameters:

aUnitsUnitSystem

Return type:

GKVehiclePollutant

getAER()
Return type:

float

Gets the acceleration emission rate for this pollutant.

getDER()
Return type:

float

Gets the deceleration emission rate for this pollutant.

getIER()
Return type:

float

Gets the idling emission rate for this pollutant.

getName()
Return type:

str

getRate(pos)
Parameters:

pos – int

Return type:

GKVehiclePollutantRate

Gets a rate by its position.

getRates()
Return type:

.list of GKVehiclePollutantRate

Gets all the rates.

getSortedRates()
Return type:

.list of GKVehiclePollutantRate

Gets all the rates sorted by speed.

removeRate(rate)
Parameters:

rateGKVehiclePollutantRate

Removes a rate.

removeRate(pos)
Parameters:

pos – int

Removes a rate.

removeSlopeEffectSlope(slope)
Parameters:

slope – float

Removes a slope effect slope.

removeSlopeEffectSpeed(speed)
Parameters:

speed – float

Removes a slope effect speed.

setAER(avalue)
Parameters:

avalue – float

Sets the acceleration emission rate for this pollutant.

setDER(avalue)
Parameters:

avalue – float

Sets the deceleration emission rate for this pollutant.

setIER(avalue)
Parameters:

avalue – float

Sets the idling emission rate for this pollutant.

setName(avalue)
Parameters:

avalue – str

setRate(pos, rate)
Parameters:

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

setRates(aRates)
Parameters:

aRates – .list of GKVehiclePollutantRate

Gets all the rates.

setSlopeEffect(speed, slope, value)
Parameters:
  • speed – float

  • slope – float

  • value – float

Sets a slope effect by speed and slope in the slope effects list.

sortRates()

Sorts Rates (Rate-Speed) by Speed