src/main/java/ficus_transims/RoutingPlan.java
@@ -287,7 +287,6 @@ public class RoutingPlan { |
t1 = start_time + h.WalkDispatchTime[1] + walking_time; |
t2 = t1 + GE.StartReturnOffset + walking_time; |
if (t1 < time_line_length){ |
- System.out.println("T1 Time: " + Integer.toString(t1) + "Walk Dispatch Time: " + h.WalkDispatchTime[1]); |
ls = this.TimeLineEvents.get(t1); |
// System.out.println("Line 291. If ls is empty: " + Boolean.toString(ls.isEmpty()) + "Trip : " + Integer.toString(trip) + " TRANSIMS_HHID : " + Integer.toString(h.TransimsHHID) + " Origin: " + Integer.toString(o) + " Destination: " + Integer.toString(d)); |
ls.add(new int[]{trip, o, d, 1, h.TransimsHHID, 1}); |
src/main/java/ficus_transims/UrbanSystem.java
@@ -43,6 +43,7 @@ public class UrbanSystem implements Serializable { |
protected int AnalysisPeriod; |
protected int maxVHID; |
protected int maxHHID; |
+ protected int startTime; |
protected int disruptionLevel; // Determine the influence of household travelers: 0--continue the trip; 1--return to base |
ResourceSecurityOutput WaterRsrOutput; |
ResourceSecurityOutput FuelRsrOutput; |
@@ -87,6 +88,7 @@ public class UrbanSystem implements Serializable { |
this.AL = AL; |
this.SystemTime = time; |
this.AnalysisPeriod = period; |
+ this.startTime = this.SystemTime; |
this.VehicleOwnerNResource = new HashMap<>(); |
this.HHIDReference = new HashMap<>(); |
this.FakeHouseholdInfor = new HashMap<>(); |
@@ -378,7 +380,7 @@ public class UrbanSystem implements Serializable { |
ArrayList events; |
// ArrayList<Integer> new_failed = new ArrayList<Integer>(); |
Progress pr = new Progress(this.AnalysisPeriod); |
- for (t = 0; t < this.AnalysisPeriod; t++) { |
+ for (t = this.startTime; t < this.AnalysisPeriod + this.startTime; t++) { |
pr.makeProgress(); |
this.SystemTime++; |
if (t % GE.PopulationResourceSimulationTimestep == 0) { |