Skip to content

Commit

Permalink
renamed method for clarity. refs #12
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 5, 2024
1 parent 1a92016 commit 6f3c05a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/netedit/elements/demand/GNEDemandElementPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ GNEDemandElementPlan::getPlanMoveOperation() {


void
GNEDemandElementPlan::writePlanAttributes(OutputDevice& device) const {
GNEDemandElementPlan::writeLocationAttributes(OutputDevice& device) const {
const auto tagProperty = myPlanElement->getTagProperty();
// write attributes depending of parent elements
if (tagProperty.planConsecutiveEdges()) {
Expand Down
2 changes: 1 addition & 1 deletion src/netedit/elements/demand/GNEDemandElementPlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class GNEDemandElementPlan {
GNEMoveOperation* getPlanMoveOperation();

/// @brief write plan element common attributes
void writePlanAttributes(OutputDevice& device) const;
void writeLocationAttributes(OutputDevice& device) const;

/// @brief write initial stop stage if plan starts at a stopping place
void writeOriginStop(OutputDevice& device) const;
Expand Down
2 changes: 1 addition & 1 deletion src/netedit/elements/demand/GNEPersonTrip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void
GNEPersonTrip::writeDemandElement(OutputDevice& device) const {
writeOriginStop(device);
device.openTag(SUMO_TAG_PERSONTRIP);
writePlanAttributes(device);
writeLocationAttributes(device);
if (myModes.size() > 0) {
device.writeAttr(SUMO_ATTR_MODES, myModes);
}
Expand Down
2 changes: 1 addition & 1 deletion src/netedit/elements/demand/GNERide.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void
GNERide::writeDemandElement(OutputDevice& device) const {
writeOriginStop(device);
device.openTag(SUMO_TAG_RIDE);
writePlanAttributes(device);
writeLocationAttributes(device);
if (myLines.empty()) {
device.writeAttr(SUMO_ATTR_LINES, "ANY");
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/netedit/elements/demand/GNEStopPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ GNEStopPlan::getMoveOperation() {
void
GNEStopPlan::writeDemandElement(OutputDevice& device) const {
device.openTag(SUMO_TAG_STOP);
writePlanAttributes(device);
writeLocationAttributes(device);
// write stop attributes
if (isAttributeEnabled(SUMO_ATTR_DURATION)) {
device.writeAttr(SUMO_ATTR_DURATION, getAttribute(SUMO_ATTR_DURATION));
Expand Down
2 changes: 1 addition & 1 deletion src/netedit/elements/demand/GNETranship.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void
GNETranship::writeDemandElement(OutputDevice& device) const {
writeOriginStop(device);
device.openTag(SUMO_TAG_TRANSHIP);
writePlanAttributes(device);
writeLocationAttributes(device);
device.closeTag();
}

Expand Down
2 changes: 1 addition & 1 deletion src/netedit/elements/demand/GNETransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void
GNETransport::writeDemandElement(OutputDevice& device) const {
writeOriginStop(device);
device.openTag(SUMO_TAG_TRANSPORT);
writePlanAttributes(device);
writeLocationAttributes(device);
if (myLines.size() > 0) {
device.writeAttr(SUMO_ATTR_LINES, myLines);
}
Expand Down
2 changes: 1 addition & 1 deletion src/netedit/elements/demand/GNEWalk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void
GNEWalk::writeDemandElement(OutputDevice& device) const {
writeOriginStop(device);
device.openTag(SUMO_TAG_WALK);
writePlanAttributes(device);
writeLocationAttributes(device);
device.closeTag();
}

Expand Down

0 comments on commit 6f3c05a

Please sign in to comment.