MATSIM
LinkStatsConfigGroup.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * *
4  * *********************************************************************** *
5  * *
6  * copyright : (C) 2011 by the members listed in the COPYING, *
7  * LICENSE and WARRANTY file. *
8  * email : info at matsim dot org *
9  * *
10  * *********************************************************************** *
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * See also COPYING, LICENSE and WARRANTY file *
17  * *
18  * *********************************************************************** */
19 
20 package org.matsim.core.config.groups;
21 
22 import java.util.Map;
23 
25 
29 public final class LinkStatsConfigGroup extends ReflectiveConfigGroup {
30 
31  public static final String GROUP_NAME = "linkStats";
32 
33  private static final String WRITELINKSTATSINTERVAL = "writeLinkStatsInterval";
34  private static final String AVERAGELINKSTATSOVERITERATIONS = "averageLinkStatsOverIterations";
35 
36  private int writeLinkStatsInterval = 50;
38 
40  super(GROUP_NAME);
41  }
42 
43  @Override
44  public Map<String, String> getComments() {
45  Map<String, String> comments = super.getComments();
46  comments.put(WRITELINKSTATSINTERVAL, "Specifies how often the link stats should be calculated and written. Use 0 to disable the generation of link stats.");
47  comments.put(AVERAGELINKSTATSOVERITERATIONS, "Specifies over how many iterations the link volumes should be averaged that are used for the " +
48  "link statistics. Use 1 or 0 to only use the link volumes of a single iteration. This values cannot be larger than the value specified for " + WRITELINKSTATSINTERVAL);
49  return comments;
50  }
51 
52  @StringGetter( WRITELINKSTATSINTERVAL )
54  return this.writeLinkStatsInterval;
55  }
56 
58  public void setWriteLinkStatsInterval(int writeCountsInterval) {
59  this.writeLinkStatsInterval = writeCountsInterval;
60  }
61 
65  }
66 
70  }
71 }