package uk.ac.leeds.sog.moses.agent; import org.apache.log4j.Logger; /** * @author Belinda *This class provides the constructor for HRP(Household Referencing Person). *Methods only related to this type of people are also provided here. */ public class HRP extends Person { private static final long serialVersionUID = 1L; private static Logger s_logger = Logger.getLogger(HRP.class); //constructor public HRP(int id) { super(id); i_hrpStatus = 1; } // method to get the HRP himself/herself public Person getHrp() { return this; } //age one more year public void step() { i_age += 1; } //method to get a string with the information of this HRP public String toString() { StringBuffer buff = new StringBuffer(); buff.append("type=HRP"); buff.append(" HRP_PID=" + super.getPid()); buff.append(" "); buff.append(super.toString()); return buff.toString(); } }