39 #ifdef CHECK_MEMORY_LEAKS
41 #endif // CHECK_MEMORY_LEAKS
53 #ifndef HAVE_INTERNAL_LANES
59 myRequestIdx(0), myRespondIdx(0),
60 myState(state), myDirection(dir), myLength(length) {}
66 myRequestIdx(0), myRespondIdx(0),
67 myState(state), myDirection(dir), myLength(length),
68 myJunctionInlane(via) {}
77 const std::vector<MSLink*>& foeLinks,
78 const std::vector<MSLane*>& foeLanes) {
110 if ((*i)->isBlockingAnyone()) {
144 if ((*i)->blockedAtTime(arrivalTime, leaveTime, leaveSpeed)) {
149 if ((*i)->getVehicleNumber() > 0 || (*i)->getPartialOccupator() != 0) {
160 if (!(*i).willPass) {
163 if ((*i).leavingTime < arrivalTime) {
165 if ((*i).leavingTime +
safeHeadwayTime(i->vehicle->getSpeed(), speed) >= arrivalTime) {
168 }
else if ((*i).arrivalTime > leaveTime) {
170 if ((*i).arrivalTime -
safeHeadwayTime(speed, i->vehicle->getSpeed()) <= leaveTime) {
200 return TIME2STEPS((g + 0.5) / u + (u / b - 1.0) * 0.5);
203 return TIME2STEPS((g + (1.0 + v - v * v / a) * 0.5) / u + (u / b - 1.0) * 0.5);
211 if ((*i)->blockedAtTime(arrivalTime, leaveTime, speed)) {
216 if ((*i)->getVehicleNumber() > 0 || (*i)->getPartialOccupator() != 0) {
242 #ifdef HAVE_INTERNAL_LANES
244 MSLink::getViaLane()
const {
245 return myJunctionInlane;
252 #ifdef HAVE_INTERNAL_LANES
253 if (myJunctionInlane != 0) {
254 return myJunctionInlane;