40 #ifdef CHECK_MEMORY_LEAKS
42 #endif // CHECK_MEMORY_LEAKS
90 std::vector<MSTrafficLightLogic*> logics = vars.
getAllLogics();
95 tempContent.
writeInt((
int) logics.size());
97 for (
unsigned int i = 0; i < logics.size(); ++i) {
117 tempContent.
writeInt((
int) phaseNo);
119 for (
unsigned int j = 0; j < phaseNo; ++j) {
130 const std::string& state = phase.
getState();
144 std::vector<std::string> laneIDs;
145 for (MSTrafficLightLogic::LaneVectorVector::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
147 for (MSTrafficLightLogic::LaneVector::const_iterator j = llanes.begin(); j != llanes.end(); ++j) {
148 laneIDs.push_back((*j)->getID());
160 unsigned int cnt = 0;
162 unsigned int no = (
unsigned int) lanes.size();
164 for (
unsigned int i = 0; i < no; ++i) {
169 unsigned int no2 = (
unsigned int) llanes.size();
172 for (
unsigned int j = 0; j < no2; ++j) {
174 std::vector<std::string> def;
176 def.push_back(llanes[j]->getID());
180 #ifdef HAVE_INTERNAL_LANES
181 def.push_back(link->getViaLane() != 0 ? link->getViaLane()->getID() :
"");
226 std::string warning =
"";
286 int type = 0, index = 0, phaseNo = 0;
307 if (index >= phaseNo) {
311 std::vector<MSPhaseDefinition*> phases;
312 for (
int j = 0; j < phaseNo; ++j) {
313 int duration = 0, minDuration = 0, maxDuration = 0;
328 phases.push_back(phase);
332 vars.
addLogic(subid, logic,
true,
true);