MATSIM
StreamingDeprecated.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.* *
3  * *
4  * *********************************************************************** *
5  * *
6  * copyright : (C) 2008 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 package org.matsim.core.population.io;
20 
21 import org.apache.logging.log4j.LogManager;
22 import org.apache.logging.log4j.Logger;
25 
30 public final class StreamingDeprecated {
31  private static final Logger log = LogManager.getLogger( StreamingDeprecated.class ) ;
32 
33  public static void addAlgorithm( Population pop, PersonAlgorithm algo ) {
34  printError();
35  }
36  static void printError() {
37  log.fatal("This does not work any more after change of the streaming api. You will need something like");
38  log.fatal("StreamingPopulationReader reader = new StreamingPopulationReader( scenario ); " ) ;
39  log.fatal("reader.addAlgorithm(...);") ;
40  log.fatal("reader.readFile(...)" ) ;
41  throw new RuntimeException("This does not work any more after change of the streaming api. ") ;
42  }
43  public static void runAlgorithms( Population pop ) {
44  printError() ;
45  }
46 
47  public static void setIsStreaming( Population pop, boolean isStreaming ) {
48  throw new RuntimeException("you cannot set streaming any more at the regular Population(Impl). "
49  + "Use StreamingPopulationReader, or talk to us if you need something else. kai, jul'16" ) ;
50  }
51  public static void setIsStreaming( StreamingPopulationReader reader, boolean isStreaming ) {
52  throw new RuntimeException("Code around this statement was manually adapted to revised streaming API; "
53  + "pls chk if everything is ok and then remove the call to this method from your code. "
54  + "Pls tlk to us if you have problems. kai, jul'16") ;
55  }
56 
57 }
static void addAlgorithm(Population pop, PersonAlgorithm algo)
static void setIsStreaming(StreamingPopulationReader reader, boolean isStreaming)
static void setIsStreaming(Population pop, boolean isStreaming)