MATSIM
HouseholdsConfigGroup.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * PlansConfigGroup.java
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2007 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.net.URL;
24 
27 
32 public final class HouseholdsConfigGroup extends ReflectiveConfigGroup {
33 
34  public static final String GROUP_NAME = "households";
35 
36  private static final String INPUT_FILE= "inputFile";
37  private static final String INPUT_HOUSEHOLD_ATTRIBUTES_FILE = "inputHouseholdAttributesFile";
38  private static final String INSISTING_ON_USING_DEPRECATED_ATTRIBUTE_FILE = "insistingOnUsingDeprecatedHouseholdsAttributeFile" ;
39 
40  public static final String HOUSEHOLD_ATTRIBUTES_DEPRECATION_MESSAGE = "using the separate households attribute file is deprecated. Add the information directly into each household, using " +
41  "the Attributable feature. If you insist on continuing to use the separate household attribute file, set " +
42  "insistingOnUsingDeprecatedFacilityAttributeFile to true. The file will then be read, but the values " +
43  "will be entered into each facility using Attributable, and written as such to output_facilities.";
44 
45  private String inputFile = null;
46  private String inputHouseholdAttributesFile = null;
47  private boolean insistingOnUsingDeprecatedAttributeFile = false;
48 
50  super(GROUP_NAME);
51  }
52 
53  /* direct access */
54 
55  @StringGetter( INPUT_FILE )
56  public String getInputFile() {
57  return this.inputFile;
58  }
59  public URL getInputFileURL(URL context) {
60  return ConfigGroup.getInputFileURL(context, this.inputFile);
61  }
62 
64  public void setInputFile(final String inputFile) {
65  this.inputFile = inputFile;
66  }
67 
70  return this.inputHouseholdAttributesFile;
71  }
72 
76  }
77 
79  public final void setInsistingOnUsingDeprecatedHouseholdsAttributeFile( boolean val ) {
81  }
85  }
86 }
static URL getInputFileURL(URL context, String filename)
void setInputHouseholdAttributesFile(String inputHouseholdAttributesFile)