 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
34 class VariableWrapper;
49 static void load(
const std::vector<std::string>& args);
58 static void step(
const double time = 0.);
98 static TraCIPosition convert2D(
const std::string& edgeID,
double pos,
int laneIndex = 0,
bool toGeo =
false);
100 static TraCIPosition convert3D(
const std::string& edgeID,
double pos,
int laneIndex = 0,
bool toGeo =
false);
106 static double getDistance2D(
double x1,
double y1,
double x2,
double y2,
bool isGeo =
false,
bool isDriving =
false);
107 static double getDistanceRoad(
const std::string& edgeID1,
double pos1,
const std::string& edgeID2,
double pos2,
bool isDriving =
false);
111 static TraCIStage findRoute(
const std::string& fromEdge,
const std::string& toEdge,
const std::string& vType =
"",
const double depart = -1.,
const int routingMode = 0);
116 static std::vector<TraCIStage>
findIntermodalRoute(
const std::string& fromEdge,
const std::string& toEdge,
const std::string& modes =
"",
117 double depart = -1.,
const int routingMode = 0,
double speed = -1.,
double walkFactor = -1.,
119 const std::string& pType =
"",
const std::string& vType =
"",
const std::string& destStop =
"");
121 static std::string
getParameter(
const std::string& objectID,
const std::string& key);
123 static void clearPending(
const std::string& routeID =
"");
124 static void saveState(
const std::string& fileName);
130 static std::shared_ptr<VariableWrapper>
makeWrapper();
static int getEndingTeleportNumber()
static void step(const double time=0.)
Advances by one step (or up to the given time)
TRACI_CONST double INVALID_DOUBLE_VALUE
static int getCollidingVehiclesNumber()
std::map< int, std::shared_ptr< TraCIResult > > TraCIResults
{variable->value}
static int getMinExpectedNumber()
static std::vector< std::string > getStopStartingVehiclesIDList()
static TraCIPositionVector getNetBoundary()
static void load(const std::vector< std::string > &args)
load a simulation with the given arguments
Simulation()=delete
invalidated standard constructor
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
static TraCIRoadPosition convertRoad(double x, double y, bool isGeo=false, const std::string &vClass="ignoring")
static int getParkingEndingVehiclesNumber()
static int getStopEndingVehiclesNumber()
static TraCIPosition convert2D(const std::string &edgeID, double pos, int laneIndex=0, bool toGeo=false)
static void clearPending(const std::string &routeID="")
static double getDistance2D(double x1, double y1, double x2, double y2, bool isGeo=false, bool isDriving=false)
static const TraCIResults getSubscriptionResults()
static int getArrivedNumber()
static bool isLoaded()
return whether a simulation (network) is present
static void writeMessage(const std::string &msg)
static std::vector< std::string > getBusStopWaitingIDList(const std::string &id)
Returns the IDs of the transportables on a given bus stop.
static std::vector< std::string > getStartingTeleportIDList()
static std::vector< std::string > getDepartedIDList()
static TraCIPosition convertGeo(double x, double y, bool fromGeo=false)
static void close()
close simulation
static std::vector< std::string > getArrivedIDList()
static double getDistanceRoad(const std::string &edgeID1, double pos1, const std::string &edgeID2, double pos2, bool isDriving=false)
static int getCurrentTime()
static std::shared_ptr< VariableWrapper > makeWrapper()
static int getEmergencyStoppingVehiclesNumber()
static TraCIPosition convert3D(const std::string &edgeID, double pos, int laneIndex=0, bool toGeo=false)
static std::vector< std::string > getParkingStartingVehiclesIDList()
static double getDeltaT()
static int getDepartedNumber()
static int getStartingTeleportNumber()
static std::vector< std::string > getBusStopIDList()
static std::vector< std::string > getParkingEndingVehiclesIDList()
static SubscriptionResults mySubscriptionResults
static int getStopStartingVehiclesNumber()
static int getBusStopWaiting(const std::string &id)
static ContextSubscriptionResults myContextSubscriptionResults
static std::vector< std::string > getLoadedIDList()
static void subscribe(const std::vector< int > &varIDs=std::vector< int >(), double begin=INVALID_DOUBLE_VALUE, double end=INVALID_DOUBLE_VALUE)
static void saveState(const std::string &fileName)
static std::vector< TraCIStage > findIntermodalRoute(const std::string &fromEdge, const std::string &toEdge, const std::string &modes="", double depart=-1., const int routingMode=0, double speed=-1., double walkFactor=-1., double departPos=0, double arrivalPos=INVALID_DOUBLE_VALUE, const double departPosLat=0, const std::string &pType="", const std::string &vType="", const std::string &destStop="")
static std::vector< std::string > getStopEndingVehiclesIDList()
static int getLoadedNumber()
static std::string getParameter(const std::string &objectID, const std::string &key)
An edgeId, position and laneIndex.
static std::vector< std::string > getCollidingVehiclesIDList()
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
static TraCIStage findRoute(const std::string &fromEdge, const std::string &toEdge, const std::string &vType="", const double depart=-1., const int routingMode=0)
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}
static std::vector< std::string > getEndingTeleportIDList()
static std::vector< std::string > getEmergencyStoppingVehiclesIDList()
static int getParkingStartingVehiclesNumber()