package client.view.benchmarks;

//------------------------------------Importations des différentes bibliothèques---------------------------------//

import java.awt.Color;
import javax.swing.JPanel;

//-----------------------------------Fin Importations des différentes bibliothèques------------------------------//







//-------------------------------------------------Début de la classe------------------------------------------------//

/**<u><b>Explication générale de la classe :</b></u>
 * <P>Cette classe permet de créer le panel du benchmark.
 *
 * @author Dream Team - ING2
 */
public class PanelBenchmarks extends JPanel {

    //Déclarations des variables
    private PanelChoixBenchmark panBenchmarkPb;
    private PanelResBenchmark panBenchmarkRes;
    private PanelCondiInitial panCondiInitial;

//-----------------------------------------------Constructeur----------------------------------------------------//

   /**<u><i>Explication de la méthode :</i></u>
    * <P>Constructeur permettant de créer le panel du benchmark.
    */
    public PanelBenchmarks(){

        this.setLayout(null);

        //Panel du choix pour le benchmark
        panBenchmarkPb = new PanelChoixBenchmark();
        panBenchmarkPb.setLayout(null);
        panBenchmarkPb.setBounds(0, 0, 375, 450);
        panBenchmarkPb.setVisible(true);
        add(panBenchmarkPb);

        //Panel du résultat pour le benchmark
        panBenchmarkRes = new PanelResBenchmark();
        panBenchmarkRes.setLayout(null);
        panBenchmarkRes.setBounds(375, 0, 375, 450);
        panBenchmarkRes.setVisible(false);
        add(panBenchmarkRes);
        
        //Panel des condition initiales pour le benchmark
        panCondiInitial = new PanelCondiInitial();
        panCondiInitial.setLayout(null);
        panCondiInitial.setBounds(375, 0, 375, 450);
        panCondiInitial.setVisible(false);
        add(panCondiInitial);

        this.setBackground(new Color(234, 232, 233));
        
    }

    /**<u><i>Explication de la méthode :</i></u>
     * <P> Cette méthode permet de récupérer le panel choix du benchmark
     * 
     * @return le singleton du panel choix du benchmark
     * 
     */
    public PanelChoixBenchmark getPanBenchmarkPb() {
        return panBenchmarkPb;
    }

    /**<u><i>Explication de la méthode :</i></u>
     * <P> Cette méthode permet de récupérer le panel résultat du benchmark
     * 
     * @return le singleton du panel résultat du benchmark
     * 
     */
    public PanelResBenchmark getPanBenchmarkRes() {
        return panBenchmarkRes;
    }

    /**<u><i>Explication de la méthode :</i></u>
     * <P> Cette méthode permet de récupérer le panel des conditions initiales du benchmark
     * 
     * @return le singleton du panel des conditions initiales du benchmark
     * 
     */
	public PanelCondiInitial getPanCondiInitial() {
		return panCondiInitial;
	}

}

//-------------------------------------------------Fin de la classe-------------------------------------------------//
