/**
 * An object that displays text on the console
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class Console implements Presenter
{
    private String       text;
    

    /**
     * Set the value to be used the next time this Presnter
     * is turned on (required by Presenter)
     *
     * In this case, it is the text to display
     *
     * @param value   The value
     */
    public void setValue(String value)
    {
       text = value;
       
    }
    
    
    /**
     * Turn this presenter off (required by Presenter)
     *
     * In this case, this method does nothing
     */
    public void turnOff()
    {
    }
    
    

    /**
     * Turn this presenter on (required by Presenter)
     *
     * In this case, this method outputs the value to
     * the console
     */
    public void turnOn()
    {
       System.out.println(text);
    }
    
    


}
