1 package net.mograsim.logic.core.components.gates;
5 import net.mograsim.logic.core.components.BasicComponent;
6 import net.mograsim.logic.core.timeline.Timeline;
7 import net.mograsim.logic.core.wires.Wire.ReadEnd;
8 import net.mograsim.logic.core.wires.Wire.ReadWriteEnd;
10 public class NotGate extends BasicComponent
13 private ReadWriteEnd out;
15 public NotGate(Timeline timeline, int processTime, ReadEnd in, ReadWriteEnd out)
17 super(timeline, processTime);
19 in.registerObserver(this);
24 protected void compute()
26 out.feedSignals(in.getValues().not());
29 public ReadEnd getIn()
34 public ReadEnd getOut()
40 public List<ReadEnd> getAllInputs()
46 public List<ReadWriteEnd> getAllOutputs()