traci.vehicletype
index
/build/buildd/sumo-0.15.0~dfsg/tools/traci/vehicletype.py

@file    vehicletype.py
@author  Michael Behrisch
@author  Lena Kalleske
@date    2008-10-09
@version $Id: vehicletype.py 11671 2012-01-07 20:14:30Z behrisch $
 
Python implementation of the TraCI interface.
 
SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
Copyright (C) 2008-2012 DLR (http://www.dlr.de/) and contributors
All rights reserved

 
Modules
       
struct
traci.constants
traci

 
Functions
       
getAccel(typeID)
getAccel(string) -> double
 
.
getColor(typeID)
getColor(string) -> (integer, integer, integer, integer)
 
.
getDecel(typeID)
getDecel(string) -> double
 
.
getEmissionClass(typeID)
getEmissionClass(string) -> string
 
.
getIDList()
getIDList() -> list(string)
 
Returns a list of all known vehicle types.
getImperfection(typeID)
getImperfection(string) -> double
 
.
getLength(typeID)
getLength(string) -> double
 
.
getMaxSpeed(typeID)
getMaxSpeed(string) -> double
 
.
getMinGap(typeID)
getMinGap(string) -> double
 
.
getShapeClass(typeID)
getShapeClass(string) -> string
 
.
getSpeedDeviation(typeID)
getSpeedDeviation(string) -> double
 
.
getSpeedFactor(typeID)
getSpeedFactor(string) -> double
 
.
getSubscriptionResults(typeID=None)
getSubscriptionResults(string) -> dict(integer: <value_type>)
 
Returns the subscription results for the last time step and the given vehicle type.
If no vehicle type id is given, all subscription results are returned in a dict.
If the vehicle type id is unknown or the subscription did for any reason return no data,
'None' is returned.
It is not possible to retrieve older subscription results than the ones
from the last time step.
getTau(typeID)
getTau(string) -> double
 
.
getVehicleClass(typeID)
getVehicleClass(string) -> string
 
.
getWidth(typeID)
getWidth(string) -> double
 
.
setAccel(typeID, accel)
setColor(typeID, color)
setDecel(typeID, decel)
setEmissionClass(typeID, clazz)
setImperfection(typeID, imperfection)
setLength(typeID, length)
setMaxSpeed(typeID, speed)
setMinGap(typeID, minGap)
setShapeClass(typeID, clazz)
setSpeedDeviation(typeID, deviation)
setSpeedFactor(typeID, factor)
setTau(typeID, tau)
setVehicleClass(typeID, clazz)
setWidth(typeID, width)
subscribe(typeID, varIDs=(65,), begin=0, end=2147483647L)
subscribe(string, list(integer), double, double) -> None
 
Subscribe to one or more vehicle type values for the given interval.
A call to this method clears all previous subscription results.

 
Data
        subscriptionResults = {}