MATSIM
HouseholdImpl.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 
20 package org.matsim.households;
21 
22 import java.util.List;
23 
24 import org.matsim.api.core.v01.Id;
28 import org.matsim.vehicles.Vehicle;
29 
33 public class HouseholdImpl implements Household {
34 
35  private Id<Household> id;
36  private List<Id<Person>> memberIds = null;
37  private List<Id<Vehicle>> vehicleDefinitionIds = null;
38  private Income income;
39 
40  private final Attributes attributes = new AttributesImpl();
41 
43  this.id = id;
44  }
45 
46  @Override
47  public Id<Household> getId() {
48  return this.id;
49  }
50 
51  @Override
52  public Income getIncome() {
53  return this.income;
54  }
55 
56  @Override
57  public List<Id<Person>> getMemberIds() {
58  return this.memberIds;
59  }
60 
61  @Override
62  public List<Id<Vehicle>> getVehicleIds() {
63  return this.vehicleDefinitionIds;
64  }
65 
66  public void setMemberIds(List<Id<Person>> memberIds) {
67  this.memberIds = memberIds;
68  }
69 
70  @Override
71  public void setIncome(Income income) {
72  this.income = income;
73  }
74 
75  public void setVehicleIds(List<Id<Vehicle>> vehicleIds) {
76  this.vehicleDefinitionIds = vehicleIds;
77  }
78 
79  @Override
81  return attributes;
82  }
83 
84 }
List< Id< Vehicle > > getVehicleIds()
List< Id< Person > > getMemberIds()
void setVehicleIds(List< Id< Vehicle >> vehicleIds)
List< Id< Vehicle > > vehicleDefinitionIds
void setMemberIds(List< Id< Person >> memberIds)