/**
 * A class to hold some information about an animal.
 *
 * @author Mark Young (A00000000)
 */
public class Animal {

    /** Animal's name */
    private String name;
    /** Animal's species */
    private final String SPECIES;

    /** String representing a dog */
    public static final String DOG = "dog";
    /** String representing a hamster */
    public static final String HAMSTER = "hamster";

    /**
     * Create an animal
     *
     * @param   species name of this Animal's species
     * @param   name    name of this particular Animal
     */
    public Animal(String species, String name) {
        this.SPECIES = species;
        this.name = name;
    }

    /**
     * Get this animal's species
     *
     * @return the species of the Animal
     */
    public String getSpecies() {
        return SPECIES;
    }

    /**
     * Get this animal's name
     *
     * @return the name of the Animal
     */
    public String getName() {
        return name;
    }

    /**
     * Change this animal's name
     *
     * @param   newName the new name of the Animal
     */
    public void setName(String newName) {
        name = newName;
    }

}
