Skip to content

Commit

Permalink
refactoring refs #12
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed May 5, 2024
1 parent 9cd5236 commit 62a432e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libsumo/Person.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ Person::getStage(const std::string& personID, int nextStageIndex) {
}
case MSStageType::WAITING: {
auto* waitingStage = (MSStageWaiting*) stage;
if (waitingStage->getDuration() > 0) {
result.travelTime = STEPS2TIME(waitingStage->getDuration());
if (waitingStage->getPlannedDuration() > 0) {
result.travelTime = STEPS2TIME(waitingStage->getPlannedDuration());
}
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/microsim/transportables/MSStageWaiting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MSStageWaiting::getUntil() const {
}

SUMOTime
MSStageWaiting::getDuration() const {
MSStageWaiting::getPlannedDuration() const {
return myWaitingDuration;
}

Expand Down
2 changes: 1 addition & 1 deletion src/microsim/transportables/MSStageWaiting.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class MSStageWaiting : public MSStage {

SUMOTime getUntil() const;

SUMOTime getDuration() const;
SUMOTime getPlannedDuration() const;

SUMOTime getStopEnd() const {
return myStopEndTime;
Expand Down

0 comments on commit 62a432e

Please sign in to comment.