import net.mograsim.logic.core.timeline.Timeline;
import net.mograsim.logic.core.wires.CoreWire;
import net.mograsim.logic.core.wires.CoreWire.ReadEnd;
-import net.mograsim.logic.model.model.components.atomic.GUIBitDisplay;
+import net.mograsim.logic.model.model.components.atomic.ModelBitDisplay;
import net.mograsim.logic.model.model.wires.Pin;
import net.mograsim.logic.model.modeladapter.LogicModelParameters;
-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,
+ public void createAndLinkComponent(Timeline timeline, LogicModelParameters params, ModelBitDisplay modelComponent,
Map<Pin, CoreWire> logicWiresPerPin)
{
- ReadEnd end = logicWiresPerPin.get(guiComponent.getInputPin()).createReadOnlyEnd();
+ ReadEnd end = logicWiresPerPin.get(modelComponent.getInputPin()).createReadOnlyEnd();
CoreBitDisplay bitDisplay = new CoreBitDisplay(timeline, end);
- guiComponent.setLogicModelBinding(bitDisplay);
+ modelComponent.setLogicModelBinding(bitDisplay);
}
}
\ No newline at end of file