Modifier and Type | Method and Description |
---|---|
void |
feed(java.util.List<Signal> inSignals)
Assigns the given signals to the wires of this thing
|
void |
feed(java.lang.String inSignals)
Converts the String signal into Signal value for our List of Signal
|
java.util.List<Signal> |
inspect(java.util.List<Signal> inputs)
A combination of feeding, propagating, and reading.
|
java.lang.String |
inspect(java.lang.String inputs)
We will return the String of the inputs that we did in previous
method.
|
boolean |
propagate()
propagate() stabilize the outputs, return true if any action
was made in order to stabilze the circuit/gate
|
java.util.List<Signal> |
read()
Read the signal values on the output wires,
and return them as a List of Signal value.
|
void feed(java.util.List<Signal> inSignals)
inSignals
- are the list that will assing the wirevoid feed(java.lang.String inSignals)
inSignals
- are the list to be convertedboolean propagate()
java.util.List<Signal> read()
java.util.List<Signal> inspect(java.util.List<Signal> inputs)
inputs
- is the list of inputsjava.lang.String inspect(java.lang.String inputs)
inputs
- is the list of inputs