001/* *********************************************************************** * 002 * project: org.matsim.* 003 * * 004 * *********************************************************************** * 005 * * 006 * copyright : (C) 2008 by the members listed in the COPYING, * 007 * LICENSE and WARRANTY file. * 008 * email : info at matsim dot org * 009 * * 010 * *********************************************************************** * 011 * * 012 * This program is free software; you can redistribute it and/or modify * 013 * it under the terms of the GNU General Public License as published by * 014 * the Free Software Foundation; either version 2 of the License, or * 015 * (at your option) any later version. * 016 * See also COPYING, LICENSE and WARRANTY file * 017 * * 018 * *********************************************************************** */ 019 020package org.matsim.households; 021 022 023 024/** 025 * @author dgrether 026 */ 027public class IncomeImpl implements Income { 028 029 private String currency; 030 private IncomePeriod period; 031 private double income; 032 033 public IncomeImpl(double income, IncomePeriod period) { 034 this.period = period; 035 this.income = income; 036 } 037 038 @Override 039 public String getCurrency() { 040 return this.currency; 041 } 042 043 @Override 044 public double getIncome() { 045 return this.income; 046 } 047 048 @Override 049 public IncomePeriod getIncomePeriod() { 050 return this.period; 051 } 052 053 @Override 054 public void setCurrency(String currency) { 055 this.currency = currency; 056 } 057 058 public void setIncome(double income, IncomePeriod period) { 059 this.income = income; 060 } 061 062}