/**
 * The Video class represents a video object. Information about
 * the video is stored and can be retrieved.
 * 
 *@author Michael Kölling and David J. Barnes
 *@updates and changes by Michael Rivers
 *@version April 13th 2006
 */
public class Video extends Item
{
    private String director;

    /**
     * Default constructor
     */
    public Video()
    {
        director = "unavailable";
    }
    
    /**
     * Initialize the video and pass parameters to the parent class
     */
    public Video(String theTitle, String theDirector, int time)
    {
        
        super(theTitle, time);
        director = theDirector;      
    }
    
    /**
     * This constructor method also passes the "got it" parameter
     */
    public Video(String theTitle, String theDirector, 
                    int time, boolean haveIt)
    {
        super(theTitle, time, haveIt);
        director = theDirector;
    }
    
    /**
     * This one passes "got it" and comment to its parent class
     */
    public Video(String theTitle, String theDirector, 
                    int time, boolean haveIt, String comment)
    {
        super(theTitle, time, haveIt, comment);
        director = theDirector;
    }
    
    /**
     * Accessor method for retrieving director string
     */
    public String getDirector()
    {
        return director;
    }
    
    /**
     * Mutator method for changing director string
     */
    public void setDirector(String director)
    {
        this.director = director;
    }
    
    /**
     * Print method calls the parent's print method and prints
     * the director
     */
    public void print()
    {
        super.print();
        System.out.println("    director: " + director);
    }
}
