package types;

public class VerboConiugato extends Symbol
{
	protected Verbo infinito;
	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(s, Type.verbo);
		tempo = tmp;
		persona = p;
		infinito = inf;
	}
	
	public boolean equals(Object o)
	{
		if(super.equals(o))
		{
			VerboConiugato s = (VerboConiugato)o;
			return this.tempo==s.tempo;
		}
		else return false;
	}
	
	public int getTempo()
	{
		return this.tempo;
	}
	
	public int getPersona()
	{
		return persona;
	}
	
	public Verbo getVerbo()
	{
		return this.infinito;
	}
}