Blame view

Interrupteur.java~ 376 Bytes
0498df6f   rsimonin   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  /**
   *
   * @author Bernard.Carre@polytech-lille.fr
   */
  
  
  public class Interrupteur extends Composant {
  	//...
  	
  	protected boolean etat;
  	
  	public void on() {
  		
  		etat = true;
  		
  	}    
  	
  	public void off() {
  		
  		etat = false;
  		
  	}
  	
  	public boolean getEtat() throws NonConnecteException {
  		
  		return etat;
  		
  	}
      public String description(){
  	return getId();
      }
  	
  }