72 #ifdef CHECK_MEMORY_LEAKS 105 NLHandler handler(
"", *net, db, tb, eb, jb);
107 NLBuilder builder(oc, *net, eb, jb, db, handler);
108 if (!builder.
build()) {
150 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
156 }
catch (
const std::exception& e) {
157 if (std::string(e.what()) != std::string(
"")) {
void setHandler(NLHandler *handler)
Sets the parent handler to use for nested parsing.
static void init()
Initialises the xml-subsystem.
static MsgHandler * getErrorInstance()
Returns the instance to add errors to.
Builds detectors for microsim.
The main interface for loading a microsim.
static void setValidation(const std::string &validationScheme, const std::string &netValidationScheme)
Enables or disables validation.
void setApplicationDescription(const std::string &appDesc)
Sets the application description.
static MTRand * getParsingRNG()
int simulate(SUMOTime start, SUMOTime stop)
Simulates from timestep start to stop.
static void close()
Closes all of an applications subsystems.
int main(int argc, char **argv)
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 initRandGlobal(MTRand *which=0)
Reads the given random number options and initialises the random number generator in accordance...
static void fillOptions()
Inserts options used by the simulation into the OptionsCont-singleton.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
Builder of microsim-junctions and tls.
bool processMetaOptions(bool missingOptions)
Checks for help and configuration output, returns whether we should exit.
SUMOTime string2time(const std::string &r)
The class responsible for building and deletion of vehicles (gui-version)
The XML-Handler for network loading.
static bool checkOptions()
Checks the set options.
virtual bool build()
Builds and initialises the simulation.
static void getOptions()
Parses the command line arguments and loads the configuration.
static void openSocket(const std::map< int, CmdExecutor > &execs)
Initialises the server.
void inform(std::string msg, bool addType=true)
adds a new error to the list
A storage for options typed value containers)
static void setMSGlobals(OptionsCont &oc)
Sets the global microsim-options.
The class responsible for building and deletion of vehicles.
MSNet * load(OptionsCont &oc)
Builds trigger objects for microsim.
static void initOutputOptions()
Stores time-dependant events and executes them at the proper time.
Interface for building edges.
void setApplicationName(const std::string &appName, const std::string &fullName)
Sets the application name.