MATSIM
PtCountSimComparisonWriter.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * PtCountSimComparisonWriter.java
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2010 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 
24 package org.matsim.pt.counts.obsolete;
25 
26 import java.util.List;
27 
31 
32 @Deprecated // we should try to rather make CountSimComparisonKMLWriter more general. kai, dec'13
33 public abstract class PtCountSimComparisonWriter implements MatsimSomeWriter {
34  public enum PtCountsType {
35  Boarding, Alighting, Occupancy
36  }
37 
38  @Deprecated // we should try to rather make CountSimComparisonKMLWriter more general. kai, dec'13
39  protected int iter;
40 
41  @Deprecated // we should try to rather make CountSimComparisonKMLWriter more general. kai, dec'13
42  protected CountSimComparisonTimeFilter boardCountComparisonFilter, alightCountComparisonFilter, occupancyCountComparisonFilter;
43 
47  @Deprecated // we should try to rather make CountSimComparisonKMLWriter more general. kai, dec'13
48  public PtCountSimComparisonWriter(final List<CountSimComparison> boardCountSimCompList, final List<CountSimComparison> alightCountSimCompList, final List<CountSimComparison> occupancyCountSimCompList) {
49  if ( boardCountSimCompList != null ) {
50  this.boardCountComparisonFilter = new CountSimComparisonTimeFilter(boardCountSimCompList);
51  }
52  if ( alightCountSimCompList!=null ) {
53  this.alightCountComparisonFilter = new CountSimComparisonTimeFilter(alightCountSimCompList);
54  }
55  if ( occupancyCountSimCompList != null ) {
56  this.occupancyCountComparisonFilter = new CountSimComparisonTimeFilter(occupancyCountSimCompList);
57  }
58  }
59 
60  @Deprecated // we should try to rather make CountSimComparisonKMLWriter more general. kai, dec'13
61  public abstract void writeFile(final String filename);
62 
63  @Deprecated // we should try to rather make CountSimComparisonKMLWriter more general. kai, dec'13
64  public void setIterationNumber(int iter) {
65  this.iter = iter;
66  }
67 }
PtCountSimComparisonWriter(final List< CountSimComparison > boardCountSimCompList, final List< CountSimComparison > alightCountSimCompList, final List< CountSimComparison > occupancyCountSimCompList)
abstract void writeFile(final String filename)