package Ecole;

import java.util.Arrays;
import java.util.Vector;

import Bibliothèque.Livre;

public class Matiere {
	
	private String name;
	private String libelle;
	private double duree;
	private double coef;
	private Vector<Etudiant> mesEtudiants;
	
	
	public Matiere(String name, String libelle, double duree, double coef,
			Etudiant etudiant ) {
		this.name = name;
		this.libelle = libelle;
		this.duree = duree;
		this.coef = coef;
		this.mesEtudiants = new Vector<Etudiant>();
		this.mesEtudiants.add(etudiant);
	}
	
	
	public Matiere(String name, String libelle, double duree, double coef,
			Etudiant...etudiants ) {
		this.name = name;
		this.libelle = libelle;
		this.duree = duree;
		this.coef = coef;
		this.mesEtudiants = new Vector<Etudiant>();
		this.mesEtudiants.addAll(Arrays.asList(etudiants));
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLibelle() {
		return libelle;
	}
	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}
	public double getDuree() {
		return duree;
	}
	public void setDuree(double duree) {
		this.duree = duree;
	}
	public double getCoef() {
		return coef;
	}
	public void setCoef(double coef) {
		this.coef = coef;
	}
	public Vector<Etudiant> getMesEtudiants() {
		return mesEtudiants;
	}
	
	
	
	
	
	
}
