/*
 (C) 2004 Ibermatica S.A.

 This file is part of IberAgents.

 IberAgents is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 IberAgents is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with IberAgents; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
package com.ibertest.personal;

import com.iberagents.user.UserPreferences;

/**
 * Preferences of a test personal agent. Includes number of acts and some idle
 * facts.
 * @author Alex Fernandez.
 */
public class TestPersonalPreferences extends UserPreferences
{
    private String repeatPassword;
    private int acts;
    private String favoriteColor;
    private int pageViews;

    /**
     * Check passwords.
     */
    public boolean validate()
    {
        return this.password.equals(this.repeatPassword);
    }

    /**
     * Increase acts by one.
     */
    public void increaseActs()
    {
        this.acts++;
    }

    /**
     * Increase page views by one.
     */
    public void increasePageViews()
    {
        this.pageViews++;
    }

    /**
     * @return number of acts.
     */
    public int getActs()
    {
        return this.acts;
    }

    /**
     * @return favorite color of user.
     */
    public String getFavoriteColor()
    {
        return this.favoriteColor;
    }

    /**
     * @param i
     */
    public void setActs(int i)
    {
        this.acts = i;
    }

    /**
     * @param string
     */
    public void setFavoriteColor(String string)
    {
        this.favoriteColor = string;
    }

    /**
     * @return password re-entered, used for verification.
     */
    public String getRepeatPassword()
    {
        return this.repeatPassword;
    }

    /**
     * @param string
     */
    public void setRepeatPassword(String string)
    {
        this.repeatPassword = string;
    }

    /**
     * @return number of page views to the moment.
     */
    public int getPageViews()
    {
        return this.pageViews;
    }

    /**
     * @param i
     */
    public void setPageViews(int i)
    {
        this.pageViews = i;
    }
}