1   /**
2    * 183.592 Programmierpraxis TU Wien WS2014/15 H.Moritsch
3    * Digitale Schaltungen
4    * Not-Gatter
5    */
6   public class Not extends Gate {
7   
8       private Signal input;
9   
10      public Not(Signal input) {
11          super();
12          this.input = input;
13      }
14  
15      public void operate() {
16          setValue( ! input.get() );
17      }
18  
19  }
20