| |
Methods defined here:
- __init__(self)
- adaptTraveltime(self, edgeID, time, begin=None, end=None)
- adaptTraveltime(string, double) -> None
Adapt the travel time value (in s) used for (re-)routing for the given edge.
When setting begin time and end time (in seconds), the changes only
apply to that time range
- getAdaptedTraveltime(self, edgeID, time)
- getAdaptedTraveltime(string, double) -> double
Returns the travel time value (in s) used for (re-)routing
which is valid on the edge at the given time.
- getCO2Emission(self, edgeID)
- getCO2Emission(string) -> double
Returns the CO2 emission in mg for the last time step on the given edge.
- getCOEmission(self, edgeID)
- getCOEmission(string) -> double
Returns the CO emission in mg for the last time step on the given edge.
- getEffort(self, edgeID, time)
- getEffort(string, double) -> double
Returns the effort value used for (re-)routing
which is valid on the edge at the given time.
- getElectricityConsumption(self, edgeID)
- getElectricityConsumption(string) -> double
Returns the electricity consumption in ml for the last time step.
- getFuelConsumption(self, edgeID)
- getFuelConsumption(string) -> double
Returns the fuel consumption in ml for the last time step on the given edge.
- getHCEmission(self, edgeID)
- getHCEmission(string) -> double
Returns the HC emission in mg for the last time step on the given edge.
- getLastStepHaltingNumber(self, edgeID)
- getLastStepHaltingNumber(string) -> integer
Returns the total number of halting vehicles for the last time step on the given edge.
A speed of less than 0.1 m/s is considered a halt.
- getLastStepLength(self, edgeID)
- getLastStepLength(string) -> double
Returns the mean vehicle length in m for the last time step on the given edge.
- getLastStepMeanSpeed(self, edgeID)
- getLastStepMeanSpeed(string) -> double
Returns the average speed in m/s for the last time step on the given edge.
- getLastStepOccupancy(self, edgeID)
- getLastStepOccupancy(string) -> double
Returns the occupancy in % for the last time step on the given edge.
- getLastStepPersonIDs(self, edgeID)
- getLastStepPersonIDs(string) -> list(string)
Returns the ids of the persons on the given edge during the last time step.
- getLastStepVehicleIDs(self, edgeID)
- getLastStepVehicleIDs(string) -> list(string)
Returns the ids of the vehicles for the last time step on the given edge.
- getLastStepVehicleNumber(self, edgeID)
- getLastStepVehicleNumber(string) -> integer
Returns the total number of vehicles for the last time step on the given edge.
- getNOxEmission(self, edgeID)
- getNOxEmission(string) -> double
Returns the NOx emission in mg for the last time step on the given edge.
- getNoiseEmission(self, edgeID)
- getNoiseEmission(string) -> double
Returns the noise emission in db for the last time step on the given edge.
- getPMxEmission(self, edgeID)
- getPMxEmission(string) -> double
Returns the particular matter emission in mg for the last time step on the given edge.
- getTraveltime(self, edgeID)
- getTraveltime(string) -> double
Returns the estimated travel time in s for the last time step on the given edge.
- getWaitingTime(self, edgeID)
- getWaitingTime() -> double
Returns the sum of the waiting time of all vehicles currently on
that edge (see traci.vehicle.getWaitingTime).
- setEffort(self, edgeID, effort, begin=None, end=None)
- setEffort(string, double) -> None
Adapt the effort value used for (re-)routing for the given edge.
When setting begin time and end time (in seconds), the changes only
apply to that time range
- setMaxSpeed(self, edgeID, speed)
- setMaxSpeed(string, double) -> None
Set a new maximum speed (in m/s) for all lanes of the edge.
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)
|