projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Generalized WireObserver to LogicObserver
[Mograsim.git]
/
net.mograsim.logic.core
/
src
/
net
/
mograsim
/
logic
/
core
/
components
/
gates
/
MultiInputGate.java
diff --git
a/net.mograsim.logic.core/src/net/mograsim/logic/core/components/gates/MultiInputGate.java
b/net.mograsim.logic.core/src/net/mograsim/logic/core/components/gates/MultiInputGate.java
index
afc8951
..
322ccce
100644
(file)
--- a/
net.mograsim.logic.core/src/net/mograsim/logic/core/components/gates/MultiInputGate.java
+++ b/
net.mograsim.logic.core/src/net/mograsim/logic/core/components/gates/MultiInputGate.java
@@
-28,7
+28,7
@@
public abstract class MultiInputGate extends BasicComponent
{
if (w.length() != length)
throw new IllegalArgumentException("All wires connected to the gate must be of uniform length.");
- w.
add
Observer(this);
+ w.
register
Observer(this);
}
this.out = out;
}