65 #include <mesosim/MEVehicleControl.h>
73 #ifdef CHECK_MEMORY_LEAKS
92 vc =
new MEVehicleControl();
110 NLHandler handler(
"", *net, db, tb, eb, jb);
112 NLBuilder builder(oc, *net, eb, jb, db, handler);
113 if (!builder.
build()) {
154 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
160 }
catch (
const std::exception& e) {
161 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.
static void getOptions(bool loadConfig, int argc=0, char **argv=0)
Parses the command line arguments and loads the configuration optionally.
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.
int simulate(SUMOTime start, SUMOTime stop)
Simulates from timestep start to stop.
static void close()
Closes all of an applications subsystems.
The simulated network and simulation perfomer.
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)
static MTRand myVehicleParamsRNG
A random number generator used to choose from vtype/route distributions and computing the speed facto...
The XML-Handler for network loading.
static bool checkOptions()
Checks the set options.
virtual bool build()
Builds and initialises the simulation.
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 const bool gUseMesoSim
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.
int main(int argc, char *argv[])
void setApplicationName(const std::string &appName, const std::string &fullName)
Sets the application name.