MATSIM
WithinDayConfigGroup.java
Go to the documentation of this file.
1 
2 /* *********************************************************************** *
3  * project: org.matsim.*
4  * WithinDayConfigGroup.java
5  * *
6  * *********************************************************************** *
7  * *
8  * copyright : (C) 2019 by the members listed in the COPYING, *
9  * LICENSE and WARRANTY file. *
10  * email : info at matsim dot org *
11  * *
12  * *********************************************************************** *
13  * *
14  * This program is free software; you can redistribute it and/or modify *
15  * it under the terms of the GNU General Public License as published by *
16  * the Free Software Foundation; either version 2 of the License, or *
17  * (at your option) any later version. *
18  * See also COPYING, LICENSE and WARRANTY file *
19  * *
20  * *********************************************************************** */
21 
22 package org.matsim.withinday.controller;
23 
24 import java.util.Map;
25 
27 
32 public final class WithinDayConfigGroup extends ReflectiveConfigGroup {
33  public static final String GROUP_NAME = "withinDay" ;
34 
36  super(GROUP_NAME);
37  }
38 
39  // ---
40  // ---
41 
42  // yyyy I cannot say yet if this should restrict to "TravelTimePrediction". Probably yes. Needs to be decided before escalated to xml config. kai, may'17
43 
44  public enum ShortTermPredictionMethod { currentSpeeds }
45 
47  // I think this is what the original code does: use "current" travel times (whatever that means; I still need to find out). kai, may'17
48 
49  private static final String SHORT_TERM_PREDICTION_METHOD_CMT="method to predict travel times for the future" ;
50 
57  return predictionMethod;
58  }
64  public void setPredictionMethod(ShortTermPredictionMethod predictionMethod) {
65  this.predictionMethod = predictionMethod;
66  }
67 
68  // ---
69  // ---
70 
71  @Override public Map<String, String> getComments() {
72  Map<String, String> comments = super.getComments();
73  return comments ;
74  }
75 }
void setPredictionMethod(ShortTermPredictionMethod predictionMethod)