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