
public class Person extends NamedObject
{
	public Person (
			String name,
			Stadt lebt_in,
			Stadt geboren_in
			) throws Exception
	{
		super (name);
		setLebt_in(lebt_in);
		setGeboren_in(geboren_in);
	}
	
	private Stadt Lebt_in;

	public Stadt getLebt_in() {
		return Lebt_in;
	}

	public void setLebt_in(Stadt lebt_in) throws Exception 
	{
		if (lebt_in == null)
		{
			throw new Exception("Stadt lebt_in has to have a value.");
		}
		Lebt_in = lebt_in;
	}
	
	private Stadt Geboren_in;

	public Stadt getGeboren_in() 
	{
		return Geboren_in;
	}

	public void setGeboren_in(Stadt geboren_in) throws Exception 
	{
		if (geboren_in == null)
		{
			throw new Exception("Stadt geboren_in has to have a value.");
		}

		Geboren_in = geboren_in;
	}
	
	public String getLandesName()
	{
		return getLebt_in().getName();
	}
	public String getDescription()
	{
		String result = getName();
		result += " ist geboren in " + getGeboren_in().getDescription();
		result += " und lebt heute in " + getLebt_in().getDescription();
		return result;
	}
	
}
