package projet_freyja.math;

import java.io.Serializable;

public class EspaceVectoriel implements Serializable{
    //Attributs
    protected String libelle;
    protected Base base;
    protected String corps;
    protected int dimension;
    
    //Méthodes
    //****Constructeurs****
    
    EspaceVectoriel(){
        this.libelle = "";
        this.base = new Base();
        this.dimension = 0;
        this.corps = "";
    }
    
    public EspaceVectoriel(String l, Base b, int d, String c){
        this.libelle = l;
        this.base = b;
        this.dimension = d;
        this.corps = c;
    }
    
    EspaceVectoriel(EspaceVectoriel e){
        this.libelle = e.getLibelle();
        this.base = e.getBase();
        this.dimension = e.getDimension();
        this.corps = e.getCorps();
    }
    
    //****Setter&Getter****
    
    public String getLibelle() {
        return libelle;
    }

    public Base getBase() {
        return base;
    }
    
    public int getDimension(){
        return dimension;
    }
    
    public String getCorps(){
        return corps;
    }
    
    public void setLibelle(String l) {
        this.libelle = l;
    }

    public void setBase(Base b) {
        this.base = b;
    }
    
    public void setDimension(int d){
        this.dimension = d;
    }
    
    public void setCorps(String c){
        this.corps = c;
    }
    
    //****toString****
    
    @Override
    public String toString() {
        return "EspaceVectoriel{" + "libelle=" + libelle + ", base=" + base.toString() + '}';
    }    
}
