From b733b6625702c66a4d15361dcbf8e4c8dc79b578 Mon Sep 17 00:00:00 2001 From: awagner Date: Wed, 11 Oct 2023 10:58:30 +0200 Subject: [PATCH] changed Initial planId to NONE --- .../core/replanning/inheritance/PlanInheritanceModule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matsim/src/main/java/org/matsim/core/replanning/inheritance/PlanInheritanceModule.java b/matsim/src/main/java/org/matsim/core/replanning/inheritance/PlanInheritanceModule.java index c400c04b234..e8b2b30fbe5 100644 --- a/matsim/src/main/java/org/matsim/core/replanning/inheritance/PlanInheritanceModule.java +++ b/matsim/src/main/java/org/matsim/core/replanning/inheritance/PlanInheritanceModule.java @@ -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"; @@ -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); }