MATSIM
PtCountsConfigGroup.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * TransitConfigGroup.java
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2009 by the members listed in the COPYING, *
8  * LICENSE and WARRANTY file. *
9  * email : info at matsim dot org *
10  * *
11  * *********************************************************************** *
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * See also COPYING, LICENSE and WARRANTY file *
18  * *
19  * *********************************************************************** */
20 
21 package org.matsim.core.config.groups;
22 
23 import java.util.Map;
24 
26 
30 public final class PtCountsConfigGroup extends ReflectiveConfigGroup {
31 
32  public static final String GROUP_NAME = "ptCounts";
33 
34  private static final String OUTPUTFORMAT = "outputformat";
35  private static final String DISTANCEFILTER = "distanceFilter";
36  private static final String DISTANCEFILTERCENTERNODE = "distanceFilterCenterNode";
37  private static final String OCCUPANCY_COUNTS_INPUT_FILENAME = "inputOccupancyCountsFile";
38  private static final String BOARD_COUNTS_INPUT_FILENAME = "inputBoardCountsFile";
39  private static final String ALIGHT_COUNTS_INPUT_FILENAME = "inputAlightCountsFile";
40  private static final String COUNTSSCALEFACTOR = "countsScaleFactor";
41  private static final String PT_COUNTS_INTERVAL = "ptCountsInterval" ;
42 
43  private String outputFormat;
44 
48  private Double distanceFilter;
49 
53  private String distanceFilterCenterNode;
54 
58  private String occupancyCountsFileName = null;
59  private String boardCountsFileName = null;
60  private String alightCountsFileName = null;
64  private double countsScaleFactor = 1.0;
65  private int ptCountsInterval = 10 ;
66 
68  super(GROUP_NAME);
69  }
70 
71  @Override
72  public Map<String, String> getComments() {
73  Map<String, String> comments = super.getComments();
74  comments.put(OUTPUTFORMAT, CountsConfigGroup.COUNTS_OUTPUTFORMAT_COMMENT ) ;
75  comments.put(DISTANCEFILTER, CountsConfigGroup.COUNTS_DISTANCEFILTER_COMMENT ) ;
76  comments.put(DISTANCEFILTERCENTERNODE, CountsConfigGroup.COUNTS_DISTANCEFILTERCENTERNODE_COMMENT ) ;
77  comments.put(OCCUPANCY_COUNTS_INPUT_FILENAME, "input file containing the occupancy counts for pt" ) ;
78  comments.put(ALIGHT_COUNTS_INPUT_FILENAME, "input file containing the alighting (getting off) counts for pt" ) ;
79  comments.put(BOARD_COUNTS_INPUT_FILENAME, "input file containing the boarding (getting on) counts for pt" ) ;
80  comments.put(COUNTSSCALEFACTOR, CountsConfigGroup.COUNTSSCALEFACTOR_COMMENT ) ;
81  comments.put(PT_COUNTS_INTERVAL, "every how many iterations (starting with 0) counts comparisons are generated" );
82  return comments;
83  }
84 
85  @StringGetter( OUTPUTFORMAT )
86  public String getOutputFormat() {
87  return outputFormat;
88  }
89 
91  public void setOutputFormat(String outputFormat) {
92  this.outputFormat = outputFormat;
93  }
94 
96  public Double getDistanceFilter() {
97  return distanceFilter;
98  }
99 
101  public void setDistanceFilter(Double distanceFilter) {
103  }
104 
106  public String getDistanceFilterCenterNode() {
108  }
109 
113  }
114 
116  public String getOccupancyCountsFileName() {
118  }
119 
123  }
124 
126  public String getBoardCountsFileName() {
127  return boardCountsFileName;
128  }
129 
133  }
134 
136  public String getAlightCountsFileName() {
137  return alightCountsFileName;
138  }
139 
143  }
144 
146  public double getCountsScaleFactor() {
147  return countsScaleFactor;
148  }
149 
153  }
154 
156  public int getPtCountsInterval() {
157  return ptCountsInterval;
158  }
159 
163  }
164 
165 
166 }
void setBoardCountsFileName(String boardCountsFileName)
void setDistanceFilterCenterNode(String distanceFilterCenterNode)
void setAlightCountsFileName(String alightCountsFileName)
void setOccupancyCountsFileName(String occupancyCountsFileName)