Reformatted everything. Eclipse built-in Linewrapping/Comments 140 chars
[Mograsim.git] / era.mi / src / era / mi / logic / components / gates / NotGate.java
index 6a011be..f81ba92 100644 (file)
@@ -9,45 +9,37 @@ import era.mi.logic.components.BasicComponent;
 import era.mi.logic.wires.WireArray;
 import era.mi.logic.wires.WireArray.WireArrayInput;
 
-public class NotGate extends BasicComponent
-{
+public class NotGate extends BasicComponent {
        private WireArray in, out;
        private WireArrayInput outI;
 
-       
-       public NotGate(int processTime, WireArray in, WireArray out)
-       {
+       public NotGate(int processTime, WireArray in, WireArray out) {
                super(processTime);
                this.in = in;
                in.addObserver(this);
                this.out = out;
                outI = out.createInput();
        }
-       
-       public void compute()
-       {
+
+       public void compute() {
                outI.feedSignals(Util.not(in.getValues()));
        }
 
-       public WireArray getIn()
-       {
+       public WireArray getIn() {
                return in;
        }
 
-       public WireArray getOut()
-       {
+       public WireArray getOut() {
                return out;
        }
-       
+
        @Override
-       public List<WireArray> getAllInputs()
-       {
+       public List<WireArray> getAllInputs() {
                return Collections.unmodifiableList(Arrays.asList(in));
        }
 
        @Override
-       public List<WireArray> getAllOutputs()
-       {
+       public List<WireArray> getAllOutputs() {
                return Collections.unmodifiableList(Arrays.asList(out));
        }
 }