MATSIM
withinday
controller
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
26
import
org
.
matsim
.
core
.
config
.
ReflectiveConfigGroup
;
27
32
public
final
class
WithinDayConfigGroup
extends
ReflectiveConfigGroup
{
33
public
static
final
String
GROUP_NAME
=
"withinDay"
;
34
35
public
WithinDayConfigGroup
() {
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
46
ShortTermPredictionMethod
predictionMethod =
ShortTermPredictionMethod
.
currentSpeeds
;
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
56
public
ShortTermPredictionMethod
getPredictionMethod
() {
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
}
org
org.matsim.withinday.controller.WithinDayConfigGroup.ShortTermPredictionMethod
Definition:
WithinDayConfigGroup.java:44
org.matsim.withinday.controller.WithinDayConfigGroup.ShortTermPredictionMethod.currentSpeeds
currentSpeeds
Definition:
WithinDayConfigGroup.java:44
org.matsim.core.config
Definition:
CommandLine.java:22
org.matsim.withinday.controller.WithinDayConfigGroup.GROUP_NAME
static final String GROUP_NAME
Definition:
WithinDayConfigGroup.java:33
org.matsim.withinday.controller.WithinDayConfigGroup.WithinDayConfigGroup
WithinDayConfigGroup()
Definition:
WithinDayConfigGroup.java:35
org.matsim.withinday.controller.WithinDayConfigGroup.SHORT_TERM_PREDICTION_METHOD_CMT
static final String SHORT_TERM_PREDICTION_METHOD_CMT
Definition:
WithinDayConfigGroup.java:49
org.matsim.core
org.matsim.withinday.controller.WithinDayConfigGroup.setPredictionMethod
void setPredictionMethod(ShortTermPredictionMethod predictionMethod)
Definition:
WithinDayConfigGroup.java:64
org.matsim.withinday.controller.WithinDayConfigGroup.getComments
Map< String, String > getComments()
Definition:
WithinDayConfigGroup.java:71
org.matsim.core.config.ReflectiveConfigGroup
Definition:
ReflectiveConfigGroup.java:105
org.matsim.withinday.controller.WithinDayConfigGroup.getPredictionMethod
ShortTermPredictionMethod getPredictionMethod()
Definition:
WithinDayConfigGroup.java:56
org.matsim.withinday.controller.WithinDayConfigGroup
Definition:
WithinDayConfigGroup.java:32
org.matsim
Generated by
1.8.13