MATSIM
HouseholdUtils.java
Go to the documentation of this file.
1 package org.matsim.households;
2 
4 
5 public class HouseholdUtils {
6  // Logic gotten from PopulationUtils, but I am actually a bit unsure about the value of those methods now that
7  // attributable is the only way to get attributes...
8 
9  public static <F extends Household & Attributable> Object getHouseholdAttribute(F household, String key) {
10  return household.getAttributes().getAttribute( key );
11  }
12 
13  public static <F extends Household & Attributable> void putHouseholdAttribute(F household, String key, Object value ) {
14  household.getAttributes().putAttribute( key, value ) ;
15  }
16 
17  public static <F extends Household & Attributable> Object removeHouseholdAttribute( F household, String key ) {
18  return household.getAttributes().removeAttribute( key );
19  }
20 }
static< F extends Household &Attributable > Object getHouseholdAttribute(F household, String key)
static< F extends Household &Attributable > void putHouseholdAttribute(F household, String key, Object value)
static< F extends Household &Attributable > Object removeHouseholdAttribute(F household, String key)