42 #ifdef CHECK_MEMORY_LEAKS
44 #endif // CHECK_MEMORY_LEAKS
64 "' has to be given in the definition of flow '" +
id +
"'.");
72 "' are allowed in flow '" +
id +
"'.");
79 "' is needed in flow '" +
id +
"'.");
89 #ifdef HAVE_SUBSECOND_TIMESTEPS
100 throw ProcessError(
"Invalid repetition rate in the definition of flow '" +
id +
"'.");
102 if (ok && vph != 0) {
107 ret->
depart = beginDefault;
111 if (ok && ret->
depart < 0) {
113 throw ProcessError(
"Negative begin time in the definition of flow '" +
id +
"'.");
122 if (ok && end <= ret->depart) {
124 throw ProcessError(
"Flow '" +
id +
"' ends before or at its begin time.");
131 throw ProcessError(
"Negative repetition number in the definition of flow '" +
id +
"'.");
139 throw ProcessError(
"Invalid repetition rate in the definition of flow '" +
id +
"'.");
157 bool optionalID,
bool skipDepart) {
159 std::string id, errorMsg;
168 "' have to be given both in the definition of '" +
id +
"'.");
180 if (helper ==
"triggered") {
185 if (ok && ret->
depart < 0) {
186 errorMsg =
"Negative departure time in the definition of '" +
id +
"'.";
193 WRITE_WARNING(
"period and repno are deprecated in vehicle '" +
id +
"', use flows instead.");
195 #ifdef HAVE_SUBSECOND_TIMESTEPS
400 CFAttrMap::const_iterator cf_it;
401 for (cf_it = allowedAttrs.begin(); cf_it != allowedAttrs.end(); cf_it++) {
402 if (cf_it->first == element) {
406 if (cf_it == allowedAttrs.end()) {
410 WRITE_ERROR(
"Unknown cfmodel when parsing vtype '" + into.
id +
"'");
419 for (std::set<SumoXMLAttr>::const_iterator it = cf_it->second.begin(); it != cf_it->second.end(); it++) {
424 +
" in car following model '" +
toString(into.
cfModel) +
"' lower than simulation step size may cause collisions");
438 std::set<SumoXMLAttr> krausParams;
447 std::set<SumoXMLAttr> smartSKParams;
459 std::set<SumoXMLAttr> daniel1Params;
471 std::set<SumoXMLAttr> pwagParams;
480 std::set<SumoXMLAttr> idmParams;
488 std::set<SumoXMLAttr> idmmParams;
497 std::set<SumoXMLAttr> bkernerParams;
505 std::set<SumoXMLAttr> wiedemannParams;
518 const std::string&
id) {