MATSIM
PreplanningUtils.java
Go to the documentation of this file.
1 package org.matsim.core.mobsim.qsim;
2 
4 
5 public class PreplanningUtils{
6  private PreplanningUtils() {} // do not instantiate
7  public static Double getPrebookingOffset_s( Plan plan ){
8  // yyyy prebooking info needs to be in plan since it will not survive in the leg. :-( kai, jan'20
9  return (Double) plan.getAttributes().getAttribute( "prebookingOffset_s" );
10  }
11  public static void setPrebookingOffset_s( Plan plan, double offset ){
12  plan.getAttributes().putAttribute( "prebookingOffset_s", offset );
13  // yyyy prebooking info needs to be in plan since it will not survive in the leg. :-( kai, jan'20
14  }
15 }
static void setPrebookingOffset_s(Plan plan, double offset)
Object putAttribute(final String attribute, final Object value)