import java.util.Map;
-import net.mograsim.logic.core.components.BitDisplay;
+import net.mograsim.logic.core.components.CoreBitDisplay;
import net.mograsim.logic.core.timeline.Timeline;
-import net.mograsim.logic.core.wires.Wire;
-import net.mograsim.logic.core.wires.Wire.ReadEnd;
-import net.mograsim.logic.model.model.components.atomic.GUIBitDisplay;
+import net.mograsim.logic.core.wires.CoreWire;
+import net.mograsim.logic.core.wires.CoreWire.ReadEnd;
+import net.mograsim.logic.model.model.components.atomic.ModelBitDisplay;
import net.mograsim.logic.model.model.wires.Pin;
-import net.mograsim.logic.model.modeladapter.LogicModelParameters;
+import net.mograsim.logic.model.modeladapter.CoreModelParameters;
-public class BitDisplayAdapter implements ComponentAdapter<GUIBitDisplay>
+public class BitDisplayAdapter implements ComponentAdapter<ModelBitDisplay>
{
@Override
- public Class<GUIBitDisplay> getSupportedClass()
+ public Class<ModelBitDisplay> getSupportedClass()
{
- return GUIBitDisplay.class;
+ return ModelBitDisplay.class;
}
@Override
- public void createAndLinkComponent(Timeline timeline, LogicModelParameters params, GUIBitDisplay guiComponent,
- Map<Pin, Wire> logicWiresPerPin)
+ public void createAndLinkComponent(Timeline timeline, CoreModelParameters params, ModelBitDisplay modelComponent,
+ Map<Pin, CoreWire> logicWiresPerPin)
{
- ReadEnd end = logicWiresPerPin.get(guiComponent.getInputPin()).createReadOnlyEnd();
- BitDisplay bitDisplay = new BitDisplay(timeline, end);
- guiComponent.setLogicModelBinding(bitDisplay);
+ ReadEnd end = logicWiresPerPin.get(modelComponent.getInputPin()).createReadOnlyEnd();
+ CoreBitDisplay bitDisplay = new CoreBitDisplay(timeline, end);
+ modelComponent.setCoreModelBinding(bitDisplay);
}
}
\ No newline at end of file