001 002/** 003 * Décrivez votre classe Beamer ici. 004 * 005 * @author Alban FERRACANI 006 * @version 12/04/2021 007 */ 008public class Beamer extends Item 009{ 010 private boolean aCharge; 011 private Room aRoomCharge; 012 013 public Beamer(){ 014 this(0, ""); 015 } 016 017 public Beamer( final int pPoids, final String pDescription){ 018 super(pPoids, pDescription); 019 this.aCharge = false; 020 } 021 022 public boolean isCharged() 023 { 024 return this.aCharge; 025 } 026 027 public Room getRoomCharge() 028 { 029 return this.aRoomCharge; 030 } 031 032 033 public void charge(final Room pChargeRoom){ 034 this.aCharge = true; 035 this.aRoomCharge = pChargeRoom; 036 } 037 038 public void discharge() 039 { 040 this.aCharge = false; 041 } 042 043}