/*
 *2013-09-02
 *HWUnit2-Programming Assignment 1
 *Bradley Forney
 *CIS 127
 *Professor: Craig Sharp
 * 
 * Purpose: Class for Pets
 */

import java.util.ArrayList; 
 
/**
 *
 * @author Bradley Forney
 */
 public class Pet {
    //Internal Variables
    private ArrayList<String> petNameArray = new ArrayList<String>(); 
	private ArrayList<String> petTypeArray = new ArrayList<String>(); 
 
   
//GETTERS   
    public String getPetName(int index)
    {
        return petNameArray.get(index);
    }
    public String getPetType(int index)
    {
        return petTypeArray.get(index);
    }
	
//GET SIZE  
    public int getSizePetName()
    {
        return petNameArray.size();
    }
    public int getSizePetType()
    {
        return petTypeArray.size();
    }
	
//ADD NEW
    public void setNewPetName(String petName)
    {
		petNameArray.add(petName);
    }
    public void setNewPetType(String petType)
    {
        petTypeArray.add(petType);
    }
    
	
	
//CHANGE EXISTING	
    public void modifyPetName(int index, String petName)
    {
		petNameArray.set(index, petName);
    }
    public void modifyPetType(int index, String petType)
    {
        petTypeArray.set(index, petType);
    }
	

//"DELETES" EXISTING
//Don't actually delete any items in the array. You will cry. A lot.
    public void deletePetName(int index)
    {
        petNameArray.set(index, "[Entry Removed]");
    }
    public void deletePetType(int index)
    {
        petTypeArray.set(index, "[Entry Removed]");
    }
    
//SEARCHES

	/*public void 
	for (int x=0;x<petNameArray.size();++x)
	{
		if(searchString==petnameArray.get(x))
		{
			do something
		}
	}
	
	//Add in program 3
	*/
}
