Fixed a bug in Am2900; created dlatch8/80; relayouted some components
[Mograsim.git] / net.mograsim.logic.model / src / net / mograsim / logic / model / modeladapter / componentadapters / FixedOutputAdapter.java
index 03fa400..f823665 100644 (file)
@@ -3,23 +3,23 @@ package net.mograsim.logic.model.modeladapter.componentadapters;
 import java.util.Map;
 
 import net.mograsim.logic.core.timeline.Timeline;
-import net.mograsim.logic.core.wires.Wire;
-import net.mograsim.logic.model.model.components.atomic.GUIFixedOutput;
+import net.mograsim.logic.core.wires.CoreWire;
+import net.mograsim.logic.model.model.components.atomic.ModelFixedOutput;
 import net.mograsim.logic.model.model.wires.Pin;
-import net.mograsim.logic.model.modeladapter.LogicModelParameters;
+import net.mograsim.logic.model.modeladapter.CoreModelParameters;
 
-public class FixedOutputAdapter implements ComponentAdapter<GUIFixedOutput>
+public class FixedOutputAdapter implements ComponentAdapter<ModelFixedOutput>
 {
        @Override
-       public Class<GUIFixedOutput> getSupportedClass()
+       public Class<ModelFixedOutput> getSupportedClass()
        {
-               return GUIFixedOutput.class;
+               return ModelFixedOutput.class;
        }
 
        @Override
-       public void createAndLinkComponent(Timeline timeline, LogicModelParameters params, GUIFixedOutput guiComponent,
-                       Map<Pin, Wire> logicWiresPerPin)
+       public void createAndLinkComponent(Timeline timeline, CoreModelParameters params, ModelFixedOutput modelComponent,
+                       Map<Pin, CoreWire> logicWiresPerPin)
        {
-               logicWiresPerPin.get(guiComponent.getPin("out")).createReadWriteEnd().feedSignals(guiComponent.bits);
+               logicWiresPerPin.get(modelComponent.getPin("out")).createReadWriteEnd().feedSignals(modelComponent.bits);
        }
 }
\ No newline at end of file