MATSIM
ChangeLegModeConfigGroup.java
Go to the documentation of this file.
1 
2 /* *********************************************************************** *
3  * project: org.matsim.*
4  * ChangeLegModeConfigGroup.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.core.config.groups;
23 
24 
26 
27 @Deprecated
29 
30  public final static String CONFIG_MODULE = "changeLegMode";
31  public final static String CONFIG_PARAM_MODES = "modes";
32  public final static String CONFIG_PARAM_IGNORECARAVAILABILITY = "ignoreCarAvailability";
33 
34 
35  private static final String message = "changeLegMode config group does no longer exist; use changeMode instead";
36 
37  @Deprecated
39  super(CONFIG_MODULE);
40  }
41 
42  @StringGetter( CONFIG_PARAM_MODES )
43  @Deprecated
44  private String getModesString() {
45  throw new RuntimeException(message) ;
46  }
47 
48  @StringSetter( CONFIG_PARAM_MODES )
49  @Deprecated
50  private void setModes( final String value ) {
51  throw new RuntimeException(message) ;
52  }
53 
54  @Deprecated
55  public void setModes( final String[] modes ) {
56  throw new RuntimeException(message) ;
57  }
58 
59  @StringSetter( CONFIG_PARAM_IGNORECARAVAILABILITY )
60  @Deprecated
61  public void setIgnoreCarAvailability(final boolean value) {
62  throw new RuntimeException(message) ;
63  }
64 
65  @StringGetter( CONFIG_PARAM_IGNORECARAVAILABILITY )
66  @Deprecated
67  public boolean getIgnoreCarAvailability() {
68  throw new RuntimeException(message) ;
69  }
70 
71  @Deprecated
72  private static String toString( final String[] modes ) {
73  // (not same as toString() because of argument!)
74  throw new RuntimeException(message) ;
75  }
76 
77  @Deprecated
78  private static String[] toArray( final String modes ) {
79  throw new RuntimeException(message) ;
80  }
81 
82 
83 }