Blame view

Or.java 446 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
  public class Or extends Porte2Entrees{
      /* void run(){
  	s=in1 || in2;
      }
      void display(){
      }*/
  
      /*public boolean getEtat() throws NonConnecteException {
  	if ((in1 == null) || (in2 == null)) {			
  	    throw new NonConnecteException();		
  	} else {
  	    s=(in1.getEtat() || in2.getEtat());
  	    return s;		
  	}		
  	}*/
  
      public boolean eval() throws NonConnecteException{
  	return  (in1.getEtat() || in2.getEtat());  		
      }
      
  }