 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
138 const MSVehicle*
const veh = dynamic_cast<const MSVehicle* const>(v);
152 const MSVehicle*
const veh = dynamic_cast<const MSVehicle* const>(v);
171 throw ProcessError(
"A network was not yet constructed.");
193 myAmInterrupted(false),
196 myHavePermissions(false),
197 myHasInternalLinks(false),
198 myHasElevation(false),
199 myHasPedestrianNetwork(false),
200 myHasBidiEdges(false),
201 myEdgeDataEndTime(-1),
202 myDynamicShapeUpdater(nullptr) {
204 throw ProcessError(
"A network was already constructed.");
241 std::vector<SUMOTime> stateDumpTimes,
242 std::vector<std::string> stateDumpFiles,
243 bool hasInternalLinks,
262 WRITE_WARNING(
"Opposite direction driving does not work together with the sublane model.");
299 delete router.second;
303 delete router.second;
307 delete router.second;
311 delete router.second;
329 const std::map<SUMOVehicleClass, double>*
331 std::map<std::string, std::map<SUMOVehicleClass, double> >::const_iterator i =
myRestrictions.find(
id);
357 std::cout <<
SIMTIME <<
" MSNet::simulate(" << start <<
", " << stop <<
")"
389 std::ostringstream msg;
391 msg <<
"Performance: " <<
"\n" <<
" Duration: " << duration <<
"ms" <<
"\n";
393 msg <<
" Real time factor: " << (
STEPS2TIME(
myStep - start) * 1000. / (double)duration) <<
"\n";
394 msg.setf(std::ios::fixed, std::ios::floatfield);
395 msg.setf(std::ios::showpoint);
396 msg <<
" UPS: " << ((double)
myVehiclesMoved / ((
double)duration / 1000)) <<
"\n";
398 msg <<
" UPS-Persons: " << ((double)
myPersonsMoved / ((
double)duration / 1000)) <<
"\n";
404 msg <<
"Vehicles: " <<
"\n"
411 std::vector<std::string> reasons;
430 msg <<
"Persons: " <<
"\n"
468 std::cout <<
SIMTIME <<
": MSNet::simulationStep() called"
469 <<
", myStep = " <<
myStep
479 bool loadRequested = !TraCI::getLoadArgs().empty();
504 std::replace(timeStamp.begin(), timeStamp.end(),
':',
'-');
509 MSRoutingEngine::waitForAll();
558 MSRoutingEngine::waitForAll();
614 if (stopTime >= 0 &&
myStep >= stopTime) {
633 return "The final simulation step has been reached.";
635 return "All vehicles have left the simulation.";
637 return "TraCI requested termination.";
639 return "An error occurred (see log).";
641 return "Interrupted.";
643 return "Too many teleports.";
645 return "TraCI issued load command.";
647 return "Unknown reason.";
684 if (oc.
isSet(
"netstate-dump")) {
686 oc.
getInt(
"netstate-dump.precision"));
697 oc.
getInt(
"emission-output.precision"));
703 oc.
getInt(
"battery-output.precision"));
726 timestep = timestep.substr(0, timestep.length() - 3);
728 std::string filename = output +
"_" + timestep +
".vtp";
757 od.
writeAttr(
"meanWaitingTime", meanWaitingTime);
758 od.
writeAttr(
"meanTravelTime", meanTravelTime);
760 od.
writeAttr(
"meanSpeed", meanSpeed.first);
761 od.
writeAttr(
"meanSpeedRelative", meanSpeed.second);
777 for (MSEdgeVector::const_iterator i = edges.begin(); i != edges.end(); ++i) {
778 const std::vector<MSLane*>& lanes = (*i)->getLanes();
779 for (std::vector<MSLane*>::const_iterator j = lanes.begin(); j != lanes.end(); ++j) {
780 const std::vector<MSLink*>& links = (*j)->getLinkCont();
781 for (std::vector<MSLink*>::const_iterator k = links.begin(); k != links.end(); ++k) {
782 (*k)->writeApproaching(od, (*j)->getID());
791 dev->updateAndWriteOutput();
796 if (dev->generatesOutput()) {
849 std::ostringstream oss;
850 oss.setf(std::ios::fixed, std::ios::floatfield);
851 oss.setf(std::ios::showpoint);
856 << (
TS / durationSec) <<
"*RT, ~"
859 oss <<
" (0ms ?*RT. ?";
870 std::cout << oss.str().substr(0, 90 - prev.length());
899 listener->vehicleStateChanged(vehicle, to, info);
925 return stop->
getID();
949 static_cast<MSChargingStation*>(it.second)->writeChargingStationOutput(output);
971 if (routingAlgorithm ==
"dijkstra") {
974 if (routingAlgorithm !=
"astar") {
975 WRITE_WARNING(
"TraCI and Triggers cannot use routing algorithm '" + routingAlgorithm +
"'. using 'astar' instead.");
1008 const int key = rngIndex * oc.
getInt(
"thread-rngs") + routingMode;
1011 for (
const std::string& opt : oc.
getStringVector(
"persontrip.transfer.car-walk")) {
1012 if (opt ==
"parkingAreas") {
1014 }
else if (opt ==
"ptStops") {
1016 }
else if (opt ==
"allJunctions") {
1036 const MSEdge*
const edge = &i.second->getLane().getEdge();
1042 const MSEdge*
const edge = &i.second->getLane().getEdge();
1045 for (
const auto& a : i.second->getAllAccessPos()) {
1048 if (external !=
nullptr) {
1060 for (MSEdgeVector::const_iterator e = edges.begin(); e != edges.end(); ++e) {
1061 for (std::vector<MSLane*>::const_iterator i = (*e)->getLanes().begin(); i != (*e)->getLanes().end(); ++i) {
1062 if ((*i)->getShape().hasElevation()) {
1085 if (e->getBidiEdge() !=
nullptr) {
ShapeContainer * myShapeContainer
A container for geometrical shapes;.
MSNet(MSVehicleControl *vc, MSEventControl *beginOfTimestepEvents, MSEventControl *endOfTimestepEvents, MSEventControl *insertionEvents, ShapeContainer *shapeCont=0)
Constructor.
A train stop (alias for bus stop)
const MSLane & getLane() const
Returns the lane this stop is located at.
static void cleanup()
Static cleanup.
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
static void write(OutputDevice &of, SUMOTime timestep)
Dumping a hugh List of Parameters available in the Simulation.
bool hasInternalLinks() const
return whether the network contains internal links
Stores time-dependant events and executes them at the proper time.
static double getEffort(const MSEdge *const e, const SUMOVehicle *const v, double t)
Returns the effort to pass an edge.
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
SUMOAbstractRouter< MSEdge, SUMOVehicle > & getRouterTT(const int rngIndex, const MSEdgeVector &prohibited=MSEdgeVector()) const
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
MSStoppingPlace * getStoppingPlace(const std::string &id, const SumoXMLTag category) const
Returns the named stopping place of the given category.
A lane area vehicles can halt at.
bool myHasElevation
Whether the network contains elevation data.
static void cleanup()
remove state at simulation end
_IntermodalEdge * getStopEdge(const std::string &stopId) const
Returns the associated stop edge.
#define WRITE_WARNING(msg)
int getDepartedVehicleNo() const
Returns the number of inserted vehicles.
int getTeleportsWrongLane() const
return the number of teleports due to vehicles stuck on the wrong lane
void preSimStepOutput() const
Prints the current step number.
Representation of a lane in the micro simulation.
A device which collects info on the vehicle trip (mainly on departure and arrival)
static const std::string STAGE_INSERTIONS
static void closeAll(bool keepErrorRetrievers=false)
void simulationStep()
Performs a single simulation step.
junctions with edges allowing the additional mode
int emitVehicles(SUMOTime time)
Emits vehicles that want to depart at the given time.
MSVehicleControl * myVehicleControl
Controls vehicle building and deletion;.
static void write(OutputDevice &of, const MSEdgeControl &ec, SUMOTime timestep, int precision)
Writes the complete network state of the given edges into the given device.
double getEndLanePosition() const
Returns the end position of this stop.
Static storage of an output device and its base (abstract) implementation.
static void cleanupStatic()
Place for static initializations of simulation components (called after successful net build)
void removeVehicleStateListener(VehicleStateListener *listener)
Removes a vehicle states listener.
int getPendingFlowCount() const
Returns the number of flows that are still active.
long long int myPersonsMoved
ShapeContainer & getShapeContainer()
Returns the shapes container.
void loadNext(SUMOTime step)
loads the next routes up to and including the given time step
static MSNet * myInstance
Unique instance of MSNet.
void writeOutput()
Write netstate, summary and detector output.
int getActiveVehicleCount() const
Returns the number of build vehicles that have not been removed or need to wait for a passenger or a ...
SimulationState simulationState(SUMOTime stopTime) const
Called after a simulation step, this method returns the current simulation state.
int getEmergencyStops() const
return the number of emergency stops
virtual MSTransportableControl & getContainerControl()
Returns the container control.
void informVehicleStateListener(const SUMOVehicle *const vehicle, VehicleState to, const std::string &info="")
Informs all added listeners about a vehicle's state change.
Interface for objects listening to vehicle state changes.
Detectors container; responsible for string and output generation.
The simulated network and simulation perfomer.
MSEventControl * myEndOfTimestepEvents
Controls events executed at the end of a time step;.
double getBeginLanePosition() const
Returns the begin position of this stop.
std::unique_ptr< MSDynamicShapeUpdater > myDynamicShapeUpdater
Updater for dynamic shapes that are tracking traffic objects (ensures removal of shape dynamics when ...
void abortWaiting()
informes about all waiting vehicles (deletion in destructor)
MSInsertionControl & getInsertionControl()
Returns the insertion control.
bool warnOnce(const std::string &typeAndID)
return whether a warning regarding the given object shall be issued
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
static void write(OutputDevice &of, SUMOTime timestep, int precision)
Writes the complete network state of the given edges into the given device.
int myMaxTeleports
Maximum number of teleports.
static const std::string STAGE_LANECHANGE
SUMOTime myEdgeDataEndTime
end of loaded edgeData
TRACI_CONST int ROUTING_MODE_COMBINED
std::vector< MSTrafficLightLogic * > getAllLogics() const
Returns a vector which contains all logics.
int getTeleportsJam() const
return the number of teleports due to jamming
static void init()
Static initalization.
Representation of a vehicle.
void postSimStepOutput() const
Prints the statistics of the step at its end.
IntermodalRouter< MSEdge, MSLane, MSJunction, SUMOVehicle > MSIntermodalRouter
Storage for geometrical objects.
double myVersion
the network version
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
std::vector< SUMOTime > myStateDumpTimes
Times at which a state shall be written.
static void write(OutputDevice &of, SUMOTime timestep, bool elevation)
Writes the position and the angle of each vehicle into the given device.
static void cleanup()
Clean up remaining devices instances.
int getLoadedVehicleNo() const
Returns the number of build vehicles.
static OptionsCont & getOptions()
Retrieves the options.
static void clearAll()
Clears all dictionaries.
int getTeleportsYield() const
return the number of teleports due to vehicles stuck on a minor road
bool logSimulationDuration() const
Returns whether duration shall be logged.
static const std::set< MSDevice_SSM *, ComparatorNumericalIdLess > & getInstances()
returns all currently existing SSM devices
std::map< int, MSPedestrianRouter * > myPedestrianRouter
SimulationState simulate(SUMOTime start, SUMOTime stop)
Simulates from timestep start to stop.
int getWaitingVehicleNo() const
Returns the number of waiting vehicles.
MSDynamicShapeUpdater * makeDynamicShapeUpdater()
Creates and returns a dynamic shapes updater.
std::string getStoppingPlaceID(const MSLane *lane, const double pos, const SumoXMLTag category) const
Returns the stop of the given category close to the given position.
void close(SUMOTime step)
Closes the detector outputs.
static void saveState(const std::string &file, SUMOTime step)
Saves the current state.
void closeSimulation(SUMOTime start)
Closes the simulation (all files, connections, etc.)
SumoXMLTag
Numbers representing SUMO-XML - element names.
static void write(OutputDevice &of, SUMOTime timestep)
Export the queueing length in front of a junction (very experimental!)
Computes the shortest path through a network using the Dijkstra algorithm.
void changeLanes(const SUMOTime t)
Moves (precomputes) critical vehicles.
std::vector< std::string > myStateDumpFiles
The names for the state files.
A storage for edge travel times and efforts.
static double gLateralResolution
static long getCurrentMillis()
Returns the current time in milliseconds.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
int getEndedVehicleNo() const
Returns the number of removed vehicles.
static void cleanup()
properly deletes all trigger instances
bool hasNonWaiting() const
checks whether any transportable is still engaged in walking / stopping
const StringVector & getStringVector(const std::string &name) const
Returns the list of string-value of the named option (only for Option_StringVector)
bool myLogExecutionTime
Information whether the simulation duration shall be logged.
void writeChargingStationOutput() const
write charging station output
static MSVehicleTransfer * getInstance()
Returns the instance of this object.
long long int myVehiclesMoved
The overall number of vehicle movements.
int getRunningVehicleNo() const
Returns the number of build and inserted, but not yet deleted vehicles.
const std::map< SUMOVehicleClass, double > * getRestrictions(const std::string &id) const
Returns the restrictions for an edge type If no restrictions are present, 0 is returned.
static int gNumThreads
how many threads to use
void writeOutput(SUMOTime step, bool closing)
Writes the output to be generated within the given time step.
The simulation does not contain further vehicles.
std::vector< std::string > & getLoadArgs()
Container for junctions; performs operations on all stored junctions.
void adaptIntermodalRouter(MSNet::MSIntermodalRouter &router) const
The ToC Device controls transition of control between automated and manual driving.
long mySimBeginMillis
The overall simulation duration.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
bool myAmInterrupted
whether an interrupt occured
int getArrivedVehicleNo() const
Returns the number of arrived vehicles.
std::map< SumoXMLTag, NamedObjectCont< MSStoppingPlace * > > myStoppingPlaces
Dictionary of bus / container stops.
bool retrieveExistingTravelTime(const MSEdge *const e, const double t, double &value) const
Returns a travel time for an edge and time if stored.
std::pair< bool, NamedRTree > myLanesRTree
An RTree structure holding lane IDs.
SimulationState
Possible states of a simulation - running or stopped with different reasons.
The main mesocopic simulation loop.
const NamedObjectCont< MSStoppingPlace * > & getStoppingPlaces(SumoXMLTag category) const
MSIntermodalRouter & getIntermodalRouter(const int rngIndex, const int routingMode=0, const MSEdgeVector &prohibited=MSEdgeVector()) const
The final simulation step has been performed.
A map of named object pointers.
static bool gCheck4Accidents
SUMOTime myStep
Current time step.
void adaptIntermodalRouter(MSNet::MSIntermodalRouter &router) const
MSEdgeWeightsStorage & getWeightsStorage()
Returns the net's internal edge travel times/efforts container.
VehicleState
Definition of a vehicle state.
An output device that encapsulates an ofstream.
bool lefthand() const
return whether the network was built for lefthand traffic
int getNumericalID() const
SUMOTime getCurrentTimeStep() const
Returns the current simulation step.
long myTraCIStepDuration
The last simulation step duration.
static void generateOutputForUnfinished()
generate vehroute output for vehicles which are still in the network
static void clear()
Clears the dictionary.
virtual ~MSNet()
Destructor.
A scoped lock which only triggers on condition.
An error occurred during the simulation step.
Inserts vehicles into the network when their departure time is reached.
std::string myStateDumpPrefix
name components for periodic state
std::map< int, SUMOAbstractRouter< MSEdge, SUMOVehicle > * > myRouterEffort
bool hasTransportables() const
checks whether any transportable waits to finish her plan
static void clear()
Clears the dictionary (delete all known routes, too)
MSPedestrianRouter & getPedestrianRouter(const int rngIndex, const MSEdgeVector &prohibited=MSEdgeVector()) const
MSInsertionControl * myInserter
Controls vehicle insertion;.
public transport stops and access
MSTLLogicControl * myLogics
Controls tls logics, realizes waiting on tls rules;.
void writeBlocks(OutputDevice &od) const
write rail signal block output for all links and driveways
void addVehicleStateListener(VehicleStateListener *listener)
Adds a vehicle states listener.
static void clear()
Clears the dictionary.
std::map< std::string, bool > myWarnedOnce
container to record warnings that shall only be issued once
bool addStoppingPlace(const SumoXMLTag category, MSStoppingPlace *stop)
Adds a stopping place.
void determineCandidates(SUMOTime time)
Checks for all vehicles whether they can be emitted.
static void cleanupAll()
perform cleanup for all devices
std::string time2string(SUMOTime t)
void abortAnyWaitingForVehicle()
aborts the plan for any transportable that is still waiting for a ride
The simulation is loading.
virtual void addStop(const int stopEdge, const Parameterised ¶ms)=0
double getMinimumTravelTime(const SUMOVehicle *const veh) const
returns the minimum travel time for the given vehicle
MSJunctionControl * myJunctions
Controls junctions, realizes right-of-way rules;.
A storage for options typed value containers)
A road/street connecting two junctions.
void loadRoutes()
loads routes for the next few steps
bool checkWalkingarea()
check all lanes for type walkingArea
void detectCollisions(SUMOTime timestep, const std::string &stage)
Detect collisions.
bool retrieveExistingEffort(const MSEdge *const e, const double t, double &value) const
Returns an effort for an edge and time if stored.
bool myLogStepNumber
Information whether the number of the simulation step shall be logged.
static void cleanup()
cleanup remaining data structures
SUMOTime myStateDumpPeriod
The period for writing state.
static void write(OutputDevice &of, SUMOTime timestep, int precision)
Writes the complete network state of the given edges into the given device.
void cleanup()
clean up subscriptions
SUMOTime getTargetTime() const
static const std::string STAGE_MOVEMENTS
static void write(OutputDevice &of, SUMOTime timestep)
Produce a VTK output to use with Tools like ParaView.
bool myHasPedestrianNetwork
Whether the network contains pedestrian network elements.
static void cleanup()
removes remaining vehicleInformation in sVehicles
void processCommandsUntilSimStep(SUMOTime step)
process all commands until the next SUMO simulation step. It is guaranteed that t->getTargetTime() >=...
void checkInsertions(SUMOTime time)
Checks "movement" of stored vehicles.
The connection to a client was closed by the client.
SUMOTime string2time(const std::string &r)
int getCollisionCount() const
return the number of collisions
PedestrianRouter< MSEdge, MSLane, MSJunction, MSVehicle > MSPedestrianRouter
int getJammedNumber() const
Returns the number of times a transportables was jammed.
void setJunctionApproaches(SUMOTime t)
Register junction approaches for all vehicles after velocities have been planned. This is a prerequis...
std::vector< VehicleStateListener * > myVehicleStateListeners
Container for vehicle state listener.
static void postProcessRemoteControl()
static const std::string STAGE_EVENTS
string constants for simstep stages
bool myHasBidiEdges
Whether the network contains bidirectional rail edges.
std::map< std::string, std::map< SUMOVehicleClass, double > > myRestrictions
The vehicle class specific speed restrictions.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static void generateOutputForUnfinished()
generate output for vehicles which are still in the network
std::map< int, SUMOAbstractRouter< MSEdge, SUMOVehicle > * > myRouterTT
const MSEdgeWeightsStorage & getWeightsStorage() const
Returns the vehicle's internal edge travel times/efforts container.
virtual int getHaltingVehicleNo() const
Returns the number of halting vehicles.
std::string myStateDumpSuffix
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
virtual MSTransportableControl & getPersonControl()
Returns the person control.
static MELoop * gMesoNet
mesoscopic simulation infrastructure
static void cleanup()
remove state at simulation end
The simulation is running.
static std::string printStatistics()
get statistics for printing to stdout
void removePending()
Removes a vehicle after it has ended.
void checkWaiting(MSNet *net, const SUMOTime time)
checks whether any transportables waiting time is over
std::vector< MSEdge * > MSEdgeVector
int getRunningNumber() const
Returns the number of build and inserted, but not yet deleted transportables.
bool myLefthand
Whether the network was built for left-hand traffic.
MSTransportableControl * myContainerControl
Controls container building and deletion;.
void writeRailSignalBlocks() const
write rail signal block output
Computes the shortest path through a network using the A* algorithm.
std::string joinToString(const std::vector< T > &v, const T_BETWEEN &between, std::streamsize accuracy=gPrecision)
the effort calculator interface
static void setArgs(int argc, char **argv)
Stores the command line arguments for later parsing.
SUMORouteLoaderControl * myRouteLoaders
Route loader for dynamic loading of routes.
virtual void execute(SUMOTime time)
Executes time-dependant commands.
const std::string generateStatistics(SUMOTime start)
Writes performance output and running vehicle stats.
double getTotalTravelTime() const
Returns the total travel time.
virtual std::pair< double, double > getVehicleMeanSpeeds() const
get current absolute and relative mean vehicle speed in the network
static void initStatic()
Place for static initializations of simulation components (called after successful net build)
The class responsible for building and deletion of vehicles.
Stores edges and lanes, performs moving of vehicle.
MSDetectorControl * myDetectorControl
Controls detectors;.
int getLoadedNumber() const
Returns the number of build transportables.
double getTotalDepartureDelay() const
Returns the total departure delay.
static TraCIServer * getInstance()
void addAccess(const std::string &stopId, const E *stopEdge, const double pos, const double length, const SumoXMLTag category)
Adds access edges for stopping places to the intermodal network.
int gPrecision
the precision for floating point outputs
A class that stores and controls tls and switching of their programs.
MSEdgeWeightsStorage * myEdgeWeights
The net's knowledge about edge efforts/travel times;.
bool checkBidiEdges()
check wether bidirectional edges occur in the network
void executeMovements(SUMOTime t)
Executes planned vehicle movements with regards to right-of-way.
void planMovements(SUMOTime t)
Compute safe velocities for all vehicles based on positions and speeds from the last time step....
static bool wasClosed()
check whether close was requested
void addRestriction(const std::string &id, const SUMOVehicleClass svc, const double speed)
Adds a restriction for an edge type.
TraCI server used to control sumo by a remote TraCI client.
std::map< int, MSIntermodalRouter * > myIntermodalRouter
void closeBuilding(const OptionsCont &oc, MSEdgeControl *edges, MSJunctionControl *junctions, SUMORouteLoaderControl *routeLoaders, MSTLLogicControl *tlc, std::vector< SUMOTime > stateDumpTimes, std::vector< std::string > stateDumpFiles, bool hasInternalLinks, bool hasNeighs, bool lefthand, double version)
Closes the network's building process.
int getTeleportCount() const
return the number of teleports (including collisions)
MSEventControl * myInsertionEvents
Controls insertion events;.
static std::string getStateMessage(SimulationState state)
Returns the message to show if a certain state occurs.
An external interrupt occured.
void patchActiveLanes()
Resets information whether a lane is active for all lanes.
Network * getNetwork() const
void check2Switch(SUMOTime step)
Checks whether any WAUT is trying to switch a tls into another program.
static void adaptIntermodalRouter(MSIntermodalRouter &router)
bool myHasInternalLinks
Whether the network contains internal links/lanes/edges.
static const MSEdgeVector & getAllEdges()
Returns all edges with a numerical id.
void simulate(SUMOTime tMax)
Perform simulation up to the given time.
EffortCalculator * getExternalEffort() const
bool checkElevation()
check all lanes for elevation data
The simulation had too many teleports.
const std::string & getID() const
Returns the id.
static double getTravelTime(const MSEdge *const e, const SUMOVehicle *const v, double t)
Returns the travel time to pass an edge.
SUMOAbstractRouter< MSEdge, SUMOVehicle > & getRouterEffort(const int rngIndex, const MSEdgeVector &prohibited=MSEdgeVector()) const
MSEdgeControl * myEdges
Controls edges, performs vehicle movement;.
static void write(OutputDevice &of, const SUMOTime timestep)
Writes the complete network state into the given device.
static OutputDevice & getDeviceByOption(const std::string &name)
Returns the device described by the option.
#define WRITE_MESSAGE(msg)
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
MSTransportableControl * myPersonControl
Controls person building and deletion;.
const MSEdgeVector & getEdges() const
Returns loaded edges.
void updateDetectors(const SUMOTime step)
Computes detector values.
static const std::set< MSDevice_ToC *, ComparatorNumericalIdLess > & getInstances()
returns all currently existing ToC devices
static void cleanup()
Closes root tags of output files.
MSEventControl * myBeginOfTimestepEvents
Controls events executed at the begin of a time step;.
Representation of a vehicle in the micro simulation.