1 package era.mi.logic.components.gates;
3 import java.util.Arrays;
4 import java.util.Collections;
7 import era.mi.logic.Util;
8 import era.mi.logic.components.BasicComponent;
9 import era.mi.logic.wires.WireArray;
10 import era.mi.logic.wires.WireArray.WireArrayInput;
12 public class NotGate extends BasicComponent
14 private WireArray in, out;
15 private WireArrayInput outI;
18 public NotGate(int processTime, WireArray in, WireArray out)
24 outI = out.createInput();
29 outI.feedSignals(Util.not(in.getValues()));
32 public WireArray getIn()
37 public WireArray getOut()
43 public List<WireArray> getAllInputs()
45 return Collections.unmodifiableList(Arrays.asList(in));
49 public List<WireArray> getAllOutputs()
51 return Collections.unmodifiableList(Arrays.asList(out));