52 #ifdef CHECK_MEMORY_LEAKS
54 #endif // CHECK_MEMORY_LEAKS
99 if (!oc.
isSet(
"matsim-files")) {
107 for (std::vector<std::string>::const_iterator file = files.begin(); file != files.end(); ++file) {
110 WRITE_ERROR(
"Could not open matsim-file '" + *file +
"'.");
113 nodesHandler.setFileName(*file);
123 for (std::vector<std::string>::const_iterator file = files.begin(); file != files.end(); ++file) {
138 matsimAttrs, MATSIM_ATTR_NOTHING,
139 "matsim - file"), myNodeCont(toFill) {
161 WRITE_ERROR(
"Unable to project coordinates for node '" +
id +
"'.");
164 if (!myNodeCont.insert(node)) {
166 WRITE_ERROR(
"Could not add node '" +
id +
"'. Probably declared twice.");
176 bool keepEdgeLengths,
bool lanesFromCapacity,
180 myNodeCont(nc), myEdgeCont(toFill), myCapacityNorm(3600),
181 myKeepEdgeLengths(keepEdgeLengths), myLanesFromCapacity(lanesFromCapacity),
182 myCapacity2Lanes(capacity2Lanes) {
198 myCapacityNorm = (
SUMOReal)(capDivider * 3600);
206 if (st.
size() != 3) {
207 WRITE_ERROR(
"Bogus capacity period format; requires 'hh:mm:ss'.");
214 myCapacityNorm = (
SUMOReal)(hours * 3600 + minutes * 60 + seconds);
235 NBNode* fromNode = myNodeCont.retrieve(fromNodeID);
236 NBNode* toNode = myNodeCont.retrieve(toNodeID);
238 WRITE_ERROR(
"Could not find from-node for edge '" +
id +
"'.");
241 WRITE_ERROR(
"Could not find to-node for edge '" +
id +
"'.");
243 if (fromNode == 0 || toNode == 0) {
246 if (myLanesFromCapacity) {
247 permLanes = myCapacity2Lanes.get(capacity);
251 if (myKeepEdgeLengths) {
254 if (!myEdgeCont.insert(edge)) {
256 WRITE_ERROR(
"Could not add edge '" +
id +
"'. Probably declared twice.");