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,
boolean fromGeo)
convertGeo
|
static SumoCommand |
convertRoad(double x,
double y,
String isGeo)
convertRoad
|
static SumoCommand |
findIntermodalRoute(String fromEdge,
String toEdge,
String modes,
double depart,
int routingMode,
double speed,
double walkingFactor,
double departPos,
double arrivalPos,
double departPosLat,
String pType,
String vType,
String destStop)
findIntermodalRoute
|
static SumoCommand |
findRoute(String fromEdge,
String toEdge,
String vType,
double depart,
int routingMode)
findRoute
|
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 |
getCollidingVehiclesIDList()
getCollidingVehiclesNumber()
|
static SumoCommand |
getCollidingVehiclesNumber()
getCollidingVehiclesNumber()
|
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,
boolean isGeo,
boolean isDriving) |
static SumoCommand |
getDistanceRoad(String edgeID1,
double pos1,
String edgeID2,
double pos2,
boolean isDriving) |
static SumoCommand |
getEmergencyStoppingVehiclesIDList()
getEmergencyStoppingVehiclesIDList()
|
static SumoCommand |
getEmergencyStoppingVehiclesNumber()
getEmergencyStoppingVehiclesNumber()
|
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()
|
static SumoCommand |
saveState(String filename)
save state
|
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, boolean 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 getCollidingVehiclesNumber()
public static SumoCommand getCollidingVehiclesIDList()
public static SumoCommand getEmergencyStoppingVehiclesNumber()
public static SumoCommand getEmergencyStoppingVehiclesIDList()
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, boolean isGeo, boolean isDriving)
x1
- x1y1
- y1x2
- x2y2
- y2isGeo
- is geoisDriving
- is drivingpublic static SumoCommand getDistanceRoad(String edgeID1, double pos1, String edgeID2, double pos2, boolean 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 idpublic static SumoCommand saveState(String filename)
filename
- public static SumoCommand findRoute(String fromEdge, String toEdge, String vType, double depart, int routingMode)
fromEdge
- first edgetoEdge
- second edgevType
- vehicle typedepart
- departroutingMode
- routing modepublic static SumoCommand findIntermodalRoute(String fromEdge, String toEdge, String modes, double depart, int routingMode, double speed, double walkingFactor, double departPos, double arrivalPos, double departPosLat, String pType, String vType, String destStop)
fromEdge
- first edgetoEdge
- second edgemodes
- modesdepart
- departroutingMode
- routing modespeed
- speedwalkingFactor
- walkingFactordepartPos
- departPosarrivalPos
- arrivalPosdepartPosLat
- departPosLatpType
- pTypevType
- vTypedestStop
- destStop