public class Edge
extends Object
Constructor and Description |
---|
Edge() |
Modifier and Type | Method and Description |
---|---|
static SumoCommand |
adaptTraveltime(String edgeID,
double time)
Adapt the travel time value (in s) used for (re-)routing on the given
edge.
|
static SumoCommand |
adaptTraveltime(String edgeID,
double time,
int begin,
int end)
Adapt the travel time value (in s) used for (re-)routing on the given
edge.
|
static SumoCommand |
getAdaptedTraveltime(String edgeID,
int time)
Returns the travel time value (in s) used for (re-)routing.
|
static SumoCommand |
getCO2Emission(String edgeID)
Returns the CO2 emissions (in mg) on the given edge during the last time
step.
|
static SumoCommand |
getCOEmission(String edgeID)
Returns the CO emissions (in mg) on the given edge during the last time
step.
|
static SumoCommand |
getEffort(String edgeID,
int time)
Returns the effort value used for (re-)routing.
|
static SumoCommand |
getElectricityConsumption(String edgeID)
Returns the electricity consumption in ml for the last time step.
|
static SumoCommand |
getFuelConsumption(String edgeID)
Returns the fuel consumption (in ml) on the given edge during the last
time step.
|
static SumoCommand |
getHCEmission(String edgeID)
Returns the HC emissions (in mg) on the given edge during the last time
step.
|
static SumoCommand |
getIDCount()
Returns the number of edges in the network.
|
static SumoCommand |
getIDList()
Returns a list of all edges in the network.
|
static SumoCommand |
getLaneNumber(String edgeID) |
static SumoCommand |
getLastStepHaltingNumber(String edgeID)
Returns the total number of halting vehicles on the given edge within the
last time step.
|
static SumoCommand |
getLastStepLength(String edgeID)
Returns the total vehicle length (in m) on the given edge within the last
time step.
|
static SumoCommand |
getLastStepMeanSpeed(String edgeID)
Returns the mean speed of vehicles (in m/s) that were on the named
induction loop within the last simulation step.
|
static SumoCommand |
getLastStepOccupancy(String edgeID)
Returns the percentage of time (in %) the detector was occupied by a
vehicle.
|
static SumoCommand |
getLastStepPersonIDs(String edgeID)
Returns the ids of the persons on the given edge during the last time step.
|
static SumoCommand |
getLastStepVehicleIDs(String edgeID)
Returns the list of IDs of the vehicles on the given edge within the last
simulation step.
|
static SumoCommand |
getLastStepVehicleNumber(String edgeID)
Returns the total number of vehicles on this edge within the last time
step.
|
static SumoCommand |
getNoiseEmission(String edgeID)
Returns the noise emissions (in db)on the given edge within the last time
step.
|
static SumoCommand |
getNOxEmission(String edgeID)
Returns the NOx emissions (in mg) on the given edge during the last time
step.
|
static SumoCommand |
getParameter(String edgeID,
String param)
Returns the chosen parameter
|
static SumoCommand |
getPMxEmission(String edgeID)
Returns the particular matter emissions (in mg) on the given edge on this
edge during the last time step.
|
static SumoCommand |
getTraveltime(String edgeID)
Returns the estimated travel time (in s) on the given edge on this edge
within the last time step.
|
static SumoCommand |
getWaitingTime(String edgeID)
Returns the waiting time (in s) on the given edge on this edge
within the last time step.
|
static SumoCommand |
setEffort(String edgeID,
double effort)
Adapt the effort value used for (re-)routing on the given edge.
|
static SumoCommand |
setEffort(String edgeID,
double effort,
int begin,
int end)
Adapt the effort value used for (re-)routing on the given edge.
|
static SumoCommand |
setMaxSpeed(String edgeID,
double speed)
Set a new maximum speed (in m/s) for all lanes of the edge.
|
public static SumoCommand getAdaptedTraveltime(String edgeID, int time)
edgeID
- a string identifying the edgetime
- the point of time the returned value is valid forpublic static SumoCommand getCO2Emission(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getCOEmission(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getEffort(String edgeID, int time)
edgeID
- a string identifying the edgetime
- the point of time the returned value is valid forpublic static SumoCommand getElectricityConsumption(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getFuelConsumption(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getHCEmission(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getIDCount()
public static SumoCommand getIDList()
public static SumoCommand getLaneNumber(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getLastStepHaltingNumber(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getLastStepLength(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getLastStepMeanSpeed(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getLastStepPersonIDs(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getLastStepOccupancy(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getLastStepVehicleIDs(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getLastStepVehicleNumber(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getNOxEmission(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getNoiseEmission(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getPMxEmission(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getTraveltime(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getWaitingTime(String edgeID)
edgeID
- a string identifying the edgepublic static SumoCommand getParameter(String edgeID, String param)
edgeID
- a string identifying the edgeparam
- a string identifying the parameterpublic static SumoCommand adaptTraveltime(String edgeID, double time)
edgeID
- a string identifying the edgetime
- travel time value (in s)public static SumoCommand adaptTraveltime(String edgeID, double time, int begin, int end)
edgeID
- a string identifying the edgetime
- travel time value (in s)begin
- begin valueend
- end valuepublic static SumoCommand setEffort(String edgeID, double effort)
edgeID
- a string identifying the edgeeffort
- effort valuepublic static SumoCommand setEffort(String edgeID, double effort, int begin, int end)
edgeID
- a string identifying the edgeeffort
- effort valuebegin
- begin valueend
- end valuepublic static SumoCommand setMaxSpeed(String edgeID, double speed)
edgeID
- a string identifying the edgespeed
- maximum speed (in m/s)