Package banco_imobiliario.AbstractFactoryLogradouro

Examples of banco_imobiliario.AbstractFactoryLogradouro.LogradouroPartidaFactory


   
    public Tabuleiro criarTabuleiro() {
        TabuleiroContrutorCircularConcreteBuilder tabuleiroConntrutor = new TabuleiroContrutorCircularConcreteBuilder();

        //Criando as Fabricas
        LogradouroPartidaFactory partidaFac = new LogradouroPartidaFactory();
        ImovelFactory imovelFac = new ImovelFactory();
        EmpresaFactory empresaFac = new EmpresaFactory();
        LogradouroNoticiaFactory noticiaFac = new LogradouroNoticiaFactory();
        LogradouroPrisaoFactory prisaoFac = new LogradouroPrisaoFactory();
        LogradouroImpostoDeRendaFactory impostoDeRendaFac = new LogradouroImpostoDeRendaFactory();
        LogradouroLucrosOuDividendosFactory lucrosOuDividandosFac = new LogradouroLucrosOuDividendosFactory();
        LogradouroVaParaPrisaoFactory vaParaPrisaoFac = new LogradouroVaParaPrisaoFactory();
        LogradouroParadaLivreFactory paradLivreFac = new LogradouroParadaLivreFactory();

        //Adicionando Logradouros ao tabuleiro
        tabuleiroConntrutor.adicionar(partidaFac.criarLogradouro(1));
        tabuleiroConntrutor.adicionar(imovelFac.criarLogradouro(2));
        tabuleiroConntrutor.adicionar(imovelFac.criarLogradouro(3));
        tabuleiroConntrutor.adicionar(empresaFac.criarLogradouro(4));
        tabuleiroConntrutor.adicionar(imovelFac.criarLogradouro(5));
        tabuleiroConntrutor.adicionar(imovelFac.criarLogradouro(6));
View Full Code Here

TOP

Related Classes of banco_imobiliario.AbstractFactoryLogradouro.LogradouroPartidaFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.