| |
- traci.domain.Domain(builtins.object)
-
- VTypeDomain
-
- VehicleTypeDomain
class VTypeDomain(traci.domain.Domain) |
|
VTypeDomain(name, cmdGetID, cmdSetID, subscribeID, subscribeResponseID, contextID, contextResponseID, retValFunc=None, deprecatedFor=None, subscriptionDefault=(0,))
This class contains all functions which are common to the vehicletype, vehicle and person domain |
|
- Method resolution order:
- VTypeDomain
- traci.domain.Domain
- builtins.object
Methods defined here:
- __init__(self, name, cmdGetID, cmdSetID, subscribeID, subscribeResponseID, contextID, contextResponseID, retValFunc=None, deprecatedFor=None, subscriptionDefault=(0,))
- Initialize self. See help(type(self)) for accurate signature.
- getAccel(self, typeID)
- getAccel(string) -> double
Returns the maximum acceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getActionStepLength(self, typeID)
- getActionStepLength(string) -> double
Returns the action step length for this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getApparentDecel(self, typeID)
- getApparentDecel(string) -> double
Returns the apparent deceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getBoardingDuration(self, typeID)
- getBoardingDuration(string) -> double
Returns the boarding duration of this type
- getColor(self, typeID)
- getColor(string) -> (integer, integer, integer, integer)
Returns the color of this type.
If called in the context of a person or vehicle, it will return their specific color if it has been set.
Use the respective object ID as typeID value in said context.
- getDecel(self, typeID)
- getDecel(string) -> double
Returns the maximal comfortable deceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getEmergencyDecel(self, typeID)
- getEmergencyDecel(string) -> double
Returns the maximal physically possible deceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getEmissionClass(self, typeID)
- getEmissionClass(string) -> string
Returns the emission class of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getHeight(self, typeID)
- getHeight(string) -> double
Returns the height in m of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getImpatience(self, typeID)
- getImpatience(string) -> double
Returns the Impatience of this type
- getImperfection(self, typeID)
- getImperfection(string) -> double
Returns the driver's imperfection for this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getLateralAlignment(self, typeID)
- getLateralAlignment(string) -> string
Returns The preferred lateral alignment of the type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getLength(self, typeID)
- getLength(string) -> double
Returns the length in m of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getMass(self, typeID)
- getMass(string) -> double
Returns the mass in kg of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getMaxSpeed(self, typeID)
- getMaxSpeed(string) -> double
Returns the maximum speed in m/s of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getMaxSpeedLat(self, typeID)
- getMaxSpeedLat(string) -> double
Returns the maximum lateral speed in m/s of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getMinGap(self, typeID)
- getMinGap(string) -> double
Returns the offset (gap to front vehicle if halting) of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getMinGapLat(self, typeID)
- getMinGapLat(string) -> double
Returns The desired lateral gap of this type at 50km/h in m
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getPersonCapacity(self, typeID)
- getPersonCapacity(string) -> int
Returns the person capacity of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getShapeClass(self, typeID)
- getShapeClass(string) -> string
Returns the shape class of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getSpeedDeviation(self, typeID)
- getSpeedDeviation(string) -> double
Returns the maximum speed deviation of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getSpeedFactor(self, typeID)
- getSpeedFactor(string) -> double
Returns the speed factor of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getTau(self, typeID)
- getTau(string) -> double
Returns the driver's desired headway in s for this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getVehicleClass(self, typeID)
- getVehicleClass(string) -> string
Returns the class of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getWidth(self, typeID)
- getWidth(string) -> double
Returns the width in m of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- setAccel(self, typeID, accel)
- setAccel(string, double) -> None
Sets the maximum acceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setActionStepLength(self, typeID, actionStepLength, resetActionOffset=True)
- setActionStepLength(string, double, bool) -> None
Sets the action step length for this type. If resetActionOffset == True (default), the
next action point is scheduled immediately for all vehicles of the type.
If resetActionOffset == False, the interval between the last and the next action point is
updated to match the given value for all vehicles of the type, or if the latter is smaller
than the time since the last action point, the next action follows immediately.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setApparentDecel(self, typeID, decel)
- setApparentDecel(string, double) -> None
Sets the apparent deceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setBoardingDuration(self, typeID, boardingDuration)
- setBoardingDuration(string, double) -> None
Sets the boarding duration of the this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setColor(self, typeID, color)
- setColor(string, (integer, integer, integer, integer)) -> None
Sets the color of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setDecel(self, typeID, decel)
- setDecel(string, double) -> None
Sets the maximal comfortable deceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setEmergencyDecel(self, typeID, decel)
- setEmergencyDecel(string, double) -> None
Sets the maximal physically possible deceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setEmissionClass(self, typeID, clazz)
- setEmissionClass(string, string) -> None
Sets the emission class of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setHeight(self, typeID, height)
- setHeight(string, double) -> None
Sets the height in m of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setImpatience(self, typeID, impatience)
- setImpatience(string, double) -> None
Sets the impatience of the this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setImperfection(self, typeID, imperfection)
- setImperfection(string, double) -> None
Sets the driver imperfection of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setLateralAlignment(self, typeID, latAlignment)
- setLateralAlignment(string, string) -> None
Sets the preferred lateral alignment of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setLength(self, typeID, length)
- setLength(string, double) -> None
Sets the length in m of the this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setMass(self, typeID, mass)
- setMass(string, double) -> None
Sets the mass in kg of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setMaxSpeed(self, typeID, speed)
- setMaxSpeed(string, double) -> None
Sets the maximum speed in m/s of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setMaxSpeedLat(self, typeID, speed)
- setMaxSpeedLat(string, double) -> None
Sets the maximum lateral speed of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setMinGap(self, typeID, minGap)
- setMinGap(string, double) -> None
Sets the offset (gap to front vehicle if halting) of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setMinGapLat(self, typeID, minGapLat)
- setMinGapLat(string, double) -> None
Sets the minimum lateral gap at 50km/h of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setShapeClass(self, typeID, shapeClass)
- setShapeClass(string, string) -> None
Sets the shape class of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setSpeedFactor(self, typeID, factor)
- setSpeedFactor(string, double) -> None
Sets the speed factor of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setTau(self, typeID, tau)
- setTau(string, double) -> None
Sets the driver's tau-parameter (reaction time or anticipation time depending on the car-following model) in s
for this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setVehicleClass(self, typeID, clazz)
- setVehicleClass(string, string) -> None
Sets the class of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setWidth(self, typeID, width)
- setWidth(string, double) -> None
Sets the width in m of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
Methods inherited from traci.domain.Domain:
- getAllContextSubscriptionResults(self)
- getAllSubscriptionResults(self)
- getAllSubscriptionResults() -> dict(string: dict(integer: <value_type>))
Returns the subscription results for the last time step and all objects of the domain.
It is not possible to retrieve older subscription results than the ones
from the last time step.
- getContextSubscriptionResults(self, objectID)
- 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, objectID, key)
- getParameter(string, string) -> string
Returns the value of the given parameter for the given objectID
- getParameterWithKey(self, objectID, key)
- getParameterWithKey(string, string) -> (string, string)
Returns the (key, value) tuple of the given parameter for the given objectID
- getSubscriptionResults(self, objectID)
- getSubscriptionResults(string) -> dict(integer: <value_type>)
Returns the subscription results for the last time step and the given object.
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, objectID, key, value)
- setParameter(string, string, string) -> None
Sets the value of the given parameter to value for the given objectID
- subscribe(self, objectID, varIDs=None, begin=-1073741824.0, end=-1073741824.0, parameters=None)
- subscribe(string, list(integer), double, double, map(string->tuple)) -> None
Subscribe to one or more object values for the given interval.
- subscribeContext(self, objectID, domain, dist, varIDs=None, begin=-1073741824.0, end=-1073741824.0, parameters=None)
- subscribeContext(string, int, double, list(integer), double, double) -> None
Subscribe to objects of the given domain (specified as domain=traci.constants.CMD_GET_<DOMAIN>_VARIABLE),
which are closer than dist to the object specified by objectID.
- subscribeParameterWithKey(self, objectID, key, begin=-1073741824.0, end=-1073741824.0)
- subscribeParameterWithKey(string, string) -> None
Subscribe for a generic parameter with the given key.
- unsubscribe(self, objectID)
- unsubscribe(string) -> None
Unsubscribe from receiving object values.
- unsubscribeContext(self, objectID, domain, dist)
Data descriptors inherited from traci.domain.Domain:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
|
class VehicleTypeDomain(VTypeDomain) |
|
This class contains all functions which are specific to the vehicletype domain |
|
- Method resolution order:
- VehicleTypeDomain
- VTypeDomain
- traci.domain.Domain
- builtins.object
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
- copy(self, origTypeID, newTypeID)
- copy(string, string) -> None
Duplicates the vType with ID origTypeID. The newly created vType is assigned the ID newTypeID
- getScale(self, typeID)
- getScale(string) -> double
Returns the traffic scaling factor
- setScale(self, typeID, value)
- setScale(string, double) -> None
Sets the traffic scaling factor
- setSpeedDeviation(self, typeID, deviation)
- setSpeedDeviation(string, double) -> None
Sets the maximum speed deviation of this type.
Methods inherited from VTypeDomain:
- getAccel(self, typeID)
- getAccel(string) -> double
Returns the maximum acceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getActionStepLength(self, typeID)
- getActionStepLength(string) -> double
Returns the action step length for this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getApparentDecel(self, typeID)
- getApparentDecel(string) -> double
Returns the apparent deceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getBoardingDuration(self, typeID)
- getBoardingDuration(string) -> double
Returns the boarding duration of this type
- getColor(self, typeID)
- getColor(string) -> (integer, integer, integer, integer)
Returns the color of this type.
If called in the context of a person or vehicle, it will return their specific color if it has been set.
Use the respective object ID as typeID value in said context.
- getDecel(self, typeID)
- getDecel(string) -> double
Returns the maximal comfortable deceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getEmergencyDecel(self, typeID)
- getEmergencyDecel(string) -> double
Returns the maximal physically possible deceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getEmissionClass(self, typeID)
- getEmissionClass(string) -> string
Returns the emission class of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getHeight(self, typeID)
- getHeight(string) -> double
Returns the height in m of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getImpatience(self, typeID)
- getImpatience(string) -> double
Returns the Impatience of this type
- getImperfection(self, typeID)
- getImperfection(string) -> double
Returns the driver's imperfection for this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getLateralAlignment(self, typeID)
- getLateralAlignment(string) -> string
Returns The preferred lateral alignment of the type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getLength(self, typeID)
- getLength(string) -> double
Returns the length in m of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getMass(self, typeID)
- getMass(string) -> double
Returns the mass in kg of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getMaxSpeed(self, typeID)
- getMaxSpeed(string) -> double
Returns the maximum speed in m/s of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getMaxSpeedLat(self, typeID)
- getMaxSpeedLat(string) -> double
Returns the maximum lateral speed in m/s of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getMinGap(self, typeID)
- getMinGap(string) -> double
Returns the offset (gap to front vehicle if halting) of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getMinGapLat(self, typeID)
- getMinGapLat(string) -> double
Returns The desired lateral gap of this type at 50km/h in m
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getPersonCapacity(self, typeID)
- getPersonCapacity(string) -> int
Returns the person capacity of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getShapeClass(self, typeID)
- getShapeClass(string) -> string
Returns the shape class of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getSpeedDeviation(self, typeID)
- getSpeedDeviation(string) -> double
Returns the maximum speed deviation of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getSpeedFactor(self, typeID)
- getSpeedFactor(string) -> double
Returns the speed factor of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getTau(self, typeID)
- getTau(string) -> double
Returns the driver's desired headway in s for this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getVehicleClass(self, typeID)
- getVehicleClass(string) -> string
Returns the class of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- getWidth(self, typeID)
- getWidth(string) -> double
Returns the width in m of this type.
If called in the context of a person or vehicle, it will return the value for their current type.
Use the respective object ID as typeID value in said context.
- setAccel(self, typeID, accel)
- setAccel(string, double) -> None
Sets the maximum acceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setActionStepLength(self, typeID, actionStepLength, resetActionOffset=True)
- setActionStepLength(string, double, bool) -> None
Sets the action step length for this type. If resetActionOffset == True (default), the
next action point is scheduled immediately for all vehicles of the type.
If resetActionOffset == False, the interval between the last and the next action point is
updated to match the given value for all vehicles of the type, or if the latter is smaller
than the time since the last action point, the next action follows immediately.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setApparentDecel(self, typeID, decel)
- setApparentDecel(string, double) -> None
Sets the apparent deceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setBoardingDuration(self, typeID, boardingDuration)
- setBoardingDuration(string, double) -> None
Sets the boarding duration of the this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setColor(self, typeID, color)
- setColor(string, (integer, integer, integer, integer)) -> None
Sets the color of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setDecel(self, typeID, decel)
- setDecel(string, double) -> None
Sets the maximal comfortable deceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setEmergencyDecel(self, typeID, decel)
- setEmergencyDecel(string, double) -> None
Sets the maximal physically possible deceleration in m/s^2 of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setEmissionClass(self, typeID, clazz)
- setEmissionClass(string, string) -> None
Sets the emission class of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setHeight(self, typeID, height)
- setHeight(string, double) -> None
Sets the height in m of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setImpatience(self, typeID, impatience)
- setImpatience(string, double) -> None
Sets the impatience of the this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setImperfection(self, typeID, imperfection)
- setImperfection(string, double) -> None
Sets the driver imperfection of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setLateralAlignment(self, typeID, latAlignment)
- setLateralAlignment(string, string) -> None
Sets the preferred lateral alignment of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setLength(self, typeID, length)
- setLength(string, double) -> None
Sets the length in m of the this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setMass(self, typeID, mass)
- setMass(string, double) -> None
Sets the mass in kg of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setMaxSpeed(self, typeID, speed)
- setMaxSpeed(string, double) -> None
Sets the maximum speed in m/s of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setMaxSpeedLat(self, typeID, speed)
- setMaxSpeedLat(string, double) -> None
Sets the maximum lateral speed of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setMinGap(self, typeID, minGap)
- setMinGap(string, double) -> None
Sets the offset (gap to front vehicle if halting) of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setMinGapLat(self, typeID, minGapLat)
- setMinGapLat(string, double) -> None
Sets the minimum lateral gap at 50km/h of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setShapeClass(self, typeID, shapeClass)
- setShapeClass(string, string) -> None
Sets the shape class of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setSpeedFactor(self, typeID, factor)
- setSpeedFactor(string, double) -> None
Sets the speed factor of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setTau(self, typeID, tau)
- setTau(string, double) -> None
Sets the driver's tau-parameter (reaction time or anticipation time depending on the car-following model) in s
for this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setVehicleClass(self, typeID, clazz)
- setVehicleClass(string, string) -> None
Sets the class of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
- setWidth(self, typeID, width)
- setWidth(string, double) -> None
Sets the width in m of this type.
If called in the context of a person or vehicle, it will change the value just for the single instance.
Use the respective object ID as typeID value in said context.
Methods inherited from traci.domain.Domain:
- getAllContextSubscriptionResults(self)
- getAllSubscriptionResults(self)
- getAllSubscriptionResults() -> dict(string: dict(integer: <value_type>))
Returns the subscription results for the last time step and all objects of the domain.
It is not possible to retrieve older subscription results than the ones
from the last time step.
- getContextSubscriptionResults(self, objectID)
- 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, objectID, key)
- getParameter(string, string) -> string
Returns the value of the given parameter for the given objectID
- getParameterWithKey(self, objectID, key)
- getParameterWithKey(string, string) -> (string, string)
Returns the (key, value) tuple of the given parameter for the given objectID
- getSubscriptionResults(self, objectID)
- getSubscriptionResults(string) -> dict(integer: <value_type>)
Returns the subscription results for the last time step and the given object.
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, objectID, key, value)
- setParameter(string, string, string) -> None
Sets the value of the given parameter to value for the given objectID
- subscribe(self, objectID, varIDs=None, begin=-1073741824.0, end=-1073741824.0, parameters=None)
- subscribe(string, list(integer), double, double, map(string->tuple)) -> None
Subscribe to one or more object values for the given interval.
- subscribeContext(self, objectID, domain, dist, varIDs=None, begin=-1073741824.0, end=-1073741824.0, parameters=None)
- subscribeContext(string, int, double, list(integer), double, double) -> None
Subscribe to objects of the given domain (specified as domain=traci.constants.CMD_GET_<DOMAIN>_VARIABLE),
which are closer than dist to the object specified by objectID.
- subscribeParameterWithKey(self, objectID, key, begin=-1073741824.0, end=-1073741824.0)
- subscribeParameterWithKey(string, string) -> None
Subscribe for a generic parameter with the given key.
- unsubscribe(self, objectID)
- unsubscribe(string) -> None
Unsubscribe from receiving object values.
- unsubscribeContext(self, objectID, domain, dist)
Data descriptors inherited from traci.domain.Domain:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
| |