traci._vehicletype
index
/build/sumo-lDLURb/sumo-0.27.1+dfsg1/tools/traci/_vehicletype.py

@file    vehicletype.py
@author  Michael Behrisch
@author  Lena Kalleske
@date    2008-10-09
@version $Id: _vehicletype.py 20482 2016-04-18 20:49:42Z behrisch $
 
Python implementation of the TraCI interface.
 
SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
Copyright (C) 2008-2016 DLR (http://www.dlr.de/) and contributors
 
This file is part of SUMO.
SUMO is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

 
Modules
       
struct
traci.constants

 
Classes
       
traci.domain.Domain
VehicleTypeDomain

 
class VehicleTypeDomain(traci.domain.Domain)
     Methods defined here:
__init__(self)
getAccel(self, typeID)
getAccel(string) -> double
 
Returns the maximum acceleration in m/s^2 of vehicles of this type.
getColor(self, typeID)
getColor(string) -> (integer, integer, integer, integer)
 
Returns the color of this type.
getDecel(self, typeID)
getDecel(string) -> double
 
Returns the maximum deceleration in m/s^2 of vehicles of this type.
getEmissionClass(self, typeID)
getEmissionClass(string) -> string
 
Returns the emission class of vehicles of this type.
getImperfection(self, typeID)
getImperfection(string) -> double
 
.
getLength(self, typeID)
getLength(string) -> double
 
Returns the length in m of the vehicles of this type.
getMaxSpeed(self, typeID)
getMaxSpeed(string) -> double
 
Returns the maximum speed in m/s of vehicles of this type.
getMinGap(self, typeID)
getMinGap(string) -> double
 
Returns the offset (gap to front vehicle if halting) of vehicles of this type.
getShapeClass(self, typeID)
getShapeClass(string) -> string
 
Returns the shape class of vehicles of this type.
getSpeedDeviation(self, typeID)
getSpeedDeviation(string) -> double
 
Returns the maximum speed deviation of vehicles of this type.
getSpeedFactor(self, typeID)
getSpeedFactor(string) -> double
 
.
getTau(self, typeID)
getTau(string) -> double
 
Returns the driver's reaction time in s for vehicles of this type.
getVehicleClass(self, typeID)
getVehicleClass(string) -> string
 
Returns the class of vehicles of this type.
getWidth(self, typeID)
getWidth(string) -> double
 
Returns the width in m of vehicles of this type.
setAccel(self, typeID, accel)
setAccel(string, double) -> None
 
Sets the maximum acceleration in m/s^2 of vehicles of this type.
setColor(self, typeID, color)
setColor(string, (integer, integer, integer, integer)) -> None
 
Sets the color of this type.
setDecel(self, typeID, decel)
setDecel(string, double) -> None
 
Sets the maximum deceleration in m/s^2 of vehicles of this type.
setEmissionClass(self, typeID, clazz)
setEmissionClass(string, string) -> None
 
Sets the emission class of vehicles of this type.
setImperfection(self, typeID, imperfection)
setImperfection(string, double) -> None
 
.
setLength(self, typeID, length)
setLength(string, double) -> None
 
Sets the length in m of the vehicles of this type.
setMaxSpeed(self, typeID, speed)
setMaxSpeed(string, double) -> None
 
Sets the maximum speed in m/s of vehicles of this type.
setMinGap(self, typeID, minGap)
setMinGap(string, double) -> None
 
Sets the offset (gap to front vehicle if halting) of vehicles of this type.
setShapeClass(self, typeID, clazz)
setShapeClass(string, string) -> None
 
Sets the shape class of vehicles of this type.
setSpeedDeviation(self, typeID, deviation)
setSpeedDeviation(string, double) -> None
 
Sets the maximum speed deviation of vehicles of this type.
setSpeedFactor(self, typeID, factor)
setSpeedFactor(string, double) -> None
 
.
setTau(self, typeID, tau)
setTau(string, double) -> None
 
Sets the driver's reaction time in s for vehicles of this type.
setVehicleClass(self, typeID, clazz)
setVehicleClass(string, string) -> None
 
Sets the class of vehicles of this type.
setWidth(self, typeID, width)
setWidth(string, double) -> None
 
Sets the width in m of vehicles of this type.

Methods inherited from traci.domain.Domain:
getContextSubscriptionResults(self, objectID=None)
getIDCount(self)
getIDCount() -> integer
 
Returns the number of currently loaded objects.
getIDList(self)
getIDList() -> list(string)
 
Returns a list of all objects in the network.
getParameter(self, objID, param)
getParameter(string, string) -> string
 
Returns the value of the given parameter for the given objID
getSubscriptionResults(self, objectID=None)
getSubscriptionResults(string) -> dict(integer: <value_type>)
 
Returns the subscription results for the last time step and the given object.
If no object id is given, all subscription results are returned in a dict.
If the object 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.
setParameter(self, objID, param, value)
setParameter(string, string, string) -> string
 
Sets the value of the given parameter to value for the given objID
subscribe(self, objectID, varIDs=None, begin=0, end=2147483647)
subscribe(string, list(integer), double, double) -> None
 
Subscribe to one or more object values for the given interval.
subscribeContext(self, objectID, domain, dist, varIDs=None, begin=0, end=2147483647)

 
Data
        absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)