MATSIM
PlanInheritanceRecord.java
Go to the documentation of this file.
1 package org.matsim.core.replanning.inheritance;
2 
3 /* *********************************************************************** *
4  * project: org.matsim.*
5  * ParallelPopulationReaderMatsimV6.java
6  * *
7  * *********************************************************************** *
8  * *
9  * copyright : (C) 2023 by the members listed in the COPYING, *
10  * LICENSE and WARRANTY file. *
11  * email : info at matsim dot org *
12  * *
13  * *********************************************************************** *
14  * *
15  * This program is free software; you can redistribute it and/or modify *
16  * it under the terms of the GNU General Public License as published by *
17  * the Free Software Foundation; either version 2 of the License, or *
18  * (at your option) any later version. *
19  * See also COPYING, LICENSE and WARRANTY file *
20  * *
21  * *********************************************************************** */
22 
23 import java.util.ArrayList;
24 import java.util.List;
25 
26 import org.matsim.api.core.v01.Id;
29 
35 public class PlanInheritanceRecord {
36 
41 
45  private Id<Plan> planId;
46 
51 
55  private String mutatedBy;
56 
60  private int iterationCreated;
61 
65  private int iterationRemoved = -1;
66 
71  private List<Integer> iterationsSelected = new ArrayList<>(1);
72 
73  public Id<Plan> getPlanId() {
74  return planId;
75  }
76 
77  public void setPlanId(Id<Plan> planId) {
78  this.planId = planId;
79  }
80 
82  return ancestorId;
83  }
84 
85  public void setAncestorId(Id<Plan> ancestorId) {
86  this.ancestorId = ancestorId;
87  }
88 
89  public String getMutatedBy() {
90  return mutatedBy;
91  }
92 
93  public void setMutatedBy(String mutatedBy) {
94  this.mutatedBy = mutatedBy;
95  }
96 
97  public int getIterationCreated() {
98  return iterationCreated;
99  }
100 
101  public void setIterationCreated(int iterationCreated) {
102  this.iterationCreated = iterationCreated;
103  }
104 
105  public int getIterationRemoved() {
106  return iterationRemoved;
107  }
108 
109  public void setIterationRemoved(int iterationRemoved) {
110  this.iterationRemoved = iterationRemoved;
111  }
112 
113  public List<Integer> getIterationsSelected() {
114  return iterationsSelected;
115  }
116 
117  public void setIterationsSelected(List<Integer> iterationsSelected) {
118  this.iterationsSelected = iterationsSelected;
119  }
120 
122  return agentId;
123  }
124 
125  public void setAgentId(Id<Person> agentId) {
126  this.agentId = agentId;
127  }
128 
129 }