/**
 * The Tape class represents a Tape object. Information 
 * about the tape is stored and can be retrieved.
 * 
 * @author Michael Rivers
 * @version April 13th 2006
 */
public class Tape extends Video
{
    private String format;
    
    /**
     * Default Constructor
     */
    public Tape()
    {
        format = "unavailable";
    }
    
    /**
     * Initialize the tape and pass parameters to the parent class
     */
    public Tape(String theTitle, String theDirector, String betaOrVHS, 
                    int time)
    {
        super(theTitle, theDirector, time);
        format = betaOrVHS;
    }
    
    /**
     * This constructor method also passes the "got it" parameter
     */
    public Tape(String theTitle, String theDirector, String betaOrVHS,
                    int time, boolean gotIt)
    {
        super(theTitle, theDirector, time, gotIt);
        format = betaOrVHS;
    }
    
    /**
     * This one passes "got it" and comment to its parent class
     */
    public Tape(String theTitle, String theDirector, String betaOrVHS,
                    int time, boolean gotIt, String comment)
    {
        super(theTitle, theDirector, time, gotIt, comment);
        format = betaOrVHS;
    }
        
    /** 
     * Accessor method that returns the format of the tape
     */
    public String getFormat()
    {
        return format;
    }
    /**
     * Mutator method to change the format of the tape
     */
    public void setFormat(String betaOrVHS)
    {
        format = betaOrVHS;
    }
    
    /**
     * Print method calls the parent's print method and prints 
     * additional details about the tape
     */
    public void print()
    {
        System.out.print("Tape: ");
        super.print();
        System.out.println("    format: " + format);
    }
}

