 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
58 std::cout <<
"Another interrupt signal received, hard exit." << std::endl;
61 std::cout <<
"Interrupt signal received, trying to exit gracefully." << std::endl;
66 std::cout <<
"Step #" <<
SIMSTEP << std::endl;
84 main(
int argc,
char** argv) {
107 if (net !=
nullptr) {
115 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
123 }
catch (
const std::exception& e) {
124 if (std::string(e.what()) != std::string(
"")) {
static void close()
Closes all of an applications subsystems.
The simulated network and simulation perfomer.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
virtual void inform(std::string msg, bool addType=true)
adds a new error to the list
static OptionsCont & getOptions()
Retrieves the options.
SimulationState simulate(SUMOTime start, SUMOTime stop)
Simulates from timestep start to stop.
static void close()
request termination of connection
SimulationState
Possible states of a simulation - running or stopped with different reasons.
void setApplicationName(const std::string &appName, const std::string &fullName)
Sets the application name.
@ SIMSTATE_LOADING
The simulation is loading.
static void init()
Initialises the xml-subsystem.
A storage for options typed value containers)
void signalHandler(int signum)
SUMOTime string2time(const std::string &r)
void setApplicationDescription(const std::string &appDesc)
Sets the application description.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
static void setArgs(int argc, char **argv)
Stores the command line arguments for later parsing.
const std::string generateStatistics(SUMOTime start)
Writes performance output and running vehicle stats.
static bool hasInstance()
Returns whether the network was already constructed.
int main(int argc, char **argv)
static MsgHandler * getErrorInstance()
Returns the instance to add errors to.