| |
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.
- getHeight(self, typeID)
- getHeight(string) -> double
Returns the height in m 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.
- setHeight(self, typeID, height)
- setHeight(string, double) -> None
Sets the height in m 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)
|