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
Synopsis¶
Methods¶
def
__init__()def
addRate()def
clearRates()def
copyGuiToModel()def
copyModelToGui()def
getAER()def
getDER()def
getIER()def
getName()def
getRate()def
getRates()def
getSortedRates()def
removeRate()def
setAER()def
setDER()def
setIER()def
setName()def
setRate()def
setRates()def
setSlopeEffect()def
sortRates()
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:
rate –
GKVehiclePollutantRate
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:
aUnits –
UnitSystem- Return type:
- copyModelToGui(aUnits)¶
- Parameters:
aUnits –
UnitSystem- Return type:
Gets the acceleration emission rate for this pollutant.
Gets the deceleration emission rate for this pollutant.
Gets the idling emission rate for this pollutant.
- getRate(pos)¶
- Parameters:
pos – int
- Return type:
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:
rate –
GKVehiclePollutantRate
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:
pos – int
rate –
GKVehiclePollutantRate
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