import java.util.ArrayList;
import java.util.Iterator;

public class Reader {

	public static ArrayList<Imprimante> getLesImprimantes(){
		TypeImprimante l = new TypeImprimante('L', "Laser");
		TypeImprimante j = new TypeImprimante('J' ,"Jet d'encre");
		Imprimante imp1 = new Imprimante("HPLJ3", l,"Hewlett Packard Laserjet 3", new TabCartouches());
		Imprimante imp2 = new Imprimante("HPDJ560C", j,"Hewlett Packard Deskjet 560C",new TabCartouches());
		Imprimante imp3 = new Imprimante("Epson Photo 750", j,"Sans descriptif", new TabCartouches());
		Imprimante imp4 = new Imprimante("Lexmark 3200", l,"Sans descriptif",new TabCartouches());
		Cartouche c1 = new Cartouche("P45-HP-LJ2","Cartouche toner", 54.23);
		Cartouche c2 = new Cartouche("IC-WCP45-3","Cartouche Ink-HP", 32.45);
		
		ArrayList<Imprimante> lesImprimantes = new ArrayList<Imprimante>();
		lesImprimantes.add(imp1);
		lesImprimantes.add(imp2);
		lesImprimantes.add(imp3);
		lesImprimantes.add(imp4);
		
		ICollCartouches col = new CollCartouches();
		col.addCartouche(c1);
		col.addCartouche(c2);
		imp1.setLesCartouches(col);
		return lesImprimantes;
	}

}
