public class Simulation
extends Object
| Constructor and Description |
|---|
Simulation() |
| Modifier and Type | Method and Description |
|---|---|
static SumoCommand |
clearPending(String routeID)
Clear pending
|
static SumoCommand |
convert2D(String edgeID,
double pos,
byte laneIndex,
String toGeo)
convert2D
|
static SumoCommand |
convert3D(String edgeID,
double pos,
byte laneIndex,
String toGeo)
convert3D
|
static SumoCommand |
convertGeo(double x,
double y,
String fromGeo)
convertGeo
|
static SumoCommand |
convertRoad(double x,
double y,
String isGeo)
convertRoad
|
static SumoCommand |
getArrivedIDList()
Returns a list of IDs of vehicles which arrived in this time step.
|
static SumoCommand |
getArrivedNumber()
Returns the number of vehicles which arrived in this time step.
|
static SumoCommand |
getBusStopWaiting()
Returns the current waiting time on bus stops(in ms).
|
static SumoCommand |
getCurrentTime()
getCurrentTime
|
static SumoCommand |
getDeltaT()
getDeltaT
|
static SumoCommand |
getDepartedIDList()
Returns a list of IDs of vehicles which departed in this time step.
|
static SumoCommand |
getDepartedNumber()
Returns the number of vehicles which departed in this time step.
|
static SumoCommand |
getDistance2D(double x1,
double y1,
double x2,
double y2,
String isGeo,
String isDriving) |
static SumoCommand |
getDistanceRoad(String edgeID1,
double pos1,
String edgeID2,
double pos2,
String isDriving) |
static SumoCommand |
getEndingTeleportIDList()
Returns a list of IDs of vehicles which ended to be teleported in this time step.
|
static SumoCommand |
getEndingTeleportNumber()
Returns the number of vehicles which ended to be teleported in this time step.
|
static SumoCommand |
getLoadedIDList()
Returns a list of IDs of vehicles which were loaded in this time step.
|
static SumoCommand |
getLoadedNumber()
Return the number of vehicles which were loaded in this time step.
|
static SumoCommand |
getMinExpectedNumber()
Returns the number of vehicles which are in the net plus the ones still waiting to start.
|
static SumoCommand |
getNetBoundary()
Returns the boundary box of the simulation network.
|
static SumoCommand |
getParkingEndingVehiclesIDList()
getParkingEndingVehiclesIDList()
|
static SumoCommand |
getParkingEndingVehiclesNumber()
getParkingEndingVehiclesNumber()
|
static SumoCommand |
getParkingStartingVehiclesIDList()
getParkingStartingVehiclesIDList()
|
static SumoCommand |
getParkingStartingVehiclesNumber()
getParkingStartingVehiclesNumber()
|
static SumoCommand |
getStartingTeleportIDList()
Returns a list of IDs of vehicles which started to teleport in this time step.
|
static SumoCommand |
getStartingTeleportNumber()
Returns the number of vehicles which started to teleport in this time step.
|
static SumoCommand |
getStopEndingVehiclesIDList()
getStopEndingVehiclesIDList()
|
static SumoCommand |
getStopEndingVehiclesNumber()
getStopEndingVehiclesNumber()
|
static SumoCommand |
getStopStartingVehiclesIDList()
getStopStartingVehiclesIDList()
|
static SumoCommand |
getStopStartingVehiclesNumber()
getStopStartingVehiclesIDList()
|
public static SumoCommand convert2D(String edgeID, double pos, byte laneIndex, String toGeo)
edgeID - edge idpos - poslaneIndex - indextoGeo - geopublic static SumoCommand convert3D(String edgeID, double pos, byte laneIndex, String toGeo)
edgeID - edge idpos - poslaneIndex - indextoGeo - geopublic static SumoCommand convertGeo(double x, double y, String fromGeo)
x - xy - yfromGeo - geopublic static SumoCommand convertRoad(double x, double y, String isGeo)
x - xy - yisGeo - geopublic static SumoCommand getArrivedIDList()
public static SumoCommand getArrivedNumber()
public static SumoCommand getBusStopWaiting()
public static SumoCommand getParkingEndingVehiclesIDList()
public static SumoCommand getParkingEndingVehiclesNumber()
public static SumoCommand getParkingStartingVehiclesIDList()
public static SumoCommand getParkingStartingVehiclesNumber()
public static SumoCommand getStopEndingVehiclesIDList()
public static SumoCommand getStopEndingVehiclesNumber()
public static SumoCommand getStopStartingVehiclesIDList()
public static SumoCommand getStopStartingVehiclesNumber()
public static SumoCommand getCurrentTime()
public static SumoCommand getDeltaT()
public static SumoCommand getDepartedIDList()
public static SumoCommand getDepartedNumber()
public static SumoCommand getDistance2D(double x1, double y1, double x2, double y2, String isGeo, String isDriving)
x1 - x1y1 - y1x2 - x2y2 - y2isGeo - is geoisDriving - is drivingpublic static SumoCommand getDistanceRoad(String edgeID1, double pos1, String edgeID2, double pos2, String isDriving)
edgeID1 - first edgepos1 - first positionedgeID2 - second edgepos2 - second positionisDriving - is drinvingpublic static SumoCommand getEndingTeleportIDList()
public static SumoCommand getEndingTeleportNumber()
public static SumoCommand getLoadedIDList()
public static SumoCommand getLoadedNumber()
public static SumoCommand getMinExpectedNumber()
public static SumoCommand getNetBoundary()
public static SumoCommand getStartingTeleportIDList()
public static SumoCommand getStartingTeleportNumber()
public static SumoCommand clearPending(String routeID)
routeID - route id