public class Lane
extends Object
Constructor and Description |
---|
Lane() |
Modifier and Type | Method and Description |
---|---|
static SumoCommand |
getAllowed(String laneID)
Returns a list of allowed vehicle classes.
|
static SumoCommand |
getCO2Emission(String laneID)
Returns the CO2 emissions (in mg) on the given lane during the last time
step.
|
static SumoCommand |
getCOEmission(String laneID)
Returns the CO emissions (in mg) on the given lane during the last time
step.
|
static SumoCommand |
getDisallowed(String laneID)
Returns a list of disallowed vehicle classes.
|
static SumoCommand |
getEdgeID(String laneID)
Returns the ID of the edge this lane belongs to.
|
static SumoCommand |
getElectricityConsumption(String laneID)
Returns the electricity consumption in ml for the last time step.
|
static SumoCommand |
getFoes(String laneID,
String toLane)
Returns the ids of incoming lanes that have right of way over the connection from laneID to toLaneID
|
static SumoCommand |
getFuelConsumption(String laneID)
Returns the fuel consumption (in ml) on the given lane during the last
time step.
|
static SumoCommand |
getHCEmission(String laneID)
Returns the HC emissions (in mg) on the given lane during the last time
step.
|
static SumoCommand |
getIDCount()
Returns the number of all lanes in the network.
|
static SumoCommand |
getIDList()
Returns a list of IDs of all lanes in the network.
|
static SumoCommand |
getInternalFoes(String laneID)
Returns the ids of internal lanes that are in conflict with the given internal lane id
|
static SumoCommand |
getLastStepHaltingNumber(String laneID)
Returns the total number of halting vehicles on the given lane within the
last time step.
|
static SumoCommand |
getLastStepLength(String laneID)
Returns the total vehicle length (in m) on the given lane during the last
time step.
|
static SumoCommand |
getLastStepMeanSpeed(String laneID)
Returns the mean speed (in m/s) on the given lane within the last time
step.
|
static SumoCommand |
getLastStepOccupancy(String laneID)
Returns the occupancy (in %) on the given lane during the last time step.
|
static SumoCommand |
getLastStepVehicleIDs(String laneID)
Returns the IDs of the vehicles on the given lane within the last time
step.
|
static SumoCommand |
getLastStepVehicleNumber(String laneID)
Returns number of vehicles on this lane within the last time step.
|
static SumoCommand |
getLength(String laneID)
Returns the length (in m) of the named lane.
|
static SumoCommand |
getLinkNumber(String laneID)
Returns the number of links outgoing from this lane.
|
static SumoCommand |
getLinks(String laneID)
Returns descriptions of the links (in m) outgoing from this lane.
|
static SumoCommand |
getMaxSpeed(String laneID)
Returns the maximum speed (in m/s) allowed on this lane.
|
static SumoCommand |
getNoiseEmission(String laneID)
Returns the noise emissions (in db) on the given lane during the last
time step.
|
static SumoCommand |
getNOxEmission(String laneID)
Returns the NOx emissions (in mg) on the given lane during the last time
step.
|
static SumoCommand |
getParameter(String laneID,
String param)
Returns the chosen parameter
|
static SumoCommand |
getPMxEmission(String laneID)
Returns the particular matter emissions (in mg) on the given lane during
the last time step.
|
static SumoCommand |
getShape(String laneID)
Returns this lane's shape.
|
static SumoCommand |
getTraveltime(String laneID)
Returns the estimated travel time (in s) on the given lane during the
last time step.
|
static SumoCommand |
getWaitingTime(String laneID)
getWaitingTime
|
static SumoCommand |
getWidth(String laneID)
Returns the width (in m) of the named lane.
|
static SumoCommand |
setAllowed(String laneID,
SumoStringList allowedClasses)
Set a list of allowed vehicle classes.
|
static SumoCommand |
setDisallowed(String laneID,
SumoStringList disallowedClasses)
Set a list of disallowed vehicle classes.
|
static SumoCommand |
setLength(String laneID,
double length)
Set the length (in m) of the named lane.
|
static SumoCommand |
setMaxSpeed(String laneID,
double speed)
Set the maximum speed (in m/s) allowed on this lane.
|
public static SumoCommand getAllowed(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getIDCount()
public static SumoCommand getCO2Emission(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getCOEmission(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getDisallowed(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getEdgeID(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getElectricityConsumption(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getFoes(String laneID, String toLane)
laneID
- a string identifying a lanetoLane
- a string identifying the target lanepublic static SumoCommand getInternalFoes(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getFuelConsumption(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getHCEmission(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getIDList()
public static SumoCommand getLastStepHaltingNumber(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getLastStepLength(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getLastStepMeanSpeed(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getLastStepOccupancy(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getLastStepVehicleIDs(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getLastStepVehicleNumber(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getLength(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getLinkNumber(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getLinks(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getMaxSpeed(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getNOxEmission(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getNoiseEmission(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getParameter(String laneID, String param)
laneID
- a string identifying the edgeparam
- a string identifying the parameterpublic static SumoCommand getPMxEmission(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getShape(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getTraveltime(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getWidth(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand getWaitingTime(String laneID)
laneID
- a string identifying a lanepublic static SumoCommand setAllowed(String laneID, SumoStringList allowedClasses)
laneID
- a string identifying a laneallowedClasses
- allowed vehicle classespublic static SumoCommand setDisallowed(String laneID, SumoStringList disallowedClasses)
laneID
- a string identifying a lanedisallowedClasses
- not allowed vehicle classespublic static SumoCommand setLength(String laneID, double length)
laneID
- a string identifying a lanelength
- new length (in m) of the lanepublic static SumoCommand setMaxSpeed(String laneID, double speed)
laneID
- a string identifying a lanespeed
- maximum velocity allowed (in m/s)