/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package banco_imobiliario.AbstractFactoryLogradouro;
import banco_imobiliario.model.Logradouro;
import banco_imobiliario.model.LogradouroVaParaPrisao;
/**
*
* @author Andre
*/
public class LogradouroVaParaPrisaoFactory implements LogradouroFactory{
@Override
public Logradouro criarLogradouro(int indice) {
LogradouroVaParaPrisao vaParaPrisao = new LogradouroVaParaPrisao();
vaParaPrisao.setIndice(indice);
vaParaPrisao.setNome("Vá para a Prisão");
return vaParaPrisao;
}
}