// The class that implements the factory PopFactory.
// Barry Cornelius, 21 June 2000
package uk.ac.dur.dcl0bjc.pop;
public class PopFactoryImpl implements PopFactory
{
   public Date createDate()
   {
      return new DateImpl();
   }
   public Date createDate(final Date pDate)
   {
      return new DateImpl(pDate);
   }
   public Date createDate(final int pYear, final int pMonth, final int pDay)
   {
      return new DateImpl(pYear, pMonth, pDay);
   }
   public Date createDate(final String pString)
   {
      return new DateImpl(pString);
   }
   public Person createPerson()
   {
      return new PersonImpl(this);
   }
   public Person createPerson(final Person pPerson)
   {
      return new PersonImpl(this, pPerson);
   }
   public Person createPerson(final String pName, final Date pDateOfBirth,
                              final String pPhoneNumber,
                              final double pHeight)
   {
      return new PersonImpl(this, 
                            pName, pDateOfBirth, pPhoneNumber, pHeight);
   }
   public Person createPerson(final String pPersonString)
   {
      return new PersonImpl(this, pPersonString);
   }
   public Pop createPop()
   {
      return new PopImpl();
   }
}
