Skip to content

Commit

Permalink
changed Initial planId to NONE
Browse files Browse the repository at this point in the history
  • Loading branch information
awagner committed Oct 11, 2023
1 parent ac8946d commit 3d6dac7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public class PlanInheritanceModule extends AbstractModule implements StartupList
public static final String PLAN_MUTATOR = "planMutator";

public static final String INITIAL_PLAN = "initialPlan";
public static final String NONE = "NONE";

public static final String FILENAME_PLAN_INHERITANCE_RECORDS = "planInheritanceRecords";

Expand All @@ -94,7 +95,7 @@ public void notifyStartup(StartupEvent event) {
// reset all plan attributes that might be present from a previously performed matsim run
for (Person person : event.getServices().getScenario().getPopulation().getPersons().values()) {
for (Plan plan : person.getPlans()) {
plan.setPlanId(Long.toString(0, 36));
plan.setPlanId(NONE);
plan.setPlanMutator(INITIAL_PLAN);
plan.setIterationCreated(0);
}
Expand Down

0 comments on commit 3d6dac7

Please sign in to comment.