/*
 * alterre.java
 *
 * Created on 12 mars 2003, 18:56
 */

package com.developpez.composite;

/**
 *
 * @author  smeric
 */
public class Barre implements Produit {
    
    /** Creates a new instance of alterre */
    public Barre() {
    }
    
    /** Code barre unique d'un produit.
     */
    public String getCodeBarre() {
        return codeBarre;
    }
    
    /** Descriptif du produit. Peut être la résultant d'une accumulation de
     * descriptif si le produit eset composé
     */
    public String getDescriptif() {
        return descriptif;
    }
    
    /** Fournit le prix du produit.
     * Peut être calculer.
     */
    public float getPrix() {
        return prix;
    }
    
    /** Getter for property longueur.
     * @return Value of property longueur.
     */
    public float getLongueur() {
        return this.longueur;
    }    
    
    /** Setter for property longueur.
     * @param longueur New value of property longueur.
     */
    public void setLongueur(float longueur) {
        this.longueur = longueur;
    }
    
    /** Setter for property codeBarre.
     * @param codeBarre New value of property codeBarre.
     */
    public void setCodeBarre(String codeBarre) {
        this.codeBarre = codeBarre;
    }
    
    /** Setter for property prix.
     * @param prix New value of property prix.
     */
    public void setPrix(float prix) {
        this.prix = prix;
    }
    
    /** Setter for property descriptif.
     * @param descriptif New value of property descriptif.
     */
    public void setDescriptif(String descriptif) {}
    
    private float poids = 0;
    private float prix = 0;
    private String codeBarre;
    private String descriptif;
    
    /** Holds value of property longueur. */
    private float longueur;
    
}
