package types;

public class VerboConiugato extends Symbol
{
	protected Verbo infinito;
	protected String valore;
	protected int tempo;
	protected int persona;
	
	/**
	 * Costruttore di default.<br />Associa una stringa a un tempo verbale e a una persona.
	 */
	public VerboConiugato(String s, int tmp, int p, Verbo inf) 
	{
		super(Type.verbo);
		valore = s;
		tempo = tmp;
		persona = p;
		infinito = inf;
	}
	
	public boolean equals(Object o)
	{
		if(o==null || !(o instanceof Symbol))
			return false;
		else if(o == this)
			return true;
		else
		{
			VerboConiugato s = (VerboConiugato)o;
			return (this.tempo==s.tempo && this.valore==s.valore );
		}
	}
	
	public int getTempo()
	{
		return this.tempo;
	}
	public int getPersona()
	{
		return persona;
	}
}