Skip to content

Commit

Permalink
saving arrival data in tripinfo state. refs #9891
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed May 17, 2024
1 parent 68a9e88 commit 2fabe23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/microsim/devices/MSDevice_Tripinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,8 @@ MSDevice_Tripinfo::saveState(OutputDevice& out) const {
internals << myDepartLane << " " << myDepartPosLat << " ";
}
internals << myDepartSpeed << " " << myRouteLength << " " << myWaitingTime << " " << myAmWaiting << " " << myWaitingCount << " ";
internals << myStoppingTime << " " << myParkingStarted;
internals << myStoppingTime << " " << myParkingStarted << " ";
internals << myArrivalTime << " " << myArrivalLane << " " << myArrivalPos << " " << myArrivalPosLat << " " << myArrivalSpeed;
out.writeAttr(SUMO_ATTR_STATE, internals.str());
out.closeTag();
}
Expand All @@ -909,6 +910,7 @@ MSDevice_Tripinfo::loadState(const SUMOSAXAttributes& attrs) {
}
bis >> myDepartSpeed >> myRouteLength >> myWaitingTime >> myAmWaiting >> myWaitingCount;
bis >> myStoppingTime >> myParkingStarted;
bis >> myArrivalTime >> myArrivalLane >> myArrivalPos >> myArrivalPosLat >> myArrivalSpeed;
}


Expand Down

0 comments on commit 2fabe23

Please sign in to comment.