MATSIM
HouseholdsFactoryImpl.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.ArrayList;
23 
24 import org.matsim.api.core.v01.Id;
27 import org.matsim.vehicles.Vehicle;
28 
32 public class HouseholdsFactoryImpl implements HouseholdsFactory {
33 
34  @Override
36  HouseholdImpl hh = new HouseholdImpl(householdId);
37  hh.setMemberIds(new ArrayList<Id<Person>>());
38  hh.setVehicleIds(new ArrayList<Id<Vehicle>>());
39  return hh;
40  }
41 
42  @Override
43  public Income createIncome(double income, IncomePeriod period) {
44  return new IncomeImpl(income, period);
45  }
46 }
void setVehicleIds(List< Id< Vehicle >> vehicleIds)
HouseholdImpl createHousehold(Id< Household > householdId)
void setMemberIds(List< Id< Person >> memberIds)
Income createIncome(double income, IncomePeriod period)