/**
* A component of a library for
* GENESIS
* Copyright (C) 2008
* Andy Turner,
* University of Leeds.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
package uk.ac.leeds.ccg.andyt.projects.genesis.society.organisations;
import uk.ac.leeds.ccg.andyt.projects.genesis.society.environment.Location;
import uk.ac.leeds.ccg.andyt.projects.genesis.society.persons.Person;
import java.util.HashSet;
public class Household extends Organisation{
/**
* Stores the current location of the Household
*/
public Location _Location;
/**
* Stores the Resources of the household
*/
double _Resource;
public Household(){
this._People = new HashSet();
}
public Household( HashSet _People ) {
this._People = _People;
}
public Household( Location _Location ) {
this._People = new HashSet();
this._Places = new HashSet();
this._Location = _Location;
//this._Places.add(_Place_Location);
//_Init_Resource();
}
public Household(
HashSet _People,
Location _Location ) {
this._People = _People;
this._Places = new HashSet();
this._Location = _Location;
//this._Places.add(_Place_Location);
}
public void _Init_Resource() {
_Resource = 100.0d;
}
public void _Add_Person( Person _Person){
_People.add(_Person);
}
public void _Remove_Person( Person _Person){
_People.remove(_Person);
}
/**
* @return description of this.
*/
public String toString() {
String _String = new String("Household: ");
_String += "_People.size() " + _People.size();
return _String;
}
}