MATSIM
Static Public Member Functions | List of all members
org.matsim.households.HouseholdUtils Class Reference

Static Public Member Functions

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)
 

Detailed Description

Definition at line 5 of file HouseholdUtils.java.

Member Function Documentation

◆ getHouseholdAttribute()

static <F extends Household & Attributable> Object org.matsim.households.HouseholdUtils.getHouseholdAttribute ( household,
String  key 
)
static

Definition at line 9 of file HouseholdUtils.java.

9  {
10  return household.getAttributes().getAttribute( key );
11  }

◆ putHouseholdAttribute()

static <F extends Household & Attributable> void org.matsim.households.HouseholdUtils.putHouseholdAttribute ( household,
String  key,
Object  value 
)
static

Definition at line 13 of file HouseholdUtils.java.

13  {
14  household.getAttributes().putAttribute( key, value ) ;
15  }

◆ removeHouseholdAttribute()

static <F extends Household & Attributable> Object org.matsim.households.HouseholdUtils.removeHouseholdAttribute ( household,
String  key 
)
static

Definition at line 17 of file HouseholdUtils.java.

17  {
18  return household.getAttributes().removeAttribute( key );
19  }

The documentation for this class was generated from the following file: