Package draftdb

Examples of draftdb.Coureur


       
    @Override
    public Coureur choisirCoureur() {
        Scanner scanner = new Scanner(System.in);
        int idCoureurChoisi;
        Coureur coureurChoisi;
       
        // id des coureurs dont le salaire est inférieur au budget de l'équipe
        List<Integer> idCoureursRecrutables = new ArrayList(
                simulation.getCoureursLibres().entrySet().stream()
                        .filter(c -> c.getValue().getSalaire() <= budgetProvisoire)
View Full Code Here


            }
           
            return coureurAEvaluer;
        };
           
        Coureur coureurChoisi =
            coureursLibres.values().stream().filter(filtreCoureurs).max(
                (c1, c2) -> Float.compare(evaluerCoureur(c1), evaluerCoureur(c2))
            ).get();
        embaucherCoureur(coureurChoisi);
        return coureurChoisi;
View Full Code Here

    public Coureur choisirCoureur() {
       
        Map<Integer, Coureur> coureursLibres = simulation.getCoureursLibres();
        List<Integer> idCoureursLibres = new ArrayList(coureursLibres.keySet());
        int idCoureurChoisi = idCoureursLibres.get(alea.nextInt(idCoureursLibres.size()));
        Coureur coureurChoisi = coureursLibres.get(idCoureurChoisi);
        embaucherCoureur(coureurChoisi);

        return coureurChoisi;
       
    }
View Full Code Here

TOP

Related Classes of draftdb.Coureur

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.