Blame view

And.java 431 Bytes
0498df6f   rsimonin   first commit
1
2
3
4
5
6
7
  public class And extends Porte2Entrees{
      /*void run(){
  	s=in1 && in2;
      }
      void display(){
      }*/
      /*public boolean getEtat() throws NonConnecteException {
e0205b46   rsimonin   fini
8
9
  	if ((in1 == null) || (in2 == null)) {
  	    throw new NonConnecteException();
0498df6f   rsimonin   first commit
10
11
  	} else {
  	    s=(in1.getEtat() && in2.getEtat());
e0205b46   rsimonin   fini
12
13
  	    return s;
  	}
0498df6f   rsimonin   first commit
14
15
16
      }*/
  
      public boolean eval()throws NonConnecteException {
e0205b46   rsimonin   fini
17
  	return (in1.getEtat() & in2.getEtat());			
0498df6f   rsimonin   first commit
18
19
      }
  }